4710 Commits

Author SHA1 Message Date
OpenStack Proposal Bot
963751f2b4 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I7c30db493111107aba79de6c5361ab0726046704
2023-07-08 02:53:29 +00:00
Zuul
bfabb762c9 Merge "Fix list zones if shared with multiple projects" 2023-07-05 16:32:53 +00:00
Zuul
c28b3b12f1 Merge "Improve NAPTR support" 2023-06-30 21:44:17 +00:00
Michael Johnson
011ebe2e7c Fix list zones if shared with multiple projects
This patch fixes a bug when listing zones or updating recordsets in
zones that are shared with more than one project.

Closes-Bug: #2025295
Change-Id: I8af9b5cf8c1473bbf7db71a1fb848fb64509db84
2023-06-30 18:53:40 +00:00
Erik Olof Gunnar Andersson
38c591eaa1 Fix TsigKeyring issues with dnspython 2.x
- Fixed issues in TsigKeyring.
- Fixed tsgi issues in mdns handler.
- Fixed invalid secret used in tests.
- Added additional test coverage.
- Re-enabled previously broken test.

Closes-Bug: #1982252
Change-Id: I04c104cfc9ee2f03d0c5adca3c80bbfff20afb70
2023-06-28 10:15:16 +02:00
OpenStack Proposal Bot
3621b9d1b1 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Id9c796081ba9b0ed87135f473859720a77879cb4
2023-06-18 04:02:14 +00:00
Zuul
4fc70c5890 Merge "Add docs describing classless PTR delegation" 2023-06-08 16:14:22 +00:00
Zuul
0805c874df Merge "Add basic managed records coverage" 2023-06-05 22:44:30 +00:00
Michael Johnson
cf380f35d1 Add docs describing classless PTR delegation
We have had a few questions about classless IN-ADDR.ARPA delegation (RFC 2317) recently. This patch adds a section to the PTR user guide that describes how to setup classless PTR delegation using Designate.

Change-Id: I8e51ccdc0a4bc0d670ba6c7522a83980de7dac9d
2023-06-05 19:15:16 +00:00
Zuul
716037b901 Merge "Update notification handler sample" 2023-06-05 18:44:19 +00:00
Zuul
05e30f87f1 Merge "Removing old archive code" 2023-06-05 18:44:15 +00:00
Zuul
c5b28e07a0 Merge "Update Unit Test README" 2023-06-05 17:26:56 +00:00
Zuul
de4a82b40e Merge "Use TEST-NET-1 for most unit testing" 2023-06-05 17:21:27 +00:00
Erik Olof Gunnar Andersson
a2bbd67e54 Add basic managed records coverage
Change-Id: If67bd7121b98fddce77b3ae116dee48bd6464c63
2023-06-04 23:04:41 -07:00
Erik Olof Gunnar Andersson
bf45ec737b Removing old archive code
Change-Id: I267ecfe3288ae5ad7a7b5a5fdca0ab5f5e56b082
2023-06-04 22:03:37 -07:00
Erik Olof Gunnar Andersson
0f054b3594 Update notification handler sample
Change-Id: I82ee4da4ec2f2f1227c25d828fd61c435270e036
2023-06-04 21:57:50 -07:00
Erik Olof Gunnar Andersson
92f9639e8d Update Unit Test README
Change-Id: If6ac155efed0d26054c09a71f293c4dfaf5e187a
2023-06-04 20:48:31 -07:00
Erik Olof Gunnar Andersson
69515a8df7 Use TEST-NET-1 for most unit testing
Change-Id: I3707f263dca8ddfef7db9b765e6071220259b4bc
2023-06-04 20:28:00 -07:00
Michael Johnson
9c46364483 Fix zone list with system scoped tokens
If you used a system scoped token to list zones and the zone is not shared,
you could see more zones than expected.
This patch corrects that edge case.

Change-Id: I1be68b27dc052cc273fcfdf53940b38a7661e73b
2023-06-02 21:11:59 -07:00
Michael Johnson
aacea51715 Re-enable test jobs
This patch re-enables some test jobs that were disabled to resolve a circular
dependency issue.

Change-Id: Ib5eb9d43bdaae31bfdd28a9d3e4d89a1c2c241e1
2023-06-01 21:56:31 -07:00
Michael Johnson
5b7ee8899d Fix zone list/show for shared zones
Previously projects that had a zone shared with them were unable to view the
shared zone. This patch corrects that issue.

Change-Id: Ia3ede57ac2249a1bcd49512aa36452b2b9ffd827
2023-05-31 20:18:30 +00:00
Zuul
d8b019942f Merge "Fix bug in update_zone with recordsets" 2023-05-31 00:28:38 +00:00
Zuul
caa56ba28f Merge "Increase minimum acceptable test coverage" 2023-05-31 00:28:36 +00:00
Zuul
af78fb1983 Merge "Improve storage unit test coverage" 2023-05-31 00:09:16 +00:00
Zuul
2f76218af4 Merge "Improve central unit test coverage" 2023-05-30 22:05:25 +00:00
Erik Olof Gunnar Andersson
b45a7b5167 Fix bug in update_zone with recordsets
When trying to write unit tests I found that when updating a zone
with recordsets there are scenarios where it would throw an sql
error. 
> sqlalchemy.exc.CompileError: Unconsumed column names: zone_name

This fixes up the code path and adds some basic test coverage.

Change-Id: Ia12b530730921db5235fd35f4cabf80b916c216f
2023-05-30 21:52:21 +00:00
Erik Olof Gunnar Andersson
a53c685adf Increase minimum acceptable test coverage
Change-Id: I3dc80fac13e60016e0611410b269bc487d93a39b
2023-05-30 21:52:16 +00:00
Erik Olof Gunnar Andersson
a7cbcc0770 Improve storage unit test coverage
- Minor cleanup to tests.
- Use assertRaisesRegex for exception testing.

Change-Id: I519d9e648e684238ca19d00df6abf9b472e3c666
2023-05-30 21:51:54 +00:00
Zuul
f3ee3cd044 Merge "Add manage cmd tests" 2023-05-30 19:13:09 +00:00
Erik Olof Gunnar Andersson
9620686529 Remove unused find_zone_share code
Change-Id: I235ac441456016c9bd9caf04637ec633812dc007
2023-05-28 20:18:55 -07:00
Erik Olof Gunnar Andersson
9ba81579ac Improve central unit test coverage
- Minor changes to fix code that wasn't unit testable.

Change-Id: I1b00300118340faecc81c33f3a77e46e151e0a1c
2023-05-28 04:42:07 +00:00
Erik Olof Gunnar Andersson
661f0dd517 Add manage cmd tests
Change-Id: Idc21c18bb7689b857f3892634e030930a68f4765
2023-05-28 04:42:03 +00:00
Michael Johnson
48826ffa96 Fix create zone export RBAC
Previously the zone export create API relied on the zone lookup to fail if the
project did not have permission to export the zone. Because of this the RBAC
test was simply if the project_id was valid.
With shared zones, administrators may not want to allow exports of a zone that
is shared with a project. This patch corrects the RBAC to check for zone
ownership before creating the zone export. This way a policy can be created to
allow zone exports for projects that have a zone share.

Change-Id: I2ef28eeb285462dc12b13de80cdab06b5cfb929b
2023-05-27 00:11:07 +00:00
Erik Olof Gunnar Andersson
b9bd8e9bad Add cmd tests
Change-Id: Ic7c4d80a8b39640a1cb37ff01e12bb63f14ca09a
2023-05-26 18:25:50 +00:00
Erik Olof Gunnar Andersson
eb809a00dd Omit hacking from cover
Change-Id: I26178446846ffd387bd966b4c532b59db80038c8
2023-05-25 20:24:49 -07:00
Erik Olof Gunnar Andersson
46e7284747 Add basic api wsgi tests
Change-Id: I91b2c2e4bcb83aea74dc531b0dc4b95842e6b4a0
2023-05-23 22:52:30 -07:00
Zuul
757aa5e5d7 Merge "Restructured SQL code" 2023-05-23 17:25:17 +00:00
Rossen Popov
aa151b4d00 Improve NAPTR support
This patchset adds support for fields (e.g flags, services, regexp)
to be quoted and empty as described in RFC 2915. While unquoted
fields are NOT optional, the previous behaviour remains for
backward compatibility. The regular expressions have been adjusted
to allow empty string values for quoted fields. Additional tests
added to cover more cases.

https://datatracker.ietf.org/doc/html/rfc2915
https://github.com/isc-projects/bind9/blob/main/bin/tests/system/xfer/dig1.good

Change-Id: I44bc7d2a231ed8d63cba69ec95f06358687aa914
2023-05-19 19:10:11 +01:00
Erik Olof Gunnar Andersson
0c30fc491b Restructured SQL code
We have a lot of abstraction that isn't really needed. This patch
removes some of that abstraction and reorganizes the code accordingly.

- Merged storage and sqlalchemy folders.
- Deprecated [central].storage_driver.
- Minor cleanup to SQL code.
- Cleaned up comments and unit tests.

Change-Id: I8f0508aedcc028b1a6e74c790c5d757a0d6c98d7
2023-05-11 21:28:36 -07:00
Erik Olof Gunnar Andersson
1b4281b3ab Refactor managed record logic
We have two almost identical code paths for sink and ptr
records. This patch unifies the two paths and should drastically
lower the overhead of each of these requests.

Change-Id: Iadeaefe361638ec092eab1757f3b89e3020631af
2023-05-12 01:41:41 +00:00
Zuul
590064e8d9 Merge "Remove unused test code for coordination" 2023-05-11 02:31:38 +00:00
Zuul
f46c802523 Merge "Clean up test imports" 2023-05-11 02:31:36 +00:00
Zuul
362f70b4c2 Merge "Fix shared zones missing project ID error" 2023-05-10 01:13:51 +00:00
Zuul
f70053f2aa Merge "Use monotonic time to protect from system time jumps" 2023-05-09 16:37:58 +00:00
OpenStack Proposal Bot
f194b33bd3 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: If6fe98647dd5564b29bae025ea3880e0d66bba1d
2023-05-09 03:40:48 +00:00
Erik Olof Gunnar Andersson
437d2d9639 Use monotonic time to protect from system time jumps
Change-Id: I44a51bef79109600a3f93844ac51a1f5738508b9
2023-05-07 18:47:39 -07:00
Erik Olof Gunnar Andersson
e7aed84431 Clean up test imports
Change-Id: I665f9d3a5bb8ceeace0bdedac2b64c9dc6205668
2023-05-07 17:34:02 -07:00
Erik Olof Gunnar Andersson
accecda404 Remove unused test code for coordination
Change-Id: I382250784be7dd9c20245cb90b4a19a9e7e313a5
2023-05-06 20:59:09 -07:00
Erik Olof Gunnar Andersson
118294ac14 Fix invalid fallback value for BaseAddressHandler
Domain no longer exists and this patch replaces domain
with the correct value zone.

Change-Id: I4cd88d30882d8966acc811ccb100aa1a1df89a3e
2023-04-30 20:32:16 -07:00
Michael Johnson
0f37baf808 Fix shared zones missing project ID error
Previously if you tried to create a zone share with a scoped token that
does not have a project ID, you would receive a 500 error. This patch
corrects that to return a proper error describing that a project ID is
required when creating zone shares.

Change-Id: Ibeb7154a4c300f59dfa25737736f59609b938bcc
2023-04-17 23:21:28 +00:00