Skip to content

Commit 71ad30e

Browse files
authored
Merge pull request #51 from oracle/Issue#50-Add-RetryCount-Attribute
Add RetryCount attribute to /ServerTemplate/WebService/WebServiceBuff…
2 parents 0cbc9c1 + 292ce7b commit 71ad30e

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,6 +1241,7 @@
12411241
},
12421242
"attributes": {
12431243
"Notes": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "Notes", "wlst_path": "WP001", "value": {"default": "None" }, "wlst_type": "string"} ],
1244+
"RetryCount": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "RetryCount", "wlst_path": "WP001", "value": {"default": 3 }, "wlst_type": "integer"} ],
12441245
"RetryDelay": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "RetryDelay", "wlst_path": "WP001", "value": {"default": "P0DT30S"}, "wlst_type": "string"} ]
12451246
},
12461247
"wlst_attributes_path": "WP001",

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
@@ -1245,6 +1245,7 @@
12451245
},
12461246
"attributes": {
12471247
"Notes": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "Notes", "wlst_path": "WP001", "value": {"default": "None" }, "wlst_type": "string"} ],
1248+
"RetryCount": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "RetryCount", "wlst_path": "WP001", "value": {"default": 3 }, "wlst_type": "integer"} ],
12481249
"RetryDelay": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "RetryDelay", "wlst_path": "WP001", "value": {"default": "P0DT30S" }, "wlst_type": "string"} ]
12491250
},
12501251
"wlst_attributes_path": "WP001",

core/src/test/python/aliases_test.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,6 +1114,22 @@ def testIssue38Fix(self):
11141114

11151115
return
11161116

1117+
def testIssue50Fix(self):
1118+
location = LocationContext().append_location(FOLDERS.SERVER_TEMPLATE)
1119+
token = self.aliases.get_name_token(location)
1120+
location.add_name_token(token, 'ServerTemplate-0')
1121+
location.append_location(FOLDERS.WEB_SERVICE)
1122+
location.append_location(FOLDERS.WEB_SERVICE_BUFFERING)
1123+
1124+
wlst_attribute_name = self.aliases.get_wlst_attribute_name(location, 'RetryCount')
1125+
expected = 'RetryCount'
1126+
self.assertEqual(wlst_attribute_name, expected)
1127+
1128+
wlst_attribute_name = self.online_aliases.get_wlst_attribute_name(location, 'RetryCount')
1129+
self.assertEqual(wlst_attribute_name, expected)
1130+
1131+
return
1132+
11171133
def testGetModelAttributeName(self):
11181134
location=LocationContext().append_location(FOLDERS.JMS_SYSTEM_RESOURCE)
11191135
token = self.aliases.get_name_token(location)

0 commit comments

Comments
 (0)