1+ $ version : " 1.0"
2+
3+ namespace com.amazonaws.route53
4+
5+ use smithy.test#httpRequestTests
6+
7+
8+ apply ListResourceRecordSets @httpRequestTests ([
9+ {
10+ id : " ListResourceRecordSetsNoTrim" ,
11+ documentation : " Validates that HostedZoneId isn't trimmed when not prefixed." ,
12+ method : " GET" ,
13+ protocol : " aws.protocols#restXml" ,
14+ uri : " /2013-04-01/hostedzone/IDOFMYHOSTEDZONE/rrset" ,
15+ bodyMediaType : " application/xml" ,
16+ params : {
17+ "HostedZoneId" : " IDOFMYHOSTEDZONE"
18+ }
19+ },
20+ {
21+ id : " ListResourceRecordSetsTrim" ,
22+ documentation : " Validates that HostedZoneId is trimmed." ,
23+ method : " GET" ,
24+ protocol : " aws.protocols#restXml" ,
25+ uri : " /2013-04-01/hostedzone/IDOFMYHOSTEDZONE/rrset" ,
26+ bodyMediaType : " application/xml" ,
27+ params : {
28+ "HostedZoneId" : " hostedzone/IDOFMYHOSTEDZONE"
29+ }
30+ },
31+ {
32+ id : " ListResourceRecordSetsTrimLeadingSlash" ,
33+ documentation : " Validates that HostedZoneId is trimmed even with a leading slash." ,
34+ method : " GET" ,
35+ protocol : " aws.protocols#restXml" ,
36+ uri : " /2013-04-01/hostedzone/IDOFMYHOSTEDZONE/rrset" ,
37+ bodyMediaType : " application/xml" ,
38+ params : {
39+ "HostedZoneId" : " /hostedzone/IDOFMYHOSTEDZONE"
40+ }
41+ },
42+ {
43+ id : " ListResourceRecordSetsTrimMultislash" ,
44+ documentation : " Validates that HostedZoneId isn't over-trimmed." ,
45+ method : " GET" ,
46+ protocol : " aws.protocols#restXml" ,
47+ uri : " /2013-04-01/hostedzone/IDOFMY%2FHOSTEDZONE/rrset" ,
48+ bodyMediaType : " application/xml" ,
49+ params : {
50+ "HostedZoneId" : " /hostedzone/IDOFMY/HOSTEDZONE"
51+ }
52+ },
53+ ])
54+
55+ apply GetChange @httpRequestTests ([
56+ {
57+ id : " GetChangeTrimChangeId" ,
58+ documentation : " This test validates that change id is correctly trimmed" ,
59+ method : " GET" ,
60+ protocol : " aws.protocols#restXml" ,
61+ uri : " /2013-04-01/change/SOMECHANGEID" ,
62+ bodyMediaType : " application/xml" ,
63+ params : {
64+ "Id" : " /change/SOMECHANGEID"
65+ }
66+ },
67+ ])
68+
69+ apply GetReusableDelegationSet @httpRequestTests ([
70+ {
71+ id : " GetReusableDelegationSetTrimDelegationSetId" ,
72+ documentation : " This test validates that delegation set id is correctly trimmed" ,
73+ method : " GET" ,
74+ protocol : " aws.protocols#restXml" ,
75+ uri : " /2013-04-01/delegationset/DELEGATIONSETID" ,
76+ bodyMediaType : " application/xml" ,
77+ params : {
78+ "Id" : " /delegationset/DELEGATIONSETID"
79+ }
80+ },
81+ ])
0 commit comments