4781 Commits

Author SHA1 Message Date
Zuul
3e5ad20856 Merge "Add charset and engine parameters to alembic create tables" 2023-11-19 02:43:28 +00:00
Brent Eagles
1f045ee64a Add charset and engine parameters to alembic create tables
This patch enforces utf8 and InnoDB when creating tables in
mariadb/mysql.

Closes-Bug: #2043701

Change-Id: I7afb533bd2d19dfaa900e3b946dc1e3563cc5198
2023-11-17 15:56:28 +00:00
Zuul
8805a02bed Merge "Add basic storage test to test config overrides" 2023-11-17 12:50:26 +00:00
Zuul
a6eb0be874 Merge "Improved adapter base coverage" 2023-11-17 12:19:21 +00:00
Zuul
5f6d25c0b7 Merge "Add clean_zonefile to BIND9 pool.yaml doc" 2023-11-17 02:35:22 +00:00
Zuul
6b980918bf Merge "Improved admin api coverage" 2023-11-17 01:09:42 +00:00
Zuul
4f7d0f1b6f Merge "Increase minimum test coverage to 94%" 2023-11-17 01:05:57 +00:00
Zuul
c7e6433383 Merge "Require correct project context for quota operations" 2023-11-17 01:05:55 +00:00
Zuul
2c33024b50 Merge "Remove code for oslo.context<4.0.0" 2023-11-17 00:45:41 +00:00
Erik Olof Gunnar Andersson
12362a234f Add basic storage test to test config overrides
Basic test coverage for overriding the default_ttl for
zone creation.

Change-Id: Ic977f8c3986a0c24d43db1f3899a508620096c03
2023-11-16 13:38:45 -08:00
Erik Olof Gunnar Andersson
aae83d09b8 Fix bug with new zone default values being ignored
The following defaults weren't being applied properly
to the zone.
- default_ttl
- default_soa_refresh_min
- default_soa_retry
- default_soa_expire
- default_soa_minimum

Closes-bug: #2042944
Change-Id: Iae4ee61e4a1f2bab48b1574ea55c90d45f5a040a
2023-11-10 20:12:45 +00:00
Erik Olof Gunnar Andersson
1fb207f8cc Improved adapter base coverage
- Improved a log message in base.

Change-Id: I93ad2db742682adcd196705a1c3f9315b9ac956c
2023-11-10 20:12:21 +00:00
Erik Olof Gunnar Andersson
2e9d1f0c28 Increase minimum test coverage to 94%
Change-Id: Ia065d6a2a1ba2ee41862963c239e9c50122d1d13
2023-11-10 20:12:19 +00:00
Erik Olof Gunnar Andersson
c83b097e66 Improved admin api coverage
Change-Id: Ia94ae347318fa12b94c11276923877aff480cd0a
2023-11-10 20:12:12 +00:00
Zuul
4e185d4e26 Merge "Make sqlalchemy-2x tests voting again" 2023-11-10 17:56:21 +00:00
Zuul
136006387d Merge "Fix Zuul warnings with regexps" 2023-11-10 13:24:11 +00:00
Erik Olof Gunnar Andersson
16798494f3 Make sqlalchemy-2x tests voting again
Depends-on: https://review.opendev.org/c/openstack/requirements/+/900517
Change-Id: I9709cdf3e7cf1efef52c92f1e116544a4cbe9b70
2023-11-09 16:27:54 +00:00
Erik Olof Gunnar Andersson
923f29664e Fix producer unit tests occasionally failing
When these tests were implemented they were setup
to test shards. The problem is that the range used
in the tests ends at 4094, but there are 4096 shards
in total. This means that if a zone is created on shard
4095 it is always ignored in the tests.

Change-Id: I29cf34b5120cca2e8b14c9c9f8ffa7c6e58da5b0
2023-11-09 15:15:06 +00:00
Takashi Kajinami
e7a1603314 Require correct project context for quota operations
Because of the recent change in SRBAC design, now quota apis require
project sopce and no longer supports system scope[1]. So we should
revert these logics to bypass project scope check, which was added to
support system scope[2].

[1] c2e51939b43afcdc20e24f86595655bf588a81a0
[2] 5f87d207b448ec4e24988af5671c3b3593b13804

Change-Id: I0c4fd340dd657613ec69109fccd51bda0b3ec3d0
2023-11-09 01:34:56 +09:00
Takashi Kajinami
71941e49f1 Remove code for oslo.context<4.0.0
... because now minimum supported version of oslo.context is 4.0.0 .

Change-Id: I4de4aa9bd4436a8a8f191d9a2323b48dee929deb
2023-11-09 01:18:53 +09:00
Zuul
1912f7015e Merge "Use super().setUp() for APIv2AdapterTest" 2023-11-08 14:04:53 +00:00
Zuul
6067d6d199 Merge "Improve object fields coverage and fixed error handling" 2023-11-08 13:02:59 +00:00
Erik Olof Gunnar Andersson
b1dfe627f8 Use super().setUp() for APIv2AdapterTest
Change-Id: I5f4948d5cc03e2e6ee2ce2a1bdb47f4c408c53ac
2023-11-08 11:37:01 +00:00
Erik Olof Gunnar Andersson
5c88c50349 Improve object fields coverage and fixed error handling
- Fixed bad error handling.
- Removed unreachable code.
- Minor cleanup for consistency.

Change-Id: Ie632f3c1358a6d25a75dfc023fa053b89b32ebf4
2023-11-08 00:57:43 +00:00
Erik Olof Gunnar Andersson
9328297cbe Fix coverage issues with greenlet
Change-Id: If6a3ab5f762453c50f23b668328cf20d930d6b01
2023-11-08 00:56:11 +00:00
Michael Johnson
35a66e3d7e Fix Zuul warnings with regexps
zuul now reports warnings when using perl-style regexp:
| The RE2 syntax error is: invalid perl operator: (?!
for
| branches: ^(?!stable)

This commit fixes it by using the correct RE2 syntax

Change-Id: I7efbce549a3ee673431018635c2f568f46df0449
2023-11-07 23:38:31 +00:00
Erik Olof Gunnar Andersson
30d8c70814 Disable tox sqlalchemy tests until fixed in oslo
Related-Bug: #2042886
Change-Id: I6afafb225a970777dfff6447d42d1ac027b4795a
2023-11-07 16:21:07 +00:00
Erik Olof Gunnar Andersson
2eeba9ea7d Increase minimum test coverage to 93%
Change-Id: I2124f66f970d9ee7d86579a6702357fca446481a
2023-11-04 15:01:11 -07:00
Erik Olof Gunnar Andersson
ff31452598 Improve worker test coverage
Change-Id: Ib6d8f300d1bae02e6c343521a0a517c04f0f1be4
2023-11-04 14:59:51 -07:00
Erik Olof Gunnar Andersson
bfa594f8a3 Add RecoverShard test coverage
Change-Id: Iaf7f4ae485f4d669d42d9c8a95c0305a611278eb
2023-11-03 08:55:26 -07:00
Erik Olof Gunnar Andersson
cc0431ba62 Standardize all configuration loading
There was a large config refactor many releases ago, but
we never standardized on the new pattern. This will also
help ensure that config is always loaded in the right order.

- Standardize how config is setup throughout designate.
- Removed unecessary import_opt.


Change-Id: I8913d2569f174208740a76c474c73316f6c1d89e
2023-11-03 11:19:11 +00:00
Erik Olof Gunnar Andersson
68fc28527a pyupgrade changes for Python3.8+
Result of running

$ pyupgrade --py38-plus $(git ls-files | grep ".py$")

This was inspired by Nova [1] and Octavia [2]

Fixed PEP8 errors introduced by pyupgrade by running:

$ autopep8 --select=E127,E128,E501 --max-line-length 79 -r \
  --in-place designate

and manual updates.

[1]: https://review.opendev.org/c/openstack/nova/+/896986
[2]: https://review.opendev.org/c/openstack/octavia/+/899263

Change-Id: Idfa757d7ba238012db116fdb3e98cc7c5ff4b169
2023-11-03 11:19:07 +00:00
Erik Olof Gunnar Andersson
7ef4c01e02 Allow base_uri override for tests
Made some changes to make the api base_uri code easier
to test and standardized the implementation.

Change-Id: Ie2fc0dda13e455dc2cda10c4e09fb58e549c229f
2023-11-03 04:18:44 -07:00
Erik Olof Gunnar Andersson
825e01a359 Use test addresses for all unit testing
Change-Id: I84fcb483a8d8cf50d7c6b7aa0b75c177f0b86c3d
2023-11-01 16:00:54 -07:00
Erik Olof Gunnar Andersson
0b9635ddec Improved dynect backend coverage
Change-Id: I1aa8c99f36f2373feee37a15376aee5f45ccc2d2
2023-11-01 16:00:54 -07:00
Erik Olof Gunnar Andersson
0f7e2c70b9 Increase minimum test coverage to 92%
Change-Id: If03860e2acee8a8c9c064f8a02d572ea85d6b782
2023-11-01 16:00:54 -07:00
Zuul
4065d1d4eb Merge "Remove unused server object" 2023-11-01 21:22:45 +00:00
Zuul
5640cf4410 Merge "Improved Objects Adapters testing" 2023-11-01 19:04:38 +00:00
Erik Olof Gunnar Andersson
71475ab2a8 Remove unused server object
Unable to find any use for the server object.

Change-Id: I04d9c2dfc3f0c144332f6ba76892fc705322ff1a
2023-11-01 16:25:01 +00:00
Erik Olof Gunnar Andersson
af6469c105 Improved Objects Adapters testing
- Split adapters test into separate file.
- Renamed test_yaml_adapters to test_adapters_yaml.
- Minor change to code to remove redundant if check.

Change-Id: Idabe1930c70d4a304bc0f74b3fe1fc42d6d6e254
2023-11-01 09:20:32 -07:00
Erik Olof Gunnar Andersson
83985fea34 Improve pdns coverage
Change-Id: If04a2673c624390c59cb6fabc017b06fe52edc0c
2023-11-01 12:22:50 +00:00
Erik Olof Gunnar Andersson
1b6546e137 Improve bind coverage and fixed minor bug
Fixed a minor bug where a timeout could be passed as either
a string or a int, but didn't handle the conversion properly.

Change-Id: Idbe15d59299d363305dd4404080400157cf90d2c
2023-11-01 12:22:46 +00:00
Zuul
e4e09a7c1d Merge "Removed unused storage_driver config" 2023-10-31 16:12:30 +00:00
Zuul
5a39876d14 Merge "Add missing newline in mdns release note" 2023-10-31 15:51:51 +00:00
Zuul
c1332c04a2 Merge "Remove python-memcached indirectly used" 2023-10-31 15:51:49 +00:00
Zuul
9dfc8426d3 Merge "Remove unused debtcollector" 2023-10-31 15:20:46 +00:00
Zuul
2f1c8bce52 Merge "Improved objects coverage" 2023-10-31 14:10:26 +00:00
Erik Olof Gunnar Andersson
d7e6368e6b Add missing newline in mdns release note
It does not render the list properly without this newline.

Change-Id: I044a4552e1b4a6c3a3ecbad8c5a3b870d554d17e
2023-10-31 12:14:27 +00:00
Zuul
b1c305c175 Merge "Removed deprecated mdns config" 2023-10-31 11:49:30 +00:00
Zuul
fe7df7f095 Merge "Add basic NS test coverage" 2023-10-31 11:49:27 +00:00