nixosTests.cloud-init: handleTest -> runTest

+16 -25
+1 -1
nixos/tests/all-tests.nix
··· 318 cjdns = runTest ./cjdns.nix; 319 clatd = runTest ./clatd.nix; 320 clickhouse = import ./clickhouse { inherit runTest; }; 321 - cloud-init = handleTest ./cloud-init.nix { }; 322 cloud-init-hostname = handleTest ./cloud-init-hostname.nix { }; 323 cloudlog = runTest ./cloudlog.nix; 324 cntr = handleTestOn [ "aarch64-linux" "x86_64-linux" ] ./cntr.nix { };
··· 318 cjdns = runTest ./cjdns.nix; 319 clatd = runTest ./clatd.nix; 320 clickhouse = import ./clickhouse { inherit runTest; }; 321 + cloud-init = runTest ./cloud-init.nix; 322 cloud-init-hostname = handleTest ./cloud-init-hostname.nix { }; 323 cloudlog = runTest ./cloudlog.nix; 324 cntr = handleTestOn [ "aarch64-linux" "x86_64-linux" ] ./cntr.nix { };
+15 -24
nixos/tests/cloud-init.nix
··· 1 - { 2 - system ? builtins.currentSystem, 3 - config ? { }, 4 - pkgs ? import ../.. { inherit system config; }, 5 - }: 6 - 7 - with import ../lib/testing-python.nix { inherit system pkgs; }; 8 - with pkgs.lib; 9 10 let 11 inherit (import ./ssh-keys.nix pkgs) ··· 61 }; 62 63 in 64 - makeTest { 65 name = "cloud-init"; 66 - meta.maintainers = with pkgs.lib.maintainers; [ 67 lewo 68 illustris 69 ]; 70 - nodes.machine = 71 - { ... }: 72 - { 73 - virtualisation.qemu.options = [ 74 - "-cdrom" 75 - "${metadataDrive}/metadata.iso" 76 - ]; 77 - services.cloud-init = { 78 - enable = true; 79 - network.enable = true; 80 - }; 81 - services.openssh.enable = true; 82 - networking.hostName = ""; 83 - networking.useDHCP = false; 84 }; 85 testScript = '' 86 # To wait until cloud-init terminates its run 87 unnamed.wait_for_unit("cloud-init-local.service")
··· 1 + { lib, pkgs, ... }: 2 3 let 4 inherit (import ./ssh-keys.nix pkgs) ··· 54 }; 55 56 in 57 + { 58 name = "cloud-init"; 59 + meta.maintainers = with lib.maintainers; [ 60 lewo 61 illustris 62 ]; 63 + nodes.machine = { 64 + virtualisation.qemu.options = [ 65 + "-cdrom" 66 + "${metadataDrive}/metadata.iso" 67 + ]; 68 + services.cloud-init = { 69 + enable = true; 70 + network.enable = true; 71 }; 72 + services.openssh.enable = true; 73 + networking.hostName = ""; 74 + networking.useDHCP = false; 75 + }; 76 testScript = '' 77 # To wait until cloud-init terminates its run 78 unnamed.wait_for_unit("cloud-init-local.service")