designate/designate/tests/unit/test_objects
Graham Hayes d72c652013 Ensure we do not pass invalid data for A records
DNSPython does not allow IPs to have leading zeros
for A records [1] and eventlet agrees [2], so we should
ensure we do not create a situation where a project can
DOS itself.

This patch uses the DNSPython method to ensure it is kept in sync

1 - https://github.com/rthalley/dnspython/blob/v1.15.0/dns/ipv4.py#L52-L54
2 - https://github.com/eventlet/eventlet/blob/v0.20.0/eventlet/support/dns/ipv4.py#L52-L54

Partial-Bug: 1760833
Change-Id: I975b18d390647de9fe11c105cd421b761f88be6c
2018-04-11 15:34:15 +01:00
..
__init__.py Create unit tests dir, move objects tests there 2015-07-20 14:15:42 +01:00
test_adapters.py Migrate object to OVO (7) 2018-02-25 16:07:58 +00:00
test_base.py Migrate object to OVO (7) 2018-02-25 16:07:58 +00:00
test_domain.py Remove unused variable 2017-05-16 15:43:00 +07:00
test_recordset.py Migrate object to OVO (7) 2018-02-25 16:07:58 +00:00
test_rrdata_a.py Ensure we do not pass invalid data for A records 2018-04-11 15:34:15 +01:00
test_yaml_adapters.py Consolidate default port numbers into utils.py 2016-05-05 19:35:39 +01:00