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
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
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
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
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
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
Made some changes to make the api base_uri code easier
to test and standardized the implementation.
Change-Id: Ie2fc0dda13e455dc2cda10c4e09fb58e549c229f
- 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
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