Handle mixed case "max", raise ValueError on unexpected strings
on v2 and Admin APIs.
Add unit tests.
Change-Id: I2cf8d11bd2f4bc4bdff9d67812f6eb7437eb59ae
Closes-bug: 1494799
When listing records in the V1 API, two calls to central
are made - once for records once for recordsets - if the
content of either changes between the two calls, a failure
can occour. Instead, we already have all the data we need
so use it from the recordsets rather than make two calls
Change-Id: Ic43d7e8c0d60267ec4788b63ed5f7e88e7bbe625
Closes-Bug: 1487934
There was a potential codepath where, if after parsing
a packet, an exception was raused, we may leave TCP sockets
around without explicitly closing them
Change-Id: I6d619d05c7d0250cb5ae55212129e0d849c66c9d
* Move DNSUtils bind methods into designate.utils
* Switch WSGIService to using the bind_tcp method
* Add support for TCP_KEEPIDLE to the bind_tcp method
Change-Id: If2d554fd757969f5b833ede6cb635bb4901906a7
Closes-Bug: 1498054
These tests will attempt CRUD operations against RecordSets without
auth tokens. All requests should return 401 (Unauthorized).
Change-Id: I2959f5438efa748042a1c2ef7fa03d17f5892ef2
Throw a 400 error back at the user if they try to create a CNAME
RRSet with more than 1 record.
Change-Id: I252fcd046dc902ff28162d831c0c0fd6b0dea3d2
Closes-Bug: 1486743
This will allow the use of a Designate installation as a backend using the
recently added SECONDARY zones feature. The patch includes bits for devstack
and tests.
Implement blueprint: d2d-driver
Change-Id: I5fcaf36482cf692432f7871ef08b2ae7fefe749a
This patch replaces request.request_mac with request.mac
to provide TSIG verification.
Change-Id: Ide4f48dc3b4de7a919cc41abebf9843d0ba77763
Closes-Bug: #1466300
This patch adds forbidden exception for all_tenants
and edit_managed attributes.
Change-Id: I7a160abee99cc787f18593cba5c9e33485a85239
Closes-Bug: #1486709
* Fixes a policy check on doing the zone export that caused a 403
unless the tenant was an admin
* Adds ZoneFile and ZoneFileRecord models to parse a zone file
* Adds some "meta" tests for the new models
* Updates the test_export_domain test to check the zone file text
Change-Id: I65c93f5d5283fc5962f4a2bf0ac8abae1966e6d6
Spelling out all the hosts that are allowed to send messages
to the Agent could get really tedious, and there are other ways of
controlling access to this service that might be smarter in a
production environment.
Change-Id: Ie6ee5cf748d7fc9d138b09d14b5be99cd22c05f4
The agent is calling the `do_axfr` function in `dnsutils`, passing in
a dict with {"ip": "x"}, this was changed in
9350ea7ad0
this changes catches the agent up and restores functionality.
Change-Id: I339f5c6ebffe009c19f66d924648f44799c83479