Skip to content

Commit 79e6c5e

Browse files
author
AWS
committed
Amazon WorkDocs Update: Remove incorrect endpoint tests
1 parent fc24a6d commit 79e6c5e

File tree

4 files changed

+35
-77
lines changed

4 files changed

+35
-77
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon WorkDocs",
4+
"contributor": "",
5+
"description": "Remove incorrect endpoint tests"
6+
}

services/workdocs/src/main/resources/codegen-resources/endpoint-rule-set.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
]
4141
}
4242
],
43-
"type": "tree",
4443
"rules": [
4544
{
4645
"conditions": [
@@ -83,7 +82,8 @@
8382
},
8483
"type": "endpoint"
8584
}
86-
]
85+
],
86+
"type": "tree"
8787
},
8888
{
8989
"conditions": [
@@ -96,7 +96,6 @@
9696
]
9797
}
9898
],
99-
"type": "tree",
10099
"rules": [
101100
{
102101
"conditions": [
@@ -110,7 +109,6 @@
110109
"assign": "PartitionResult"
111110
}
112111
],
113-
"type": "tree",
114112
"rules": [
115113
{
116114
"conditions": [
@@ -133,7 +131,6 @@
133131
]
134132
}
135133
],
136-
"type": "tree",
137134
"rules": [
138135
{
139136
"conditions": [
@@ -168,7 +165,6 @@
168165
]
169166
}
170167
],
171-
"type": "tree",
172168
"rules": [
173169
{
174170
"conditions": [],
@@ -179,14 +175,16 @@
179175
},
180176
"type": "endpoint"
181177
}
182-
]
178+
],
179+
"type": "tree"
183180
},
184181
{
185182
"conditions": [],
186183
"error": "FIPS and DualStack are enabled, but this partition does not support one or both",
187184
"type": "error"
188185
}
189-
]
186+
],
187+
"type": "tree"
190188
},
191189
{
192190
"conditions": [
@@ -200,14 +198,12 @@
200198
]
201199
}
202200
],
203-
"type": "tree",
204201
"rules": [
205202
{
206203
"conditions": [
207204
{
208205
"fn": "booleanEquals",
209206
"argv": [
210-
true,
211207
{
212208
"fn": "getAttr",
213209
"argv": [
@@ -216,11 +212,11 @@
216212
},
217213
"supportsFIPS"
218214
]
219-
}
215+
},
216+
true
220217
]
221218
}
222219
],
223-
"type": "tree",
224220
"rules": [
225221
{
226222
"conditions": [],
@@ -231,14 +227,16 @@
231227
},
232228
"type": "endpoint"
233229
}
234-
]
230+
],
231+
"type": "tree"
235232
},
236233
{
237234
"conditions": [],
238235
"error": "FIPS is enabled but this partition does not support FIPS",
239236
"type": "error"
240237
}
241-
]
238+
],
239+
"type": "tree"
242240
},
243241
{
244242
"conditions": [
@@ -252,7 +250,6 @@
252250
]
253251
}
254252
],
255-
"type": "tree",
256253
"rules": [
257254
{
258255
"conditions": [
@@ -272,7 +269,6 @@
272269
]
273270
}
274271
],
275-
"type": "tree",
276272
"rules": [
277273
{
278274
"conditions": [],
@@ -283,14 +279,16 @@
283279
},
284280
"type": "endpoint"
285281
}
286-
]
282+
],
283+
"type": "tree"
287284
},
288285
{
289286
"conditions": [],
290287
"error": "DualStack is enabled but this partition does not support DualStack",
291288
"type": "error"
292289
}
293-
]
290+
],
291+
"type": "tree"
294292
},
295293
{
296294
"conditions": [],
@@ -301,9 +299,11 @@
301299
},
302300
"type": "endpoint"
303301
}
304-
]
302+
],
303+
"type": "tree"
305304
}
306-
]
305+
],
306+
"type": "tree"
307307
},
308308
{
309309
"conditions": [],

services/workdocs/src/main/resources/codegen-resources/endpoint-tests.json

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -234,17 +234,6 @@
234234
"UseDualStack": false
235235
}
236236
},
237-
{
238-
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
239-
"expect": {
240-
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
241-
},
242-
"params": {
243-
"Region": "us-iso-east-1",
244-
"UseFIPS": true,
245-
"UseDualStack": true
246-
}
247-
},
248237
{
249238
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
250239
"expect": {
@@ -258,17 +247,6 @@
258247
"UseDualStack": false
259248
}
260249
},
261-
{
262-
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
263-
"expect": {
264-
"error": "DualStack is enabled but this partition does not support DualStack"
265-
},
266-
"params": {
267-
"Region": "us-iso-east-1",
268-
"UseFIPS": false,
269-
"UseDualStack": true
270-
}
271-
},
272250
{
273251
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
274252
"expect": {
@@ -282,17 +260,6 @@
282260
"UseDualStack": false
283261
}
284262
},
285-
{
286-
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
287-
"expect": {
288-
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
289-
},
290-
"params": {
291-
"Region": "us-isob-east-1",
292-
"UseFIPS": true,
293-
"UseDualStack": true
294-
}
295-
},
296263
{
297264
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
298265
"expect": {
@@ -306,17 +273,6 @@
306273
"UseDualStack": false
307274
}
308275
},
309-
{
310-
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
311-
"expect": {
312-
"error": "DualStack is enabled but this partition does not support DualStack"
313-
},
314-
"params": {
315-
"Region": "us-isob-east-1",
316-
"UseFIPS": false,
317-
"UseDualStack": true
318-
}
319-
},
320276
{
321277
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
322278
"expect": {

services/workdocs/src/main/resources/codegen-resources/service-2.json

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
"endpointPrefix":"workdocs",
66
"jsonVersion":"1.1",
77
"protocol":"rest-json",
8+
"protocols":["rest-json"],
89
"serviceFullName":"Amazon WorkDocs",
910
"serviceId":"WorkDocs",
1011
"signatureVersion":"v4",
11-
"uid":"workdocs-2016-05-01"
12+
"uid":"workdocs-2016-05-01",
13+
"auth":["aws.auth#sigv4"]
1214
},
1315
"operations":{
1416
"AbortDocumentVersionUpload":{
@@ -1280,8 +1282,7 @@
12801282
},
12811283
"CreateCustomMetadataResponse":{
12821284
"type":"structure",
1283-
"members":{
1284-
}
1285+
"members":{}
12851286
},
12861287
"CreateFolderRequest":{
12871288
"type":"structure",
@@ -1339,8 +1340,7 @@
13391340
},
13401341
"CreateLabelsResponse":{
13411342
"type":"structure",
1342-
"members":{
1343-
}
1343+
"members":{}
13441344
},
13451345
"CreateNotificationSubscriptionRequest":{
13461346
"type":"structure",
@@ -1505,8 +1505,7 @@
15051505
},
15061506
"DeactivatingLastSystemUserException":{
15071507
"type":"structure",
1508-
"members":{
1509-
},
1508+
"members":{},
15101509
"documentation":"<p>The last user in the organization is being deactivated.</p>",
15111510
"error":{"httpStatusCode":409},
15121511
"exception":true
@@ -1583,8 +1582,7 @@
15831582
},
15841583
"DeleteCustomMetadataResponse":{
15851584
"type":"structure",
1586-
"members":{
1587-
}
1585+
"members":{}
15881586
},
15891587
"DeleteDocumentRequest":{
15901588
"type":"structure",
@@ -1706,8 +1704,7 @@
17061704
},
17071705
"DeleteLabelsResponse":{
17081706
"type":"structure",
1709-
"members":{
1710-
}
1707+
"members":{}
17111708
},
17121709
"DeleteNotificationSubscriptionRequest":{
17131710
"type":"structure",
@@ -3897,8 +3894,7 @@
38973894
},
38983895
"UnauthorizedOperationException":{
38993896
"type":"structure",
3900-
"members":{
3901-
},
3897+
"members":{},
39023898
"documentation":"<p>The operation is not permitted.</p>",
39033899
"error":{"httpStatusCode":403},
39043900
"exception":true

0 commit comments

Comments
 (0)