@@ -189,12 +189,12 @@ def __validate_wls_credential_mappings_section(self, mappings_dict):
189
189
190
190
remote_resources_dict = dictionary_utils .get_dictionary_element (mappings_dict , REMOTE_RESOURCE )
191
191
for mapping_name , mapping_dict in remote_resources_dict .iteritems ():
192
- method = dictionary_utils . get_element (mapping_dict , METHOD )
192
+ method = self . _get_validation_value (mapping_dict , METHOD )
193
193
if method and method not in RESOURCE_METHODS :
194
194
self ._logger .severe ('WLSDPLY-05313' , method , REMOTE_RESOURCE , mapping_name , METHOD ,
195
195
', ' .join (RESOURCE_METHODS ), class_name = _class_name , method_name = _method_name )
196
196
197
- protocol = dictionary_utils . get_element (mapping_dict , PROTOCOL )
197
+ protocol = self . _get_validation_value (mapping_dict , PROTOCOL )
198
198
if protocol and protocol not in RESOURCE_PROTOCOLS :
199
199
self ._logger .severe ('WLSDPLY-05313' , protocol , REMOTE_RESOURCE , mapping_name , PROTOCOL ,
200
200
', ' .join (RESOURCE_PROTOCOLS ), class_name = _class_name , method_name = _method_name )
@@ -211,29 +211,29 @@ def __validate_rcu_db_info_section(self, info_dict):
211
211
self ._check_deprecated_field (ATP_TEMPORARY_TABLESPACE , info_dict , RCU_DB_INFO , RCU_TEMP_TBLSPACE )
212
212
213
213
# deprecated DATABASE_TYPE, must be ORACLE, ATP, or SSL if specified
214
- old_database_type = dictionary_utils . get_element (info_dict , DATABASE_TYPE )
214
+ old_database_type = self . _get_validation_value (info_dict , DATABASE_TYPE )
215
215
if old_database_type and old_database_type not in DEPRECATED_DB_TYPES :
216
216
self ._logger .severe (
217
217
'WLSDPLY-05302' , old_database_type , RCU_DB_INFO , DATABASE_TYPE ,
218
218
', ' .join (DEPRECATED_DB_TYPES ), class_name = _class_name , method_name = _method_name )
219
219
220
220
# RCU_DATABASE_TYPE must be one of allowed types if specified
221
- database_type = dictionary_utils . get_element (info_dict , RCU_DATABASE_TYPE )
221
+ database_type = self . _get_validation_value (info_dict , RCU_DATABASE_TYPE )
222
222
if database_type and database_type not in ALL_DB_TYPES :
223
223
self ._logger .severe (
224
224
'WLSDPLY-05302' , database_type , RCU_DB_INFO , RCU_DATABASE_TYPE ,
225
225
', ' .join (ALL_DB_TYPES ), class_name = _class_name , method_name = _method_name )
226
226
227
227
# ORACLE_DATABASE_CONNECTION_TYPE must be one of allowed types if specified
228
- connection_type = dictionary_utils . get_element (info_dict , ORACLE_DATABASE_CONNECTION_TYPE )
228
+ connection_type = self . _get_validation_value (info_dict , ORACLE_DATABASE_CONNECTION_TYPE )
229
229
if connection_type and connection_type not in ORACLE_DB_CONNECTION_TYPES :
230
230
self ._logger .severe (
231
231
'WLSDPLY-05302' , connection_type , RCU_DB_INFO , ORACLE_DATABASE_CONNECTION_TYPE ,
232
232
', ' .join (ORACLE_DB_CONNECTION_TYPES ), class_name = _class_name , method_name = _method_name )
233
233
234
234
# *StoreType must be one of allowed types if specified
235
235
for type_field in [DRIVER_PARAMS_TRUSTSTORETYPE_PROPERTY , DRIVER_PARAMS_KEYSTORETYPE_PROPERTY ]:
236
- type_value = dictionary_utils . get_element (info_dict , type_field )
236
+ type_value = self . _get_validation_value (info_dict , type_field )
237
237
if type_value and type_value .upper () not in STORE_TYPES :
238
238
self ._logger .severe (
239
239
'WLSDPLY-05302' , type_value , RCU_DB_INFO , type_field ,
0 commit comments