Skip to content

Commit ae63882

Browse files
committed
Merge branch 'custom-resource-alias-test' into 'main'
Add custom resource to alias test for online verification See merge request weblogic-cloud/weblogic-deploy-tooling!1742
2 parents 457dc82 + 989e8a3 commit ae63882

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@
3232
"DescriptorBeanClass": [ { "version": "[10,)", "wlst_mode": "both", "wlst_name": "DescriptorBeanClass", "wlst_path": "WP001", "default_value": null, "wlst_type": "string" } ],
3333
"ModuleType": [ { "version": "[10,)", "wlst_mode": "both", "wlst_name": "ModuleType", "wlst_path": "WP001", "default_value": null, "wlst_type": "string" } ],
3434
"Notes": [ { "version": "[10,)", "wlst_mode": "both", "wlst_name": "Notes", "wlst_path": "WP001", "default_value": null, "wlst_type": "string" } ],
35+
"PartitionName": [ { "version": "[10,)", "wlst_mode": "online", "wlst_name": "PartitionName", "wlst_path": "WP001", "default_value": null, "wlst_type": "string", "get_method": "GET", "access": "IGNORED" } ],
3536
"ResourceClass": [ { "version": "[10,)", "wlst_mode": "both", "wlst_name": "ResourceClass", "wlst_path": "WP001", "default_value": null, "wlst_type": "string" } ],
36-
"SourcePath": [ { "version": "[10,)", "wlst_mode": "both", "wlst_name": "SourcePath", "wlst_path": "WP001", "default_value": null, "wlst_type": "string", "uses_path_tokens": true } ],
37+
"SourcePath": [ { "version": "[10,)", "wlst_mode": "both", "wlst_name": "SourcePath", "wlst_path": "WP001", "default_value": null, "wlst_type": "string", "uses_path_tokens": true, "derived_default": "${:true}" } ],
3738
"Target": [ { "version": "[10,)", "wlst_mode": "offline", "wlst_name": "Target", "wlst_path": "WP001", "default_value": null, "wlst_type": "delimited_string", "set_method": "MBEAN.set_target_mbeans" },
3839
{ "version": "[10,)", "wlst_mode": "online", "wlst_name": "Targets", "wlst_path": "WP002", "default_value": null, "wlst_type": "jarray", "get_method": "GET", "derived_default": true, "preferred_model_type": "delimited_string", "set_method": "MBEAN.set_target_mbeans", "set_mbean_type": "weblogic.management.configuration.TargetMBean"} ]
3940
},
Binary file not shown.

integration-tests/alias-test/generate/src/test/resources/alias-test-model.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
domainInfo:
22
AdminUserName: weblogic
33
AdminPassword: welcome1
4+
domainLibraries:
5+
- wlsdeploy/domainLibraries/DemoCustomResource.jar
46
topology:
57
Name: 'system_test_domain'
68
AdminServerName: 'AdminServer'
79
Server:
810
AdminServer:
911
ListenPort: 7001
12+
resources:
13+
# CustomResource has to be created with legitimate class references
14+
# to a resource jar in domain/lib (DemoCustomResource.jar above)
15+
# for the domain to start cleanly.
16+
CustomResource:
17+
CustomResource-1:
18+
DescriptorBeanClass: 'demo.customresource.DemoBean'
19+
ResourceClass: 'demo.customresource.DemoResource'
1020
appDeployments:
1121
Library:
1222

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@
8181
'ModuleType': 'war',
8282
'SourcePath': 'wlsdeploy/applications/get-listen-address-app.war'
8383
},
84+
'/CustomResource': {
85+
'DescriptorBeanClass': 'demo.customresource.DemoBean',
86+
'ResourceClass': 'demo.customresource.DemoResource'
87+
},
8488
'/Library': {
8589
'ModuleType': 'war',
8690
'SourcePath': 'wlsdeploy/sharedLibraries/jstl-1.2.war'
@@ -92,6 +96,10 @@
9296
'ModuleType': 'war',
9397
'SourcePath': 'wlsdeploy/applications/get-listen-address-app.war'
9498
},
99+
'/CustomResource': {
100+
'DescriptorBeanClass': 'demo.customresource.DemoBean',
101+
'ResourceClass': 'demo.customresource.DemoResource'
102+
},
95103
'/JMSSystemResource/JmsResource/ForeignServer/JNDIProperty': {
96104
'Key': 'JNDIProperties-\\d{3,5}'
97105
},

0 commit comments

Comments
 (0)