Commit Graph

61 Commits

Author SHA1 Message Date
Bert Blommers
d60df32a25
Upgrade flake8 to 4.x (#5066) 2022-04-27 11:58:59 +00:00
Bert Blommers
10bd677cf2
Admin - enable more Pylint rules (#5037) 2022-04-18 20:44:56 +00:00
Bert Blommers
29d01c35bc
Update Black + formatting (#4926) 2022-03-10 13:39:59 -01:00
Bert Blommers
0a1bb6bae1
Route53 - Reusable Delegation Sets (#4817) 2022-01-30 23:53:05 -01:00
Paul
f554ad3997
implement get_hosted_zone_count() api (#4814) 2022-01-30 12:25:36 -01:00
Paul
e1dbec1dff
Implement list_hosted_zones_by_vpc() functionality (#4771) 2022-01-29 10:11:24 -01:00
Paul
cd2d7a9c7a
moto/route53 does not correctly handle private hosted zones #4785 (#4786) 2022-01-27 10:28:31 -01:00
Bert Blommers
aa70ee254d
Remove deprecated decorators + boto dependency (#4378) 2022-01-18 14:18:57 -01:00
Bert Blommers
3d105361ef
Route53 - Error on batch changes that are too large (#4674) 2021-12-10 08:47:27 -01:00
Bert Blommers
7776668a5a
Route53 tech debt (#4673) 2021-12-09 21:33:09 -01:00
Bert Blommers
194098c7de
Route53 - Improve error handling (#4672) 2021-12-08 14:42:08 -01:00
kbalk
665c8aa3bc
Route53 query-logging-config APIs (#4437) 2021-10-22 21:47:29 +00:00
Bert Blommers
14a69c7524
Techdebt: Enable pylint rules (#4432) 2021-10-18 19:44:29 +00:00
Bert Blommers
e9a4100324
Rewrite deprecated CloudFormation tests (#3842) 2021-10-04 13:47:40 +00:00
Bert Blommers
e88e73aac7
Rewrite deprecated Route53 tests (#4327) 2021-09-23 10:27:09 +00:00
Bert Blommers
fdf27a70e9
Route53 - Persist CallerReference (#3788) 2021-08-22 10:51:21 +01:00
Ivan Zubenko
d3f20694a9
sort Route53 resource record sets (#3864)
* sort Route53 resource record sets

* address comments
2021-04-20 12:50:05 +01:00
tony-dot-sh
1b288b6936
DNSName key retrieval for list-hosted-zones-by-dns-name (#3774)
* DNSName key retrieval for list-hosted-zones-by-dns-name per https://docs.aws.amazon.com/Route53/latest/APIReference/API_ListHostedZonesByName.html#API_ListHostedZonesByName_RequestSyntax

* Route53

 - uncomment return to be shared by zone list response
 - add test to return list hosted zone by dns name without '.' in FQDN

Co-authored-by: Tony Greising-Murschel <tony@platform.sh>
2021-03-16 12:58:16 +00:00
Rafael de Elvira
8a95878a81
Route53: Implement dummy GetChange endpoint (#3486)
* Route53: Implement dummy GetChange endpoint

* fix typo in GET_CHANGE_RESPONSE
2020-11-20 07:21:05 +00:00
Ayush Ghosh
7f73015f02
Fix XML encoding in Route53 JInja2 Templates #3469 (#3473)
* Use Jinja2 escape functionality to escape html attributes in value response

* Add tests

* fix formatting
2020-11-18 07:23:49 +00:00
Matěj Cepl
77dc60ea97 Port test suite from nose to pytest.
This just eliminates all errors on the tests collection. Elimination of
failures is left to the next commit.
2020-11-10 08:23:44 +01:00
Jon Nangle
bebcf52851 Formatting 2020-03-02 13:07:34 +00:00
Jon Nangle
9fdeaca589 Support GeoLocation and Failover on Route 53 2020-03-02 12:46:15 +00:00
Dejan Levec
877f3b056a Add IsTruncated to Route53.list_resource_record_sets 2019-12-27 19:32:31 +01:00
Asher Foa
96e5b1993d Run black on moto & test directories. 2019-10-31 10:36:05 -07:00
Don Kuntz
cae0b5bc45
Remove extraneous print statement from test 2019-08-28 13:59:49 -05:00
Don Kuntz
35507f33df
Don't error out on route53.list_tags_for_resource when resource has no tags
Without the added `return {}`, calling route53.list_tags_for_resource
when called with a ResourceId of a resource without any tags would
result in the error:
    jinja2.exceptions.UndefinedError: 'None' has no attribute 'items'

Because the LIST_TAGS_FOR_RESOURCE_RESPONSE was given None instead of
empty dict.

This now allows list_tags_for_resource to be called without issue on
tag-less resources.
2019-08-28 13:57:42 -05:00
sblumin
a2ac341e3d added support to UPSERT records that are not simple routing policy 2019-07-17 16:37:47 -07:00
Steve Pulec
414ff930ed
Merge branch 'master' into mark-alias-target 2019-07-07 23:11:53 -05:00
Steve Pulec
574055da2c
Merge pull request #2245 from vrtdev/bugfix/r53-delete-type
Route53 Delete: respect the given Type
2019-07-06 17:29:19 -05:00
Niels Laukens
6e97881896
Route53 Delete: respect the given Type 2019-06-17 15:53:32 +02:00
Niels Laukens
9ef69a617a
Route53 get_record_sets: sort names lexicographically 2019-06-14 17:07:59 +02:00
Elliott Butler
9bd15b5a09
Fix route53 alias response.
This commit
* includes the work by @elliotmb in #1694,
* removes the AliasTarget.DNSName copy into a RecordSet.Value,
* fixes and adds tests.
2019-05-31 10:54:18 +01:00
Mark Challoner
d61ce0584b
Check record type when upserting.
Previously this was not checked so an existing record (e.g. with type A) would be overwritten on upsert by a record with the same name but different type (e.g. TXT).

This commit also:

* publicizes the type variable appending the underscore affix (required to maintain compatibility with CloudFormation which sets type as the CF type),
* fixes a wrong assumption in tests that UPSERT applies a change to Type (it creates a distinct record instead),
* Updates ACM model to use serial_number instead of deprecated and remove serial causing Travis failures.
2019-03-01 16:44:50 +00:00
Tatsuya Hoshino
293b25a8f9 Add a missing trailing dot to the Name of ResourceRecordSet
AWS Route53 treats www.example.com (without a trailing dot)
and www.example.com. (with a trailing dot) as identical.
Hence, after creating a `www.example.com` record,
`www.example.com.` name is saved in Route53.
But moto treated `www.example.com` and `www.example.com.` as different.

This commit fixes the moto behavior.
2018-11-20 21:43:59 +09:00
Andrey Melentyev
4e390530a7 Do not treat StartRecordName and StartRecordType in the list_resource_record_sets as filters
According to AWS API reference and Boto documentation they are to begin the record listing from,
not for filtering. So their current behavior in moto is not consistent with AWS.
2017-10-23 21:58:39 +02:00
Abhinav I
06d65fd3da Added test cases that covers route53 client's <change_resource_record_sets> function. Also added validation to throw a ClientError when the record set does not match the hosted zone's config 2017-04-28 21:26:32 +05:30
Andrew Garrett
b9ea947aa0 Add ListHostedZonesByName 2017-03-13 15:27:45 +00:00
Steve Pulec
f37bad0e00 Lints. 2017-02-23 21:37:43 -05:00
Steve Pulec
81836b6981 Get standalone server mode working for all tests. 2017-02-23 19:43:48 -05:00
Steve Pulec
fde721bed7 Testing new version of decorator. 2017-02-15 22:35:45 -05:00
Akhter Ali
2bf85fe25d Fix Route53 response and tests (#804)
* Fix route53 response \n Fix route53 tests

* Fixing index

* fix zone ID on test_route53_with_update
2017-01-18 21:40:04 -05:00
Alfred Moreno
40ad92b4bc Add a unit test to make sure multiple tags were actually associated with a resourceId 2016-09-22 18:44:07 -07:00
Alfred Moreno
9a7556b3af Add support and unittests for Route53 tags 2016-09-20 17:41:23 -07:00
hummus
8fa53c1453 support route53 HostedZone PrivateZone=True #627 2016-06-03 11:10:04 -04:00
Min-Young Wu
826ba82f6e Adding support for UPSERT'ing route53 records 2016-04-12 10:51:21 -07:00
Jesse Szwedko
14ec3531ff Add support for latency based route53 records
Store and marshal the region field of records

Signed-off-by: Kevin Donnelly <kevin.donnelly@getbraintree.com>
2015-09-08 21:36:32 +00:00
Marco Rucci
6e97bec006 Add support for alias records in Route53. 2015-06-28 17:27:24 +02:00
Steve Pulec
57f1199b35 Fix route53 multiple values bug. Closes #358. 2015-06-05 21:29:20 -04:00
Steve Pulec
d1c823e0d8 Fix for deleting Route53 record sets with set identifiers. Closes #342. 2015-04-30 18:51:01 -04:00