Skip to content

Commit 45156de

Browse files
committed
Merge branch 'jira-wdt-923-discover-cleanup' into 'main'
Fix more alias test failures from deprecated attributes See merge request weblogic-cloud/weblogic-deploy-tooling!1764
2 parents dd9c3e6 + e96313e commit 45156de

File tree

5 files changed

+13
-1
lines changed

5 files changed

+13
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,6 +1384,7 @@
13841384
{"version": "[12.2.1,12.2.1.1)", "wlst_mode": "both", "wlst_name": "OutboundPrivateKeyPassPhrase${Encrypted:}", "wlst_path": "WP001", "default_value": null, "wlst_type": "password", "access": "${:IGNORED}", "derived_default": "${:true}", "secret_suffix": "outboundprivatekey" },
13851385
{"version": "[12.2.1.1,)", "wlst_mode": "both", "wlst_name": "OutboundPrivateKeyPassPhraseEncrypted", "wlst_path": "WP001", "default_value": null, "wlst_type": "password", "access": "${:IGNORED}", "derived_default": "${:true}", "secret_suffix": "outboundprivatekey" }
13861386
],
1387+
"PeerValidationEnforced": [ {"version": "[10,12.2.1)", "wlst_mode": "online", "wlst_name": "PeerValidationEnforced", "wlst_path": "WP001", "default_value": 0, "wlst_type": "integer" } ],
13871388
"SSLRejectionLoggingEnabled": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "SSLRejectionLoggingEnabled", "wlst_path": "WP001", "default_value": "true", "wlst_type": "boolean" } ],
13881389
"ServerCertificateChainFileName": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "ServerCertificateChainFileName", "wlst_path": "WP001", "default_value": "server-certchain.pem", "wlst_type": "string" } ],
13891390
"ServerCertificateFileName": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "ServerCertificateFileName", "wlst_path": "WP001", "default_value": "server-cert.der", "wlst_type": "string" } ],
@@ -1779,6 +1780,7 @@
17791780
"CleanupOrphanedSessionsEnabled": [ {"version": "[12.2.1.4,)", "wlst_mode": "both", "wlst_name": "CleanupOrphanedSessionsEnabled", "wlst_path": "WP001", "default_value": "false", "wlst_type": "boolean" } ],
17801781
"ClientCertProxyEnabled": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "ClientCertProxyEnabled", "wlst_path": "WP001", "default_value": "false", "wlst_type": "boolean" } ],
17811782
"Cluster": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "Cluster", "wlst_path": "WP001", "default_value": null, "wlst_type": "string", "get_method": "${LSA:GET}", "set_method": "${MBEAN.set_server_cluster_mbean:MBEAN.set_cluster_mbean}", "set_mbean_type": "weblogic.management.configuration.ClusterMBean" } ],
1783+
"ClusterRuntime": [ {"version": "[10,12.1.2)", "wlst_mode": "online", "wlst_name": "ClusterRuntime", "wlst_path": "WP001", "default_value": null, "wlst_type": "string", "access": "IGNORED" } ],
17821784
"ClusterWeight": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "ClusterWeight", "wlst_path": "WP001", "default_value": 100, "wlst_type": "integer" } ],
17831785
"CoherenceClusterSystemResource": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "CoherenceClusterSystemResource", "wlst_path": "WP001", "default_value": null, "wlst_type": "string", "get_method": "${LSA:GET}", "set_method": "MBEAN.set_coherence_cluster_mbean", "set_mbean_type": "weblogic.management.configuration.CoherenceClusterSystemResourceMBean" } ],
17841786
"CompleteCOMMessageTimeout": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "CompleteCOMMessageTimeout", "wlst_path": "WP001", "default_value": -1, "wlst_type": "integer" } ],

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,6 +1388,7 @@
13881388
{"version": "[12.2.1,12.2.1.1)", "wlst_mode": "both", "wlst_name": "OutboundPrivateKeyPassPhrase${Encrypted:}", "wlst_path": "WP001", "default_value": null, "wlst_type": "password", "access": "${:IGNORED}", "secret_suffix": "outboundprivatekey" },
13891389
{"version": "[12.2.1.1,)", "wlst_mode": "both", "wlst_name": "OutboundPrivateKeyPassPhraseEncrypted", "wlst_path": "WP001", "default_value": null, "wlst_type": "password", "access": "${:IGNORED}", "secret_suffix": "outboundprivatekey", "derived_default": "${:true}" }
13901390
],
1391+
"PeerValidationEnforced": [ {"version": "[12.1.2,12.2.1)", "wlst_mode": "online", "wlst_name": "PeerValidationEnforced", "wlst_path": "WP001", "default_value": 0, "wlst_type": "integer" } ],
13911392
"SSLRejectionLoggingEnabled": [ {"version": "[12.1.2,)", "wlst_mode": "both", "wlst_name": "SSLRejectionLoggingEnabled", "wlst_path": "WP001", "default_value": "true", "wlst_type": "boolean" } ],
13921393
"ServerCertificateChainFileName": [ {"version": "[12.1.2,)", "wlst_mode": "both", "wlst_name": "ServerCertificateChainFileName", "wlst_path": "WP001", "default_value": "server-certchain.pem", "wlst_type": "string" } ],
13931394
"ServerCertificateFileName": [ {"version": "[12.1.2,)", "wlst_mode": "both", "wlst_name": "ServerCertificateFileName", "wlst_path": "WP001", "default_value": "server-cert.der", "wlst_type": "string" } ],

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"copyright": "Copyright (c) 2017, 2022, Oracle Corporation and/or its affiliates.",
2+
"copyright": "Copyright (c) 2017, 2025, Oracle and/or its affiliates.",
33
"license": "Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl",
44
"wlst_type": "XMLEntityCache${:s}",
55
"online_bean": "weblogic.management.configuration.XMLEntityCacheMBean",
@@ -11,6 +11,9 @@
1111
"CacheLocation": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "CacheLocation", "wlst_path": "WP001", "default_value": "xmlcache", "wlst_type": "string" } ],
1212
"CacheMemorySize": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "CacheMemorySize", "wlst_path": "WP001", "default_value": 500, "wlst_type": "integer" } ],
1313
"CacheTimeoutInterval": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "CacheTimeoutInterval", "wlst_path": "WP001", "default_value": 120, "wlst_type": "integer" } ],
14+
"EntityCacheCurrentRuntime": [ {"version": "[10,12.1.2)", "wlst_mode": "online", "wlst_name": "EntityCacheCurrentRuntime", "wlst_path": "WP001", "default_value": null, "wlst_type": "string", "access": "IGNORED" } ],
15+
"EntityCacheHistoricalRuntime": [ {"version": "[10,12.1.2)", "wlst_mode": "online", "wlst_name": "EntityCacheHistoricalRuntime", "wlst_path": "WP001", "default_value": null, "wlst_type": "string", "access": "IGNORED" } ],
16+
"EntityCacheSessionRuntime": [ {"version": "[10,12.1.2)", "wlst_mode": "online", "wlst_name": "EntityCacheSessionRuntime", "wlst_path": "WP001", "default_value": null, "wlst_type": "string", "access": "IGNORED" } ],
1417
"MaxSize": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "MaxSize", "wlst_path": "WP001", "default_value": 0, "wlst_type": "integer" } ],
1518
"Notes": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "Notes", "wlst_path": "WP001", "default_value": null, "wlst_type": "string" } ]
1619
},

integration-tests/alias-test/verify/src/test/python/aliastest/verify/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
'ServerFailureTrigger' # appears in attribute list until folder MBean is created
4242
],
4343
'/Server': [
44+
'ClusterRuntime', # an MBean from older versions of WLS
4445
'JTAMigratableTarget' # appears in attribute list until folder MBean is created
4546
],
4647
'/Server/OverloadProtection': [

integration-tests/alias-test/verify/src/test/python/aliastest/verify/verifier.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,11 @@ def _verify_attributes_at_location(self, generated_attributes, location):
438438

439439
if generated_attributes:
440440
for generated_attribute in generated_attributes:
441+
if verify_utils.is_alias_attribute_in_ignore_list(self._model_context, location, generated_attribute):
442+
# don't remove from the unprocessed alias list, process later from that list.
443+
# we don't need to omit these from the generated file any longer.
444+
continue
445+
441446
if generated_attribute in unprocessed_alias_list:
442447
unprocessed_alias_list.remove(generated_attribute)
443448

0 commit comments

Comments
 (0)