diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-06-07 14:20:03 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-06-07 14:20:03 +0200 |
commit | 4214e54d6e0a64909b45b2191af5e233100d73fa (patch) | |
tree | be182ccc6f299a42702cb5edcded2934afa88199 /tests/by-name/at | |
parent | pkgs/sharkey: Remove nixpkgs unstable wrapper (diff) | |
download | nixos-server-4214e54d6e0a64909b45b2191af5e233100d73fa.zip |
tests/{atuin-sync,email-{dns,http},sharkey,taskchampion-sync}: Share acme setup
In the wake of `network-online.target`'s removal from `multi-user.target`, I noticed, that this acme ca setup code is effectively duplicated. This commit now deduplicates it.
Diffstat (limited to 'tests/by-name/at')
-rw-r--r-- | tests/by-name/at/atuin-sync/test.nix | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/tests/by-name/at/atuin-sync/test.nix b/tests/by-name/at/atuin-sync/test.nix index 3e01885..d29c031 100644 --- a/tests/by-name/at/atuin-sync/test.nix +++ b/tests/by-name/at/atuin-sync/test.nix @@ -142,26 +142,11 @@ nixos-lib.runTest { run_and_record_in_atuin "$@" ''; - acme_scripts = import ../../../common/acme/scripts.nix {inherit pkgs;}; + acme = import ../../../common/acme {inherit pkgs;}; in - /* - python - */ + acme.prepare ["server" "client1" "client2"] + # Python '' - # Start dependencies for the other services - acme.start() - acme.wait_for_unit("pebble.service") - name_server.start() - name_server.wait_for_unit("nsd.service") - - # Start actual test - start_all() - - with subtest("Add pebble ca key to all services"): - for node in [name_server, server, client1, client2]: - node.wait_for_unit("network-online.target") - node.succeed("${acme_scripts.add_pebble_acme_ca}") - server.wait_for_unit("atuin.service") server.wait_for_open_port(443) |