4734 Commits

Author SHA1 Message Date
Zuul
075f5dbe0f Merge "Increase minimum test coverage to 90%" 2023-08-02 20:47:32 +00:00
Zuul
d63cfa867f Merge "Add basic SRV record unit test" 2023-08-02 20:36:45 +00:00
Erik Olof Gunnar Andersson
88d589115a Simplify test_purge_zones to fix race condition
This is one of the tests that pretty frequently
fails due to a race condition. Simplify it a bit
to remove the risk of a race condition.

Change-Id: I1a17a24f644c8dc28c4744baf7e05f4e011c47f7
2023-08-02 22:26:31 +02:00
Erik Olof Gunnar Andersson
c102c0830b Increase minimum test coverage to 90%
Change-Id: Ic7f7bec89cb17b6c0ddbdbc93237ef273f17deb6
2023-08-02 16:51:37 +02:00
Pierre Riteau
031eb8b5d3 Fix indentation of user documentation code blocks
This removes unnecessary quotes to the left of code blocks.

Change-Id: I759b5c15c857e6dc4397ab3947ce8696421a75ce
2023-08-02 13:19:27 +02:00
Erik Olof Gunnar Andersson
167a01fdd9 Add basic SRV record unit test
Change-Id: I3ca7c4b5ae4bba736bfa16333f87b341e36be8db
2023-08-01 23:40:33 +02:00
Zuul
7d622d374d Merge "Add python3.9 support in testing runtime" 2023-08-01 20:35:30 +00:00
Zuul
025854ab88 Merge "Use i18n and not gettext for infoblox" 2023-08-01 11:42:37 +00:00
Zuul
76f582818d Merge "Additional infoblox test coverage" 2023-08-01 11:16:40 +00:00
likui
1da71884e4 Add python3.9 support in testing runtime
In 2023.2 cycle testing runtime, project test in py38 py39 and py10

[1] https://governance.openstack.org/tc/reference/runtimes/2023.2.html

Change-Id: Ib54dcc4433d2be789f96fc881ca9ee81fe751df9
2023-08-01 11:52:27 +08:00
Zuul
4e7e471760 Merge "Replace blockdiag with graphviz" 2023-07-31 19:57:52 +00:00
Erik Olof Gunnar Andersson
85646cf19a Use i18n and not gettext for infoblox
Change-Id: I76d414775dd67865d71f23f5cb945003dc9e7c53
2023-07-30 18:41:54 +02:00
Erik Olof Gunnar Andersson
2f42343acf Additional infoblox test coverage
Change-Id: I8a81296af981d29372cb63c9be7c03d71d972472
2023-07-30 17:44:26 +02:00
Erik Olof Gunnar Andersson
f371b1af02 Added unit test coverage for verify_project_id
- Cleaned up code path to make it easier to read.
- Added unit test coverage.

Change-Id: I03d98e2ab950247fad73814e2ac03a96cda749b6
2023-07-30 17:28:07 +02:00
Michael Johnson
beb79ac98c Replace blockdiag with graphviz
The python blockdiag module is unmaintained and will likely be removed from distros.[1]
This patch replaces blockdiag with graphviz diagrams.

[1] https://github.com/blockdiag/blockdiag/pull/171

Change-Id: I3a902c60b59071b466e1bf1ec6bda205e58b378c
2023-07-28 20:00:07 +00:00
Erik Olof Gunnar Andersson
fa95018c91 Cleanup DNS Middleware
- Moved DNS Middleware to separate file.
- Cleaned up logic.
- Fixed non-lazy loaded logging.

Change-Id: Ic1d7c17fc2d7a563ff22f0b1dd42a58f87665cf1
2023-07-26 09:25:16 +02:00
Zuul
8cc87bce03 Merge "Removed unused code path in sql base" 2023-07-25 08:58:34 +00:00
Erik Olof Gunnar Andersson
991e0afe44 Improve DNS Service test coverage
- Cleaned up error handling logic to make testing easier.

Change-Id: Idddf63a4decc31895e3c5a3b9a11f51cddffedaa
2023-07-23 12:36:07 +02:00
Erik Olof Gunnar Andersson
e003d7aa68 Removed unused code path in sql base
We never provide any extra parameters in any
of these code paths and instead of adding missing
testing coverage it's better to just remove these
code paths.

Change-Id: Iab105ec5f45083a9026718572d77870fd908d660
2023-07-22 23:16:32 +02:00
Zuul
61b408287f Merge "Add a tempest test job with sqlalchemy 2.x" 2023-07-22 19:49:10 +00:00
OpenStack Proposal Bot
c447225084 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Iec6ffe07a86c2b4dac3a9a19563757d478733c22
2023-07-20 04:20:22 +00:00
Michael Johnson
9c6ed29135 Add a tempest test job with sqlalchemy 2.x
Now that nova removed the use of "migrate" we can add a tempest test job
with sqlalchemy 2.x.

Change-Id: Ibc6b1a67a14c8a83c1f679a9e3302e9c2eb25983
2023-07-18 19:22:43 +00:00
Stephen Finucane
b77934beb7 Add job to test with SQLAlchemy master (2.x)
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Idcf698e7266c10f468123489a964404e9a68a7be
2023-07-18 01:33:01 +00:00
Michael Johnson
7daa2578a5 Fix a sqlalchemy 2.x compatibility issue
A recent patch[1] introduced an incompatibility with sqlalchemy 2.x.
Unfortunately the upper-constraint of oslo.db < 13.0.0 blocks us from properly
testing with sqlalchemy 2.x, so this issue was not caught.

[1] https://review.opendev.org/c/openstack/designate/+/880514

Change-Id: Ibc0569235997ea1feb2341adc1e942ecb3fc6dcb
2023-07-18 01:32:13 +00:00
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