Commit graph

4 commits

Author SHA1 Message Date
Nicki Křížek
bd33597ab3 Use full path for shared test code imports in rollover tests
Previously, symlinks and relative directory imports were used in test
modules. This caused a name clash when a shared code module "common.py"
was introduced for a different test. To avoid the issue, use full paths
in imports.

(cherry picked from commit e49c467efb)
2025-08-06 00:23:23 -07:00
Nicki Křížek
3446e70b6a Add wait_for_keymgr_done() util function to tests
The kasp test cases assume that keymgr operations on the zone under test
have been completed before the test is executed. These are typically
quite fast, but the logs need to be explicitly checked for the messages,
otherwise there's a possibility of race conditions causing the
kasp/rollover tests to become unstable.

Call the wait function in all the kasp/rollover tests where it is
expected (which is generally in each test, unless we're dealing with
unsigned zones).

(cherry picked from commit 467b826162)
2025-07-18 16:20:06 +02:00
Nicki Křížek
7718baa363 Add nsX fixtures to system tests
Many of our test cases only use a single NamedInstance from the
`servers` fixture. Introduce `nsX` helper fixtures to simplify these
tests and reduce boilterplate code further.

Specifically, the test no longer has to either define its own variable
to extract a single server from the list, or use the longer
servers["nsX"] syntax. While this may seem minor, the amount of times it
is repeated across the tests justifies the change. It also promotes
using more explicit server identification, i.e. `nsX`, rather than
generic `server`. This also improves the clarity of the tests and may be
helpful in traceback during debugging as well.

(cherry picked from commit fe55342916)
2025-07-18 16:20:06 +02:00
Nicki Křížek
5d315d94fe Isolate rollover-dynamic2inline test
(cherry picked from commit 8503a218c3)
2025-07-18 14:45:19 +02:00