-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
aws - route53 record set delete action, hosted zone delete fix (#9291)
- Loading branch information
Showing
10 changed files
with
388 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...a/placebo/test_r53_resourcerecordset_cname_remove/route53.ChangeResourceRecordSets_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"ResponseMetadata": {}, | ||
"ChangeInfo": { | ||
"Id": "/change/C08700492OMT62TVMBS6H", | ||
"Status": "PENDING", | ||
"SubmittedAt": { | ||
"__class__": "datetime", | ||
"year": 2024, | ||
"month": 2, | ||
"day": 11, | ||
"hour": 17, | ||
"minute": 38, | ||
"second": 53, | ||
"microsecond": 103000 | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
tests/data/placebo/test_r53_resourcerecordset_cname_remove/route53.ListHostedZones_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"ResponseMetadata": {}, | ||
"HostedZones": [ | ||
{ | ||
"Id": "/hostedzone/Z0703663WE3WTQ3FAPIF", | ||
"Name": "subdomain.example.com.", | ||
"CallerReference": "1560", | ||
"Config": { | ||
"PrivateZone": true | ||
}, | ||
"ResourceRecordSetCount": 3 | ||
} | ||
], | ||
"IsTruncated": false, | ||
"MaxItems": "100" | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...ata/placebo/test_r53_resourcerecordset_cname_remove/route53.ListResourceRecordSets_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"ResponseMetadata": {}, | ||
"ResourceRecordSets": [ | ||
{ | ||
"Name": "subdomain.example.com.", | ||
"Type": "NS", | ||
"TTL": 172800, | ||
"ResourceRecords": [ | ||
{ | ||
"Value": "ns-1536.awsdns-00.co.uk." | ||
}, | ||
{ | ||
"Value": "ns-0.awsdns-00.com." | ||
}, | ||
{ | ||
"Value": "ns-1024.awsdns-00.org." | ||
}, | ||
{ | ||
"Value": "ns-512.awsdns-00.net." | ||
} | ||
] | ||
}, | ||
{ | ||
"Name": "subdomain.example.com.", | ||
"Type": "SOA", | ||
"TTL": 900, | ||
"ResourceRecords": [ | ||
{ | ||
"Value": "ns-1536.awsdns-00.co.uk. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400" | ||
} | ||
] | ||
}, | ||
{ | ||
"Name": "mail.subdomain.example.com.", | ||
"Type": "CNAME", | ||
"TTL": 300, | ||
"ResourceRecords": [ | ||
{ | ||
"Value": "mailserver01.subdomain.example.com." | ||
} | ||
] | ||
} | ||
], | ||
"IsTruncated": false, | ||
"MaxItems": "100" | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
...ata/placebo/test_r53_resourcerecordset_cname_remove/route53.ListResourceRecordSets_2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"ResponseMetadata": {}, | ||
"ResourceRecordSets": [ | ||
{ | ||
"Name": "subdomain.example.com.", | ||
"Type": "NS", | ||
"TTL": 172800, | ||
"ResourceRecords": [ | ||
{ | ||
"Value": "ns-1536.awsdns-00.co.uk." | ||
}, | ||
{ | ||
"Value": "ns-0.awsdns-00.com." | ||
}, | ||
{ | ||
"Value": "ns-1024.awsdns-00.org." | ||
}, | ||
{ | ||
"Value": "ns-512.awsdns-00.net." | ||
} | ||
] | ||
}, | ||
{ | ||
"Name": "subdomain.example.com.", | ||
"Type": "SOA", | ||
"TTL": 900, | ||
"ResourceRecords": [ | ||
{ | ||
"Value": "ns-1536.awsdns-00.co.uk. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400" | ||
} | ||
] | ||
} | ||
], | ||
"IsTruncated": false, | ||
"MaxItems": "100" | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
tests/data/placebo/test_r53_resourcerecordset_remove/route53.ChangeResourceRecordSets_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"ResponseMetadata": {}, | ||
"ChangeInfo": { | ||
"Id": "/change/C0028923170KHKBOZN21G", | ||
"Status": "PENDING", | ||
"SubmittedAt": { | ||
"__class__": "datetime", | ||
"year": 2024, | ||
"month": 2, | ||
"day": 11, | ||
"hour": 14, | ||
"minute": 14, | ||
"second": 7, | ||
"microsecond": 346000 | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
tests/data/placebo/test_r53_resourcerecordset_remove/route53.ListHostedZones_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"ResponseMetadata": {}, | ||
"HostedZones": [ | ||
{ | ||
"Id": "/hostedzone/Z0703663WE3WTQ3FAPIF", | ||
"Name": "subdomain.example.com.", | ||
"CallerReference": "1560", | ||
"Config": { | ||
"PrivateZone": true | ||
}, | ||
"ResourceRecordSetCount": 4 | ||
} | ||
], | ||
"IsTruncated": false, | ||
"MaxItems": "100" | ||
} | ||
} |
58 changes: 58 additions & 0 deletions
58
tests/data/placebo/test_r53_resourcerecordset_remove/route53.ListResourceRecordSets_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"ResponseMetadata": {}, | ||
"ResourceRecordSets": [ | ||
{ | ||
"Name": "subdomain.example.com.", | ||
"Type": "A", | ||
"AliasTarget": { | ||
"HostedZoneId": "Z1YSA3EXCYUU9Z", | ||
"DNSName": "vpce-12345abcdefgh-mxpozkdy.us-west-2.vpce.amazonaws.com.", | ||
"EvaluateTargetHealth": true | ||
} | ||
}, | ||
{ | ||
"Name": "subdomain.example.com.", | ||
"Type": "NS", | ||
"TTL": 172800, | ||
"ResourceRecords": [ | ||
{ | ||
"Value": "ns-1536.awsdns-00.co.uk." | ||
}, | ||
{ | ||
"Value": "ns-0.awsdns-00.com." | ||
}, | ||
{ | ||
"Value": "ns-1024.awsdns-00.org." | ||
}, | ||
{ | ||
"Value": "ns-512.awsdns-00.net." | ||
} | ||
] | ||
}, | ||
{ | ||
"Name": "subdomain.example.com.", | ||
"Type": "SOA", | ||
"TTL": 900, | ||
"ResourceRecords": [ | ||
{ | ||
"Value": "ns-1536.awsdns-00.co.uk. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400" | ||
} | ||
] | ||
}, | ||
{ | ||
"Name": "mail.subdomain.example.com.", | ||
"Type": "CNAME", | ||
"TTL": 300, | ||
"ResourceRecords": [ | ||
{ | ||
"Value": "mailserver01.subdomain.example.com." | ||
} | ||
] | ||
} | ||
], | ||
"IsTruncated": false, | ||
"MaxItems": "100" | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
tests/data/placebo/test_r53_resourcerecordset_remove/route53.ListResourceRecordSets_2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"ResponseMetadata": {}, | ||
"ResourceRecordSets": [ | ||
{ | ||
"Name": "subdomain.example.com.", | ||
"Type": "NS", | ||
"TTL": 172800, | ||
"ResourceRecords": [ | ||
{ | ||
"Value": "ns-1536.awsdns-00.co.uk." | ||
}, | ||
{ | ||
"Value": "ns-0.awsdns-00.com." | ||
}, | ||
{ | ||
"Value": "ns-1024.awsdns-00.org." | ||
}, | ||
{ | ||
"Value": "ns-512.awsdns-00.net." | ||
} | ||
] | ||
}, | ||
{ | ||
"Name": "subdomain.example.com.", | ||
"Type": "SOA", | ||
"TTL": 900, | ||
"ResourceRecords": [ | ||
{ | ||
"Value": "ns-1536.awsdns-00.co.uk. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400" | ||
} | ||
] | ||
}, | ||
{ | ||
"Name": "mail.subdomain.example.com.", | ||
"Type": "CNAME", | ||
"TTL": 300, | ||
"ResourceRecords": [ | ||
{ | ||
"Value": "mailserver01.subdomain.example.com." | ||
} | ||
] | ||
} | ||
], | ||
"IsTruncated": false, | ||
"MaxItems": "100" | ||
} | ||
} |
Oops, something went wrong.