at 23.11-beta 654 B view raw
1import ../make-test-python.nix ({ pkgs, lib, ... } : 2 3{ 4 name = "incus-socket-activated"; 5 6 meta.maintainers = with lib.maintainers; [ adamcstephens ]; 7 8 nodes.machine = { lib, ... }: { 9 virtualisation = { 10 incus.enable = true; 11 incus.socketActivation = true; 12 }; 13 }; 14 15 testScript = '' 16 machine.wait_for_unit("incus.socket") 17 18 # ensure service is not running by default 19 machine.fail("systemctl is-active incus.service") 20 machine.fail("systemctl is-active incus-preseed.service") 21 22 # access the socket and ensure the service starts 23 machine.succeed("incus list") 24 machine.wait_for_unit("incus.service") 25 ''; 26})