Skip to content

Commit 9ce1ebc

Browse files
author
AWS
committed
Amazon Lex Model Building Service Update: Remove incorrect endpoint tests
1 parent f0a5855 commit 9ce1ebc

File tree

4 files changed

+35
-73
lines changed

4 files changed

+35
-73
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 Lex Model Building Service",
4+
"contributor": "",
5+
"description": "Remove incorrect endpoint tests"
6+
}

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

Lines changed: 24 additions & 24 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,18 +212,17 @@
216212
},
217213
"supportsFIPS"
218214
]
219-
}
215+
},
216+
true
220217
]
221218
}
222219
],
223-
"type": "tree",
224220
"rules": [
225221
{
226222
"conditions": [
227223
{
228224
"fn": "stringEquals",
229225
"argv": [
230-
"aws",
231226
{
232227
"fn": "getAttr",
233228
"argv": [
@@ -236,7 +231,8 @@
236231
},
237232
"name"
238233
]
239-
}
234+
},
235+
"aws"
240236
]
241237
}
242238
],
@@ -252,7 +248,6 @@
252248
{
253249
"fn": "stringEquals",
254250
"argv": [
255-
"aws-us-gov",
256251
{
257252
"fn": "getAttr",
258253
"argv": [
@@ -261,7 +256,8 @@
261256
},
262257
"name"
263258
]
264-
}
259+
},
260+
"aws-us-gov"
265261
]
266262
}
267263
],
@@ -281,14 +277,16 @@
281277
},
282278
"type": "endpoint"
283279
}
284-
]
280+
],
281+
"type": "tree"
285282
},
286283
{
287284
"conditions": [],
288285
"error": "FIPS is enabled but this partition does not support FIPS",
289286
"type": "error"
290287
}
291-
]
288+
],
289+
"type": "tree"
292290
},
293291
{
294292
"conditions": [
@@ -302,7 +300,6 @@
302300
]
303301
}
304302
],
305-
"type": "tree",
306303
"rules": [
307304
{
308305
"conditions": [
@@ -322,7 +319,6 @@
322319
]
323320
}
324321
],
325-
"type": "tree",
326322
"rules": [
327323
{
328324
"conditions": [],
@@ -333,14 +329,16 @@
333329
},
334330
"type": "endpoint"
335331
}
336-
]
332+
],
333+
"type": "tree"
337334
},
338335
{
339336
"conditions": [],
340337
"error": "DualStack is enabled but this partition does not support DualStack",
341338
"type": "error"
342339
}
343-
]
340+
],
341+
"type": "tree"
344342
},
345343
{
346344
"conditions": [
@@ -401,9 +399,11 @@
401399
},
402400
"type": "endpoint"
403401
}
404-
]
402+
],
403+
"type": "tree"
405404
}
406-
]
405+
],
406+
"type": "tree"
407407
},
408408
{
409409
"conditions": [],

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

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -286,17 +286,6 @@
286286
"UseDualStack": false
287287
}
288288
},
289-
{
290-
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
291-
"expect": {
292-
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
293-
},
294-
"params": {
295-
"Region": "us-iso-east-1",
296-
"UseFIPS": true,
297-
"UseDualStack": true
298-
}
299-
},
300289
{
301290
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
302291
"expect": {
@@ -310,17 +299,6 @@
310299
"UseDualStack": false
311300
}
312301
},
313-
{
314-
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
315-
"expect": {
316-
"error": "DualStack is enabled but this partition does not support DualStack"
317-
},
318-
"params": {
319-
"Region": "us-iso-east-1",
320-
"UseFIPS": false,
321-
"UseDualStack": true
322-
}
323-
},
324302
{
325303
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
326304
"expect": {
@@ -334,17 +312,6 @@
334312
"UseDualStack": false
335313
}
336314
},
337-
{
338-
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
339-
"expect": {
340-
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
341-
},
342-
"params": {
343-
"Region": "us-isob-east-1",
344-
"UseFIPS": true,
345-
"UseDualStack": true
346-
}
347-
},
348315
{
349316
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
350317
"expect": {
@@ -358,17 +325,6 @@
358325
"UseDualStack": false
359326
}
360327
},
361-
{
362-
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
363-
"expect": {
364-
"error": "DualStack is enabled but this partition does not support DualStack"
365-
},
366-
"params": {
367-
"Region": "us-isob-east-1",
368-
"UseFIPS": false,
369-
"UseDualStack": true
370-
}
371-
},
372328
{
373329
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
374330
"expect": {

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
"endpointPrefix":"models.lex",
66
"jsonVersion":"1.1",
77
"protocol":"rest-json",
8+
"protocols":["rest-json"],
89
"serviceFullName":"Amazon Lex Model Building Service",
910
"serviceId":"Lex Model Building Service",
1011
"signatureVersion":"v4",
1112
"signingName":"lex",
12-
"uid":"lex-models-2017-04-19"
13+
"uid":"lex-models-2017-04-19",
14+
"auth":["aws.auth#sigv4"]
1315
},
1416
"operations":{
1517
"CreateBotVersion":{
@@ -4205,8 +4207,7 @@
42054207
},
42064208
"TagResourceResponse":{
42074209
"type":"structure",
4208-
"members":{
4209-
}
4210+
"members":{}
42104211
},
42114212
"TagValue":{
42124213
"type":"string",
@@ -4237,8 +4238,7 @@
42374238
},
42384239
"UntagResourceResponse":{
42394240
"type":"structure",
4240-
"members":{
4241-
}
4241+
"members":{}
42424242
},
42434243
"UserId":{
42444244
"type":"string",

0 commit comments

Comments
 (0)