4734 Commits

Author SHA1 Message Date
Zuul
2291f1120c Merge "Increase minimum acceptable test coverage" 2022-10-12 20:45:12 +00:00
Erik Olof Gunnar Andersson
6fee42ecac Remove unicode
No longer necessary as we no longer support Python 2.7.

Change-Id: Icae82ed323d25d85a35e12b8b4c980f0f71d5d85
2022-10-11 16:14:50 +00:00
Erik Olof Gunnar Andersson
ab3b57b044 Removed unused SQL functions and better coverage
- Cleaned up indentation.
- Cleaned up sql syntax.
- Fixed minor inconsistencies.

Change-Id: Iea61a0af65afc4bf91c581869984115a6d44011f
2022-10-08 14:51:48 -07:00
Erik Olof Gunnar Andersson
d54c10fee2 Increase minimum acceptable test coverage
Change-Id: I196eca62b417cf01b738303442d83a8c0d820e54
2022-10-08 12:04:41 -07:00
OpenStack Proposal Bot
6ca038f350 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Id305c536bc78ed8ec07ded59ca6128020800a68a
2022-09-24 02:50:38 +00:00
Zuul
e3ac092a30 Merge "Fix mdns test_handler setup" 2022-09-21 06:15:17 +00:00
Michael Johnson
e6566f8606 Fix mdns test_handler setup
If the unit tests were run isolated from the larger test suite, the mdns test_handler unit tests would fail with "AssertionError: 'TRANSPORT' must not be None" because the messaging and RPC fixtures were not setup for the test suite.
This patch adds the required test fixtures to the mdns test_handler setUp().

Change-Id: I7edf1e147637b013f35ba47e4d6b92d53d42fe84
2022-09-21 00:55:35 +00:00
Michael Johnson
b3e3bbf9e2 Fix minimum versions in requirements.txt
It appears we need to bump some minimum versions for changes made in Zed.
This patch sets:
alembic>=1.8.0

Change-Id: I3e3e1a4701c52003e4adf2738b1ca8598d4cae47
2022-09-20 17:54:12 +00:00
b0bff602ed Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I9fb95106665bff1c1c0e323f49afa1a630d4dd0a
2022-09-16 09:19:18 +00:00
879d69561c Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/zed.

Sem-Ver: feature
Change-Id: Ifad046c59216d73eaf80b4aaa31ec5824158cfc6
2022-09-16 09:19:16 +00:00
Zuul
2756eadfd3 Merge "Imported Translations from Zanata" 2022-09-16 05:34:56 +00:00
Zuul
3fb9c5220e Merge "fix delete-recordset-response.json format" 2022-09-16 03:55:05 +00:00
OpenStack Proposal Bot
c28225652d Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ib1184b474cc883fbd63da4ac456fa83a07465767
2022-09-16 03:09:09 +00:00
shanyunfan33
6b740e28e5 fix delete-recordset-response.json format
fix records "10.1.0.3", -> "10.1.0.3"

Change-Id: I5f15c7f6f9e8d2de49bb30aa2c116619908b846b
2022-09-11 16:53:43 +08:00
Michael Johnson
93dee6a3ff Fix Redis connection over TLS
When Designate is configured to use Redis for coordination over a TLS connection, it will fail to connect with "ssl.SSLError: ('timed out',)".
This is caused by eventlet raising ssl.SSLError instead of the expected socket timeout the core libraries return.
This patch monkey-patches eventlet to return the proper exception.

Closes-Bug: #1989020
Change-Id: I5bd1c10d863212683752e05bb450e6f531ff7e72
15.0.0.0rc1
2022-09-07 18:42:38 +00:00
Stephen Finucane
7460ae30bf Fix compatibility with oslo.db 12.1.0
oslo.db 12.1.0 has changed the default value for the 'autocommit'
parameter of 'LegacyEngineFacade' from 'True' to 'False'. This is a
necessary step to ensure compatibility with SQLAlchemy 2.0. However,
we are currently relying on the autocommit behavior and need changes to
explicitly manage sessions. Until that happens, we need to override the
default.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I2e02b00309c8a0289954b7cd6838bd9320cec3e0
2022-09-05 17:20:37 +01:00
Zuul
729e3bf659 Merge "Add backend validation and re-factored pool manage" 2022-09-01 21:31:19 +00:00
Zuul
13a7048814 Merge "Add simple API versioning to the Designate API" 2022-08-31 18:05:26 +00:00
Zuul
218e11ea20 Merge "Switch Designate to Alembic database migrations" 2022-08-30 05:11:25 +00:00
Erik Olof Gunnar Andersson
6d61ad555b Add backend validation and re-factored pool manage
- Added better test coverage.
- Cleaned up error handling.

Closes-Bug: #1987993

Change-Id: I4829c74706e125df5eae25336e13af780cfa304a
2022-08-29 17:14:23 -07:00
Zuul
71c7542a89 Merge "Validate MX records during recordset create or update" 2022-08-29 22:26:14 +00:00
Zuul
3207d71d54 Merge "Imported Translations from Zanata" 2022-08-23 21:16:49 +00:00
Zuul
8ccb3d71c1 Merge "Clean up manage pools and add additional testing" 2022-08-23 07:27:39 +00:00
Zuul
e12a356269 Merge "Add additional backend tests" 2022-08-23 05:11:35 +00:00
Erik Olof Gunnar Andersson
e65b32a6e6 Clean up manage pools and add additional testing
Change-Id: I6bfe074ec9db9bd95021771b8ffe988f1f23e2be
2022-08-22 21:19:13 -07:00
OpenStack Proposal Bot
4a34f43e52 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ib83f5e1cde009b740ccf01a027bd96bed17c0e97
2022-08-23 03:33:00 +00:00
OpenStack Proposal Bot
925ec43db5 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I048f35e7813eb4e2f2b6e4f5259dd4fb2eb3198e
2022-08-22 03:51:54 +00:00
Michael Johnson
a03c4657c2 Fix designate-manage pool update MissingProjectID
This patch fixes a bug where adding an additional pool to designate using the "designate-manage pool update" command may fail with an exception:

designate.exceptions.MissingProjectID: A project ID must be specified when not using a project scoped token.

There was an extra check added as part of the scoped token work that a project ID must be provided when creating pools. This was incorrect as pools are still valid with a None project ID as they are a system resource and not tied to a specific project.

This patch removes that check, but retains the RBAC check for and "admin" token.

Closes-Bug: #1986733
Change-Id: I7345d7ef505420767209ba037e3c8930a282d03f
2022-08-16 22:22:19 +00:00
Erik Olof Gunnar Andersson
f237b0a63c Add additional backend tests
Change-Id: I5dca5495e1d4510682b6244d2e7ca707308927d8
2022-08-15 22:35:42 -07:00
Zuul
927e34ee5a Merge "Add basic get backend test" 2022-08-16 01:39:33 +00:00
Zuul
3c6b84154d Merge "Add basic test for disabling the api" 2022-08-16 01:18:52 +00:00
Zuul
e68640d611 Merge "Add basic quotas api tests" 2022-08-15 23:57:34 +00:00
kpdev
536315e38c Validate MX records during recordset create or update
If invalid MX record is provided during recordset create command or
valid record is updated to invalid record using recordset set command,
causes recordset creation/updation failure. This leads to zone enter
in ERROR state and all further recordset creation calls fail. Validate
the records within recordset during create or update call.

Closes-Bug: #1927304
Change-Id: I0ace4d6c4ad6a6ee236e3af23805b01345d60a42
2022-08-15 07:41:34 +00:00
Erik Olof Gunnar Andersson
6b1f99167b Add basic test for disabling the api
Change-Id: I0f6d3440e5b352770fe7da1808038c9b60ce8e23
2022-08-13 18:45:49 -07:00
Erik Olof Gunnar Andersson
f46d9de45f Add basic quotas api tests
- Changed tenant_id to project_id.
- Fixed some minor style issues with api tests.

Change-Id: Ia53c39cd78e42b82b380f8c957747d14078dff25
2022-08-13 14:09:59 -07:00
Erik Olof Gunnar Andersson
3e6157f78f Add basic get backend test
- Removed unused start/stop functions

Change-Id: I38ebf73859498acb0c86a4e1f48e92ce371389b8
2022-08-13 13:23:52 -07:00
Zuul
63563a5098 Merge "Simplified backend unit tests" 2022-08-13 02:12:27 +00:00
Zuul
ae3ed981ac Merge "Add a user guide for Neutron/Nova DNS integration" 2022-08-11 07:25:21 +00:00
Erik Olof Gunnar Andersson
43428e48d0 Simplified backend unit tests
These tests have no dependencies on the Designate Test class
and by moving to the oslo test base class instead we reduce the
runtime of these tests from ~5s to ~150ms.

- Added some basic tests for the fake backend (aka noop)
- Switched from designate.tests.TestCase to oslotest.base.BaseTestCase

Change-Id: I5d78939eb43476e6c93235e131086bc8537b0e03
2022-08-10 22:49:13 -07:00
Takashi Kajinami
16eba621b7 Sync rootwrap.conf from oslo.rootwrap
The current rootwrap.conf file is outdated and doesn't include some
parameters. This change updates the content to make it consistent with
the latest example file in oslo.rootwrap.

Change-Id: I5fe06cf99bb9787ec3afc67ab60a7330fe281513
2022-08-11 05:04:16 +00:00
Zuul
f3c29e8bce Merge "Fixed issues with __repr__ and __str__ on objects" 2022-08-10 07:05:22 +00:00
Zuul
7f87a8fa4f Merge "Remove netaddr module requirement" 2022-08-08 18:13:42 +00:00
Erik Olof Gunnar Andersson
fe387ae91b Fixed issues with __repr__ and __str__ on objects
We are currently override __repr__ in our base VersionedObject
and removing some useful information when debugging.

- Re-wrote __str__ to not raise an exception if data is missing.
- Removed some unused _to_string functions.
- Changed _from_string to from_string.

Change-Id: Idfd6c959cf943c5aaf95746f16070000bf82ca21
2022-08-07 17:28:38 +00:00
Erik Olof Gunnar Andersson
8beccabe4e Added additional test coverage for adapters
- Removed uncessary log line in base adapter.

Change-Id: I6e1a74fa3ecca0f82735ba36ac4336ab6cdeb56e
2022-08-06 03:28:23 +00:00
Michael Johnson
60c378763a Switch Designate to Alembic database migrations
Currently Designate is using sqlalchemy-migrate for database schema
migrations. sqlalchemy-migrate/migrate have been deprecated for some
time. This patch moves switches Designate to use Alembic for database
migrations.

Change-Id: I90ecb4d409b8b609b384997fa4cc9c65755409b3
2022-08-04 17:15:09 +00:00
Zuul
ef187ddec8 Merge "Re-factored central and rpc decorators" 2022-08-04 00:08:54 +00:00
Michael Johnson
968e3d348d Remove netaddr module requirement
This patch removes the 'netaddr' module from the Designate requirements list.
It replaces the use of netaddr in Designate with the python standard library 'ipaddress' module.

Change-Id: I2fb1549e1d6cbccf58c03810c7d74c8c378682d5
2022-08-02 22:02:13 +00:00
Erik Olof Gunnar Andersson
857b4c4e63 Re-factored central and rpc decorators
- Moved central and rpc decorators to common location.
- Cleaned up decorator code.

Change-Id: I79d21df7d17a2f706b8747e600e79a1ef1762e2b
2022-07-30 22:14:27 -07:00
OpenStack Proposal Bot
9876b7b935 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Id366a2d2b40367ada2aa5b1e3cc9ef615967216e
2022-07-28 03:02:32 +00:00
Zuul
d58514ec84 Merge "Replace deprecated readfp method with read_file" 2022-07-25 18:58:50 +00:00