Skip to content

Commit 6b35b50

Browse files
author
AWS
committed
Amazon Location Service Maps V2 Update: Remove incorrect endpoint tests
1 parent 56441af commit 6b35b50

File tree

4 files changed

+72
-99
lines changed

4 files changed

+72
-99
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 Location Service Maps V2",
4+
"contributor": "",
5+
"description": "Remove incorrect endpoint tests"
6+
}

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

Lines changed: 18 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -189,17 +189,6 @@
189189
"UseDualStack": false
190190
}
191191
},
192-
{
193-
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
194-
"expect": {
195-
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
196-
},
197-
"params": {
198-
"Region": "us-iso-east-1",
199-
"UseFIPS": true,
200-
"UseDualStack": true
201-
}
202-
},
203192
{
204193
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
205194
"expect": {
@@ -213,17 +202,6 @@
213202
"UseDualStack": false
214203
}
215204
},
216-
{
217-
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
218-
"expect": {
219-
"error": "DualStack is enabled but this partition does not support DualStack"
220-
},
221-
"params": {
222-
"Region": "us-iso-east-1",
223-
"UseFIPS": false,
224-
"UseDualStack": true
225-
}
226-
},
227205
{
228206
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
229207
"expect": {
@@ -237,17 +215,6 @@
237215
"UseDualStack": false
238216
}
239217
},
240-
{
241-
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
242-
"expect": {
243-
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
244-
},
245-
"params": {
246-
"Region": "us-isob-east-1",
247-
"UseFIPS": true,
248-
"UseDualStack": true
249-
}
250-
},
251218
{
252219
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
253220
"expect": {
@@ -261,17 +228,6 @@
261228
"UseDualStack": false
262229
}
263230
},
264-
{
265-
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
266-
"expect": {
267-
"error": "DualStack is enabled but this partition does not support DualStack"
268-
},
269-
"params": {
270-
"Region": "us-isob-east-1",
271-
"UseFIPS": false,
272-
"UseDualStack": true
273-
}
274-
},
275231
{
276232
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
277233
"expect": {
@@ -285,17 +241,6 @@
285241
"UseDualStack": false
286242
}
287243
},
288-
{
289-
"documentation": "For region eu-isoe-west-1 with FIPS enabled and DualStack enabled",
290-
"expect": {
291-
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
292-
},
293-
"params": {
294-
"Region": "eu-isoe-west-1",
295-
"UseFIPS": true,
296-
"UseDualStack": true
297-
}
298-
},
299244
{
300245
"documentation": "For region eu-isoe-west-1 with FIPS enabled and DualStack disabled",
301246
"expect": {
@@ -309,17 +254,6 @@
309254
"UseDualStack": false
310255
}
311256
},
312-
{
313-
"documentation": "For region eu-isoe-west-1 with FIPS disabled and DualStack enabled",
314-
"expect": {
315-
"error": "DualStack is enabled but this partition does not support DualStack"
316-
},
317-
"params": {
318-
"Region": "eu-isoe-west-1",
319-
"UseFIPS": false,
320-
"UseDualStack": true
321-
}
322-
},
323257
{
324258
"documentation": "For region eu-isoe-west-1 with FIPS disabled and DualStack disabled",
325259
"expect": {
@@ -334,49 +268,53 @@
334268
}
335269
},
336270
{
337-
"documentation": "For region us-isof-south-1 with FIPS enabled and DualStack enabled",
271+
"documentation": "For region us-isof-south-1 with FIPS enabled and DualStack disabled",
338272
"expect": {
339-
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
273+
"endpoint": {
274+
"url": "https://geo-maps-fips.us-isof-south-1.csp.hci.ic.gov"
275+
}
340276
},
341277
"params": {
342278
"Region": "us-isof-south-1",
343279
"UseFIPS": true,
344-
"UseDualStack": true
280+
"UseDualStack": false
345281
}
346282
},
347283
{
348-
"documentation": "For region us-isof-south-1 with FIPS enabled and DualStack disabled",
284+
"documentation": "For region us-isof-south-1 with FIPS disabled and DualStack disabled",
349285
"expect": {
350286
"endpoint": {
351-
"url": "https://geo-maps-fips.us-isof-south-1.csp.hci.ic.gov"
287+
"url": "https://geo-maps.us-isof-south-1.csp.hci.ic.gov"
352288
}
353289
},
354290
"params": {
355291
"Region": "us-isof-south-1",
356-
"UseFIPS": true,
292+
"UseFIPS": false,
357293
"UseDualStack": false
358294
}
359295
},
360296
{
361-
"documentation": "For region us-isof-south-1 with FIPS disabled and DualStack enabled",
297+
"documentation": "For region eusc-de-east-1 with FIPS enabled and DualStack disabled",
362298
"expect": {
363-
"error": "DualStack is enabled but this partition does not support DualStack"
299+
"endpoint": {
300+
"url": "https://geo-maps-fips.eusc-de-east-1.amazonaws.eu"
301+
}
364302
},
365303
"params": {
366-
"Region": "us-isof-south-1",
367-
"UseFIPS": false,
368-
"UseDualStack": true
304+
"Region": "eusc-de-east-1",
305+
"UseFIPS": true,
306+
"UseDualStack": false
369307
}
370308
},
371309
{
372-
"documentation": "For region us-isof-south-1 with FIPS disabled and DualStack disabled",
310+
"documentation": "For region eusc-de-east-1 with FIPS disabled and DualStack disabled",
373311
"expect": {
374312
"endpoint": {
375-
"url": "https://geo-maps.us-isof-south-1.csp.hci.ic.gov"
313+
"url": "https://geo-maps.eusc-de-east-1.amazonaws.eu"
376314
}
377315
},
378316
"params": {
379-
"Region": "us-isof-south-1",
317+
"Region": "eusc-de-east-1",
380318
"UseFIPS": false,
381319
"UseDualStack": false
382320
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{
2-
"pagination": {
3-
}
2+
"pagination": {}
43
}

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

Lines changed: 47 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
"output":{"shape":"GetTileResponse"},
7575
"errors":[
7676
{"shape":"InternalServerException"},
77+
{"shape":"ResourceNotFoundException"},
7778
{"shape":"AccessDeniedException"},
7879
{"shape":"ValidationException"},
7980
{"shape":"ThrottlingException"}
@@ -119,23 +120,27 @@
119120
"CompactOverlay":{
120121
"type":"string",
121122
"max":7000,
122-
"min":1
123+
"min":1,
124+
"sensitive":true
123125
},
124126
"CountryCode":{
125127
"type":"string",
126128
"max":3,
127129
"min":2,
128-
"pattern":"([A-Z]{2}|[A-Z]{3})"
130+
"pattern":"([A-Z]{2}|[A-Z]{3})",
131+
"sensitive":true
129132
},
130133
"DistanceMeters":{
131134
"type":"long",
132135
"max":4294967295,
133-
"min":0
136+
"min":0,
137+
"sensitive":true
134138
},
135139
"GeoJsonOverlay":{
136140
"type":"string",
137141
"max":7000,
138-
"min":1
142+
"min":1,
143+
"sensitive":true
139144
},
140145
"GetGlyphsRequest":{
141146
"type":"structure",
@@ -337,7 +342,7 @@
337342
"locationName":"lang"
338343
},
339344
"Padding":{
340-
"shape":"Integer",
345+
"shape":"SensitiveInteger",
341346
"documentation":"<p>Applies additional space (in pixels) around overlay feature to prevent them from being cut or obscured.</p> <note> <p>Value for max and min is determined by:</p> <p>Min: <code>1</code> </p> <p>Max: <code>min(height, width)/4</code> </p> </note> <p>Example: <code>100</code> </p>",
342347
"location":"querystring",
343348
"locationName":"padding"
@@ -401,19 +406,22 @@
401406
"type":"integer",
402407
"box":true,
403408
"max":1400,
404-
"min":64
409+
"min":64,
410+
"sensitive":true
405411
},
406412
"GetStaticMapRequestWidthInteger":{
407413
"type":"integer",
408414
"box":true,
409415
"max":1400,
410-
"min":64
416+
"min":64,
417+
"sensitive":true
411418
},
412419
"GetStaticMapRequestZoomFloat":{
413420
"type":"float",
414421
"box":true,
415422
"max":20,
416-
"min":0
423+
"min":0,
424+
"sensitive":true
417425
},
418426
"GetStaticMapResponse":{
419427
"type":"structure",
@@ -551,15 +559,18 @@
551559
},
552560
"GetTileRequestXString":{
553561
"type":"string",
554-
"pattern":".*\\d+.*"
562+
"pattern":".*\\d+.*",
563+
"sensitive":true
555564
},
556565
"GetTileRequestYString":{
557566
"type":"string",
558-
"pattern":".*\\d+.*"
567+
"pattern":".*\\d+.*",
568+
"sensitive":true
559569
},
560570
"GetTileRequestZString":{
561571
"type":"string",
562-
"pattern":".*\\d+.*"
572+
"pattern":".*\\d+.*",
573+
"sensitive":true
563574
},
564575
"GetTileResponse":{
565576
"type":"structure",
@@ -596,10 +607,6 @@
596607
},
597608
"payload":"Blob"
598609
},
599-
"Integer":{
600-
"type":"integer",
601-
"box":true
602-
},
603610
"InternalServerException":{
604611
"type":"structure",
605612
"required":["Message"],
@@ -646,13 +653,31 @@
646653
"PositionListString":{
647654
"type":"string",
648655
"min":7,
649-
"pattern":"(-?\\d{1,3}(\\.\\d{1,14})?,-?\\d{1,2}(\\.\\d{1,14})?)(,(-?\\d{1,3}(\\.\\d{1,14})?,-?\\d{1,2}(\\.\\d{1,14})?))*"
656+
"pattern":"(-?\\d{1,3}(\\.\\d{1,14})?,-?\\d{1,2}(\\.\\d{1,14})?)(,(-?\\d{1,3}(\\.\\d{1,14})?,-?\\d{1,2}(\\.\\d{1,14})?))*",
657+
"sensitive":true
650658
},
651659
"PositionString":{
652660
"type":"string",
653661
"max":36,
654662
"min":3,
655-
"pattern":"-?\\d{1,3}(\\.\\d{1,14})?,-?\\d{1,2}(\\.\\d{1,14})?"
663+
"pattern":"-?\\d{1,3}(\\.\\d{1,14})?,-?\\d{1,2}(\\.\\d{1,14})?",
664+
"sensitive":true
665+
},
666+
"ResourceNotFoundException":{
667+
"type":"structure",
668+
"required":["Message"],
669+
"members":{
670+
"Message":{
671+
"shape":"String",
672+
"locationName":"message"
673+
}
674+
},
675+
"documentation":"<p>Exception thrown when the associated resource could not be found.</p>",
676+
"error":{
677+
"httpStatusCode":404,
678+
"senderFault":true
679+
},
680+
"exception":true
656681
},
657682
"ScaleBarUnit":{
658683
"type":"string",
@@ -663,6 +688,11 @@
663688
"MilesKilometers"
664689
]
665690
},
691+
"SensitiveInteger":{
692+
"type":"integer",
693+
"box":true,
694+
"sensitive":true
695+
},
666696
"StaticMapStyle":{
667697
"type":"string",
668698
"enum":[

0 commit comments

Comments
 (0)