colmena/integration-tests/allow-apply-all/default.nix
Zhaofeng Li 8b87f0de02 integration-tests: Start migration to modular test framework
Still need to migrate most logic in tools.nix to modules.
2022-12-01 01:57:56 -07:00

21 lines
473 B
Nix

{ pkgs ? import ../nixpkgs.nix }:
let
tools = pkgs.callPackage ../tools.nix {
targets = [ "alpha" ];
};
in tools.runTest {
name = "colmena-allow-apply-all";
colmena.test = {
bundle = ./.;
testScript = ''
logs = deployer.fail("cd /tmp/bundle && run-copy-stderr ${tools.colmenaExec} apply")
assert "No node filter" in logs
deployer.succeed("cd /tmp/bundle && run-copy-stderr ${tools.colmenaExec} apply --on @target")
'';
};
}