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