From 4cc69462c20b5b5645c6c7ace2319f63a1b6a444 Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Mon, 7 Oct 2024 13:39:10 -0400 Subject: [PATCH] revert test deletion --- services/route53/model/route53-tests.smithy | 81 +++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 services/route53/model/route53-tests.smithy diff --git a/services/route53/model/route53-tests.smithy b/services/route53/model/route53-tests.smithy new file mode 100644 index 00000000000..f30e73777c3 --- /dev/null +++ b/services/route53/model/route53-tests.smithy @@ -0,0 +1,81 @@ +$version: "1.0" + +namespace com.amazonaws.route53 + +use smithy.test#httpRequestTests + + +apply ListResourceRecordSets @httpRequestTests([ + { + id: "ListResourceRecordSetsNoTrim", + documentation: "Validates that HostedZoneId isn't trimmed when not prefixed.", + method: "GET", + protocol: "aws.protocols#restXml", + uri: "/2013-04-01/hostedzone/IDOFMYHOSTEDZONE/rrset", + bodyMediaType: "application/xml", + params: { + "HostedZoneId": "IDOFMYHOSTEDZONE" + } + }, + { + id: "ListResourceRecordSetsTrim", + documentation: "Validates that HostedZoneId is trimmed.", + method: "GET", + protocol: "aws.protocols#restXml", + uri: "/2013-04-01/hostedzone/IDOFMYHOSTEDZONE/rrset", + bodyMediaType: "application/xml", + params: { + "HostedZoneId": "hostedzone/IDOFMYHOSTEDZONE" + } + }, + { + id: "ListResourceRecordSetsTrimLeadingSlash", + documentation: "Validates that HostedZoneId is trimmed even with a leading slash.", + method: "GET", + protocol: "aws.protocols#restXml", + uri: "/2013-04-01/hostedzone/IDOFMYHOSTEDZONE/rrset", + bodyMediaType: "application/xml", + params: { + "HostedZoneId": "/hostedzone/IDOFMYHOSTEDZONE" + } + }, + { + id: "ListResourceRecordSetsTrimMultislash", + documentation: "Validates that HostedZoneId isn't over-trimmed.", + method: "GET", + protocol: "aws.protocols#restXml", + uri: "/2013-04-01/hostedzone/IDOFMY%2FHOSTEDZONE/rrset", + bodyMediaType: "application/xml", + params: { + "HostedZoneId": "/hostedzone/IDOFMY/HOSTEDZONE" + } + }, +]) + +apply GetChange @httpRequestTests([ + { + id: "GetChangeTrimChangeId", + documentation: "This test validates that change id is correctly trimmed", + method: "GET", + protocol: "aws.protocols#restXml", + uri: "/2013-04-01/change/SOMECHANGEID", + bodyMediaType: "application/xml", + params: { + "Id": "/change/SOMECHANGEID" + } + }, +]) + +apply GetReusableDelegationSet @httpRequestTests([ + { + id: "GetReusableDelegationSetTrimDelegationSetId", + documentation: "This test validates that delegation set id is correctly trimmed", + method: "GET", + protocol: "aws.protocols#restXml", + uri: "/2013-04-01/delegationset/DELEGATIONSETID", + bodyMediaType: "application/xml", + params: { + "Id": "/delegationset/DELEGATIONSETID" + } + }, +]) \ No newline at end of file