4900 Commits

Author SHA1 Message Date
Zuul
8f2f5a0a42 Merge "Raise error if producer configured with no valid tasks" 2023-08-25 14:36:10 +00:00
Zuul
71ef4e5691 Merge "Added simple tldname regex test" 2023-08-24 17:27:27 +00:00
Erik Olof Gunnar Andersson
137073adeb Remove unused storage/quota attributes in producer
Change-Id: I6afa842a5f5578248fc256761709888221bab44e
2023-08-24 15:13:55 +00:00
Erik Olof Gunnar Andersson
54d7692001 Raise error if producer configured with no valid tasks
There is no legit reason to have the producer running
if there are no tasks running.

Also improved the test coverage.

Change-Id: I05a69cf80785c912aaef2e29bfc0a1e5d57ceb6c
2023-08-24 15:24:44 +02:00
Michael Johnson
0648250388 Fix DB upgrade with using SQLAlchemy 2.x
Sqlaclhemy metadata bind is deperecated from version 1.4 and will
be removed in SQLAlchemy 2.0 [1]. It can be easily replaced with
metadata reflect which works for SQLAlchemy 2.0.

Also current metadata.bind does not result in fetching all tables from
the database, so metadata.tables is an empty mapping, which leads
to db_sync failures.

[1] https://docs.sqlalchemy.org/en/14/core/metadata.html#sqlalchemy.schema.MetaData.bind
[2] https://docs.sqlalchemy.org/en/14/core/reflection.html#reflecting-all-tables-at-once

Co-Authored-By: Dmitriy Rabotyagov <noonedeadpunk@gmail.com>
Change-Id: I8c721722eeb36de64b8c8a79d4fdcec0e92388fa
2023-08-23 14:36:48 +00:00
Erik Olof Gunnar Andersson
0cf0ccd9d8 Added simple tldname regex test
This test was removed during a previous refactor.

Change-Id: Ief4d42625bc100d3a881163c684f86e010237f82
2023-08-22 15:24:30 +02:00
Erik Olof Gunnar Andersson
9d115c88a1 Simplify schema implementation
Removes all unused components of the schema code and
simplified the schema class.

Closes-Bug: #2031922
Change-Id: Ia5e4a8760161424851eda22051385695ec2c7a9b
2023-08-20 22:13:28 +02:00
Erik Olof Gunnar Andersson
18a5d4f4d9 Moved all regexes to constants
- Moved record regexes to constants.
- Moved floating ip regex to constants.
- Moved valdiation regex to constants.
- Added additional floating ip tests around regexes.

Change-Id: I3cb738f2775f770deda30253b91f148b593314bc
2023-08-14 17:21:24 +00:00
Erik Olof Gunnar Andersson
29097ed559 Additional recordset validation testing
- Minor modification to record __repr__ to make testing easier.

Change-Id: I094a2ee9ccd19aa75cf3e7adcd3ce09f033d3527
2023-08-14 14:26:08 +02:00
Erik Olof Gunnar Andersson
fad3d708dc Added basic PTR Tests
Change-Id: I0e4e10be2c495cbfc22f2f41721521864e725f63
2023-08-14 13:31:31 +02:00
Erik Olof Gunnar Andersson
22bb910a59 Added basic CNAME Tests
- Tweaked SRV record failure.

Change-Id: I50f07151fef67d5d737deaf9172df6b76d861895
2023-08-14 13:26:41 +02:00
Zuul
5fa2dd8efc Merge "Fix missing oslo.versionedobjects library option" 2023-08-08 15:05:57 +00:00
Takashi Kajinami
18b6faacc8 Fix missing oslo.versionedobjects library option
This ensures the options for oslo.versionedobjects library are
included in the file generated by oslo-config-generator.

Change-Id: Icc60e155c88efdb2a2c59637b35b19c3e92918c0
2023-08-08 15:02:20 +09:00
Zuul
d3b3669996 Merge "Removed unused object fields code" 2023-08-05 21:40:55 +00:00
Zuul
2897c21d89 Merge "Simplify test_purge_zones to fix race condition" 2023-08-04 23:10:25 +00:00
Erik Olof Gunnar Andersson
5c9fca9d42 Removed unused object fields code
Change-Id: Ibb410619f08ab879266cac81c7758f7739a7c0e4
2023-08-02 21:09:21 +00:00
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