mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
27 lines
654 B
Nix
27 lines
654 B
Nix
import ../make-test-python.nix ({ pkgs, lib, ... } :
|
|
|
|
{
|
|
name = "incus-socket-activated";
|
|
|
|
meta.maintainers = with lib.maintainers; [ adamcstephens ];
|
|
|
|
nodes.machine = { lib, ... }: {
|
|
virtualisation = {
|
|
incus.enable = true;
|
|
incus.socketActivation = true;
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
machine.wait_for_unit("incus.socket")
|
|
|
|
# ensure service is not running by default
|
|
machine.fail("systemctl is-active incus.service")
|
|
machine.fail("systemctl is-active incus-preseed.service")
|
|
|
|
# access the socket and ensure the service starts
|
|
machine.succeed("incus list")
|
|
machine.wait_for_unit("incus.service")
|
|
'';
|
|
})
|