2022-06-18 09:07:16 +02:00
|
|
|
{ pkgs ? import ../nixpkgs.nix }:
|
|
|
|
|
|
|
|
let
|
|
|
|
tools = pkgs.callPackage ../tools.nix {
|
|
|
|
targets = [ "alpha" ];
|
|
|
|
};
|
2022-12-01 09:57:56 +01:00
|
|
|
in tools.runTest {
|
2022-06-18 09:07:16 +02:00
|
|
|
name = "colmena-allow-apply-all";
|
|
|
|
|
2022-12-01 09:57:56 +01:00
|
|
|
colmena.test = {
|
|
|
|
bundle = ./.;
|
2022-06-18 09:07:16 +02:00
|
|
|
|
2022-12-01 09:57:56 +01:00
|
|
|
testScript = ''
|
|
|
|
logs = deployer.fail("cd /tmp/bundle && run-copy-stderr ${tools.colmenaExec} apply")
|
2022-06-18 09:07:16 +02:00
|
|
|
|
2022-12-01 09:57:56 +01:00
|
|
|
assert "No node filter" in logs
|
2022-06-18 09:07:16 +02:00
|
|
|
|
2022-12-01 09:57:56 +01:00
|
|
|
deployer.succeed("cd /tmp/bundle && run-copy-stderr ${tools.colmenaExec} apply --on @target")
|
|
|
|
'';
|
|
|
|
};
|
2022-06-18 09:07:16 +02:00
|
|
|
}
|