Skip to content

Commit b2cbc29

Browse files
Add psu to alias version
1 parent b20735f commit b2cbc29

File tree

3 files changed

+42
-2
lines changed

3 files changed

+42
-2
lines changed

core/src/main/python/wlsdeploy/aliases/alias_entries.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,6 @@ def is_valid_model_folder_name_for_location(self, location, model_folder_name):
790790
result = ValidationCodes.VALID
791791
else:
792792
folder_dict = self.__get_dictionary_for_location(location, False)
793-
794793
if folder_dict is None:
795794
ex = exception_helper.create_alias_exception('WLSDPLY-08113', model_folder_name,
796795
location.get_folder_path())

core/src/main/resources/oracle/weblogic/deploy/aliases/category_modules/SecurityConfiguration.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,8 @@
14181418
"RealmBootStrapVersion": [ {"version": "[10,12.2.1)", "wlst_mode": "offline", "wlst_name": "RealmBootStrapVersion", "wlst_path": "WP001", "value": {"default": "None" }, "wlst_type": "string", "get_method": "GET", "restart_required": "true" } ,
14191419
{"version": "[10,)", "wlst_mode": "online", "wlst_name": "RealmBootStrapVersion", "wlst_path": "WP001", "value": {"default": "1" }, "wlst_type": "string", "get_method": "GET", "restart_required": "true" } ],
14201420
"RemoteAnonymousJndiEnabled": [ {"version": "[12.2.1.3,)", "wlst_mode": "both", "wlst_name": "RemoteAnonymous${Jndi:JNDI}Enabled", "wlst_path": "WP001", "value": {"default": "true" }, "wlst_type": "boolean", "restart_required": "true" } ],
1421-
"RemoteAnonymousRmiiiopEnabled": [ {"version": "[14.1.1,)", "wlst_mode": "both", "wlst_name": "RemoteAnonymous${Rmiiiop:RMIIIOP}Enabled", "wlst_path": "WP001", "value": {"default": "true" }, "wlst_type": "boolean" } ],
1421+
"RemoteAnonymousRmiiiopEnabled": [ {"version": "[14.1.1,)", "wlst_mode": "both", "wlst_name": "RemoteAnonymous${Rmiiiop:RMIIIOP}Enabled", "wlst_path": "WP001", "value": {"default": "true" }, "wlst_type": "boolean" },
1422+
{"version": "[12.2.1.3.33344,12.2.1.4)", "wlst_mode": "both", "wlst_name": "RemoteAnonymous${Rmiiiop:RMIIIOP}Enabled", "wlst_path": "WP001", "value": {"default": "true" }, "wlst_type": "boolean" } ],
14221423
"RemoteAnonymousRmit3Enabled": [ {"version": "[14.1.1,)", "wlst_mode": "both", "wlst_name": "RemoteAnonymous${Rmit3:RMIT3}Enabled", "wlst_path": "WP001", "value": {"default": "true" }, "wlst_type": "boolean" } ],
14231424
"UseKSSForDemo": [ {"version": "[12.1.2,)", "wlst_mode": "both", "wlst_name": "UseKSSForDemo", "wlst_path": "WP001", "value": {"default": "false" }, "wlst_type": "boolean", "restart_required": "true" } ],
14241425
"WebAppFilesCaseInsensitive": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "WebAppFilesCaseInsensitive", "wlst_path": "WP001", "value": {"default": "${None:false}"}, "wlst_type": "string", "restart_required": "true" } ]

core/src/test/python/aliases_test.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,46 @@ def testIsWlstModelAttributeName(self):
440440
self.assertEqual(message, expected)
441441
return
442442

443+
def testIsPSUMatch(self):
444+
wls_version = '12.2.1.3.33344'
445+
arg_map = {
446+
CommandLineArgUtil.ORACLE_HOME_SWITCH: '/oracleHome',
447+
CommandLineArgUtil.DOMAIN_HOME_SWITCH: '',
448+
CommandLineArgUtil.TARGET_VERSION_SWITCH: '12.2.1.3.33344'
449+
}
450+
451+
this_model_context = ModelContext("test", arg_map)
452+
453+
online_aliases = Aliases(this_model_context, WlstModes.ONLINE, wls_version)
454+
location = LocationContext()
455+
location.append_location('SecurityConfiguration')
456+
location.add_name_token(online_aliases.get_name_token(location), 'domain')
457+
location.add_name_token('domain', 'system_test')
458+
model_attribute_name = 'RemoteAnonymousRmiiiopEnabled'
459+
value, message = online_aliases.is_valid_model_attribute_name(location, model_attribute_name)
460+
461+
self.assertEqual(value, 2)
462+
463+
wls_version = '12.2.1.5'
464+
arg_map = {
465+
CommandLineArgUtil.ORACLE_HOME_SWITCH: '/oracleHome',
466+
CommandLineArgUtil.DOMAIN_HOME_SWITCH: '',
467+
CommandLineArgUtil.TARGET_VERSION_SWITCH: '12.2.1.5'
468+
}
469+
470+
this_model_context = ModelContext("test", arg_map)
471+
472+
online_aliases = Aliases(this_model_context, WlstModes.ONLINE, wls_version)
473+
location = LocationContext()
474+
location.append_location('SecurityConfiguration')
475+
location.add_name_token(online_aliases.get_name_token(location), 'domain')
476+
location.add_name_token('domain', 'system_test')
477+
model_attribute_name = 'RemoteAnonymousRmiiiopEnabled'
478+
value, message = online_aliases.is_valid_model_attribute_name(location, model_attribute_name)
479+
480+
self.assertEqual(value, 1)
481+
return
482+
443483
def testPropertyTypes(self):
444484
expected = Properties()
445485
expected.put('key1', 'val1')

0 commit comments

Comments
 (0)