Commit Graph

2439 Commits

Author SHA1 Message Date
Zuul 097ffc6df1 Merge "Bump hacking" 2024-03-18 10:37:22 +00:00
Zuul 91f7d7d3fb Merge "Add support for catalog zones" 2024-02-14 20:16:54 +00:00
Zuul dd5993ad1b Merge "Removed unused function and improved Zone Master coverage" 2024-01-30 19:46:53 +00:00
Zuul 69c6b12a8d Merge "Stop using deprecated zake coordination driver" 2024-01-30 02:26:23 +00:00
Erik Olof Gunnar Andersson 75e0b5480f Removed unused function and improved Zone Master coverage
- Removed to_list as it is implemented the same way in the base class.

Change-Id: I74558bd4b1ca4effdbd2475ff7f08a5072e1e44f
2024-01-26 02:03:43 +00:00
Jan Hartkopf 60a6ceed09 Add support for catalog zones
This implements the spec to introduce support for providing catalog zones.

Co-Authored-By: Nico Keller <nico.keller@inovex.de>
Change-Id: Ic9e593d661f2eb1db59a5b235521e0746489f9bb
Signed-off-by: Jan Hartkopf <jhartkopf@inovex.de>
2024-01-22 15:22:13 +01:00
Takashi Kajinami cb47b4e00e Make edgegrid-python optional
The edgegrid-python library is not necessary unless akamai backend is
used, so this library should be an optional dependency to avoid pulling
unnecessary packages.

Note that akamai backend hasn't been updated since it was added 4 years
back. Probably we can deprecate and remove it assuming it's not really
used(or at least it's not maintained).

Change-Id: If13e722e5ec3cdcd11461201ea20b2dc022cce10
2024-01-22 21:47:31 +09:00
Takashi Kajinami f7ab684d1b Stop using deprecated zake coordination driver
The zake driver in tooz was deprecated[1] because the zake library has
been archived[2].

[1] 9acbc5391521155b04aa6654fb91c90b467b5750
[2] https://github.com/yahoo/Zake

Change-Id: I0fabc466c045c2dc20c88932b061422612c48005
2024-01-22 01:22:42 +09:00
Takashi Kajinami 7472f515a6 Bump hacking
hacking 3.0.x is too old. This also removes the note about old behavior
of pip which has been changed in recent versions.

Notes:
- A few errors newly detected are also fixed.

- This also fixes the compatibility with flake8 >= 3.0 because flake8
  is also bumped when we bump hacking.

- pretty_flake8 tool is removed because it's not commonly used but
  needs maintenance effort to keep it in sync with newer releases

Change-Id: I8e91b06199bfbed1d6e9f8d62ddf52fafd60b7f9
2024-01-17 12:37:51 +09:00
Erik Olof Gunnar Andersson 002005a440 Cleanup Heartbeat Emitter abstraction code
Change-Id: Ia53230c6eaac1987c6e7cedc523079ee586dafaf
2024-01-09 16:37:26 -08:00
Zuul 9d96f5f955 Merge "Improve Dyntext coverage and removed unusable code" 2024-01-09 00:23:24 +00:00
Zuul e73c03d661 Merge "Improved notification unit test coverage" 2024-01-09 00:04:05 +00:00
Zuul 318a9ce075 Merge "Remove unused validation function" 2024-01-09 00:04:03 +00:00
Erik Olof Gunnar Andersson 755efb1f3c Improve Dyntext coverage and removed unusable code
- Removed poll_response code that wasn't working.
- Removed unused code.
- Fixed non-lazy loaded log lines.

Change-Id: Ib8b0f4d61c1ee94f48b020c70ef260397d358172
2024-01-08 13:43:55 -08:00
Erik Olof Gunnar Andersson 2b6b8da818 Improved notification unit test coverage
Change-Id: I8b1283f0d7b884e7f15aab2fd9514c93ed146230
2024-01-07 14:51:00 -08:00
Erik Olof Gunnar Andersson 5c0ef757f5 Remove unused validation function
Change-Id: I30595c472779edccb173b6db0025d7084a192111
2024-01-07 12:14:05 -08:00
Erik Olof Gunnar Andersson ddef40c9b1 Cleanup cross function / unit imports
Change-Id: I741bd5342625dd0617c9d319323a343cbb2f8cc5
2024-01-07 11:53:29 -08:00
Erik Olof Gunnar Andersson 21ae2fb4ff Improve Scheduler coverage
Change-Id: Iaded56fbdfd06d66b906617259ccbaf7cc21e910
2024-01-07 13:06:33 +00:00
Erik Olof Gunnar Andersson 16e2433d25 Added basic fake network coverage
This code should never be used in production, but it is always
good to have basic test coverage either way to make it easier
to understand the implementation.

Change-Id: I17e74223e5c68fe9d0799dedd94c88e399ff21ba
2024-01-07 13:06:24 +00:00
Erik Olof Gunnar Andersson ff70036bf9 Improve NS1 test coverage
Change-Id: I784acb919790da08c841605c5971a19517c508b1
2024-01-07 13:06:15 +00:00
Erik Olof Gunnar Andersson 39a8c8f116 Improved V2 controller coverage
- Removed code that was impossible to reach.

Change-Id: Ib3c11d792ff1a5c0110ab2263e7a8a6d5f6baae0
2024-01-07 13:06:08 +00:00
Erik Olof Gunnar Andersson 571d902c59 Improved pool move test coverage
Change-Id: I59926b701e375b01dd46fc0fad0ce2db6dd73fe7
2024-01-07 13:05:59 +00:00
Erik Olof Gunnar Andersson 57f2e367bf Restructure testing
- Moved all functional tests to dedicated folder.
- Updated a few tests to use faster oslo tests.
- Renamed fixtures.py to base_fixtures.py.

Change-Id: Ie8c5591dd12a91350173bec2b418b6c9ddea79fe
2024-01-05 15:09:29 -08:00
kpdev 8733f8f85b Add new API for zone move
The new API would be v2/zones/<zone_id>/tasks/move
Only POST would be allowed on this API.
This move zone from existing pool and add it in new pool. After zone
pool_id field will be updated in DB, clone-zone will be created on
target pool backend servers. The zone transfer(AXFR/IXFR) will happen
and the zone on target pool gets synced with the Designate DB.
This command serve as replacement to "zone export + zone delete + zone
import" procedure.

Added following things in pool move operation:
  - Add/Update NS servers of new pool in the zone

Implements: blueprint zone-move
Change-Id: I5307de429114b20efd9785c3c0cdb33977418423
2023-12-15 22:31:27 +00:00
Erik Olof Gunnar Andersson f5a034272d Add upgrade test coverage
Adding additional test upgrade coverage. This implementation
tests things like the is_migration_needed flag. In the future
we can also add support for MySQL functional coverage as well.

Change-Id: I9386d1bfbfee1fe8ff41859520cdbe94381ee3fd
2023-12-14 09:13:11 -08:00
Erik Olof Gunnar Andersson d90691f3a2 Improved service coverage
Change-Id: I16ee9a86f64af2d666adc8a5cad5267fc34910b1
2023-12-12 18:43:25 +00:00
Erik Olof Gunnar Andersson 2ffc4902a1 Cleanup Central tests
Multiple tests were failing under some scenarios because of
how we were mocking certain resources in these tests.

- Removed unused code.
- Standardized test code.
- Moved central/test_basic tests to functional tests.

Change-Id: I30870244686b7ce9b0e793da2dd6b67a2cb82246
2023-12-12 18:43:23 +00:00
Erik Olof Gunnar Andersson 7067155a7d Improved Notifications coverage
- Minor cleanup to code to make it easier to read.
- Restructured tests.

Change-Id: Id508f9dfd776a0017bd02db461331983e1f82646
2023-12-12 18:43:20 +00:00
Erik Olof Gunnar Andersson db5766e883 Standardized Service unit tests
A lot of our unit tests don't need to setup a proper RPC
connection. This patch mocks the RPC path for all these
tests and standardizes some of the tests.

Change-Id: Ibdc1d495c8aa15c3e29293aabd2a9641bf12c897
2023-12-12 10:43:02 -08:00
Zuul b68451c076 Merge "Improved worker rpcapi coverage" 2023-12-12 07:50:33 +00:00
Zuul ab5826f116 Merge "Improve API Controllers coverage" 2023-12-12 07:50:31 +00:00
Erik Olof Gunnar Andersson 21f9512875 Improved worker rpcapi coverage
Change-Id: Ib1a907f6377967901b1c079580a10f99d408eb12
2023-12-11 08:39:57 -08:00
Erik Olof Gunnar Andersson 41b4903b18 Improve API Controllers coverage
- Removed unnecessary error handling.

Change-Id: I669b3081bc724d7d30df3cc8ad5e82dcad81889b
2023-12-11 03:58:51 -08:00
Zuul ca4b0ef515 Merge "Cleanup context code" 2023-12-09 16:15:39 +00:00
Zuul c3aedd8811 Merge "Fix incorrect test IP range being used by zonefiles" 2023-12-09 16:15:37 +00:00
Zuul d96f840b42 Merge "Fix occasional failure in Service tests" 2023-12-09 16:15:36 +00:00
Zuul 594ab3fcaf Merge "Fix FloatingIP ttl not allowing zero" 2023-12-08 20:11:30 +00:00
Erik Olof Gunnar Andersson 4501b77997 Fix incorrect test IP range being used by zonefiles
Change-Id: I6825279c42cd6ac721d3863ef5e2ca1eb70e25a7
2023-12-08 10:56:19 -08:00
Erik Olof Gunnar Andersson 060a17ac65 Fix occasional failure in Service tests
If another test is calling the rpc code, the
initialized flag will already be set.

Change-Id: I91bed3050ef253f3502ae3573bf36f211f65ed8c
2023-12-08 05:39:21 -08:00
Erik Olof Gunnar Andersson e720d8d59a Cleanup context code
- Added additional coverage.
- Split tests into unit and functional tests.
- Simplified _ContextAuthPlugin.

Change-Id: Ie786b73b00196b51185e514d84be618617339d06
2023-12-07 23:28:02 +00:00
Erik Olof Gunnar Andersson 47df39d6a2 Fix FloatingIP ttl not allowing zero
Related-Bug: #1926429
Change-Id: Iae2d4f7d66feaf1206167faf10d834deb762e962
2023-12-07 23:27:50 +00:00
Erik Olof Gunnar Andersson f424245d56 Improved producer task test coverage
Change-Id: I4a3901512b31d1d13db9e75d3de26bf2dcb5ba0d
2023-12-07 23:27:44 +00:00
Zuul 55cc882706 Merge "Cleaned up rpc loggingutils" 2023-12-07 22:34:29 +00:00
Zuul 6b5a989fbf Merge "Cleaned up quota implementation" 2023-12-07 21:35:17 +00:00
Zuul 9d253ad6ed Merge "Improved dnsutils coverage" 2023-12-07 18:22:26 +00:00
Zuul 870c9f7f67 Merge "Improved Manage coverage" 2023-12-07 18:13:28 +00:00
Zuul d5bb456d5f Merge "Add missing worker delete_zone test" 2023-12-07 16:55:37 +00:00
Zuul 76d4e8a06a Merge "Remove unused rpc calls" 2023-12-07 15:27:06 +00:00
Zuul 3c0f4bd866 Merge "Remove unused ZoneLock" 2023-12-07 15:27:04 +00:00
Zuul 128dc86237 Merge "Remove executable flag from impl_dynect.py" 2023-12-06 15:02:30 +00:00