colmena/integration-tests/apply-local/default.nix
Zhaofeng Li f849a757d2 integration-tests: Allow configuring the presence of nodes
For example, there's no need to spin up any target nodes when we
just want to test `colmena apply-local` on the deployer node.
2021-12-05 01:14:12 -08:00

15 lines
316 B
Nix

let
tools = import ../tools.nix {
targets = [];
prebuiltTarget = "deployer";
};
in tools.makeTest {
name = "colmena-apply-local";
bundle = ./.;
testScript = ''
deployer.succeed("cd /tmp/bundle && ${tools.colmenaExec} apply-local")
deployer.succeed("grep SUCCESS /etc/deployment")
'';
}