Add integration tests
This commit is contained in:
parent
ec51f5703f
commit
430a91cbad
8 changed files with 260 additions and 1 deletions
15
integration-tests/exec/default.nix
Normal file
15
integration-tests/exec/default.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
let
|
||||
tools = import ../tools.nix {};
|
||||
in tools.makeTest {
|
||||
name = "colmena-exec";
|
||||
|
||||
bundle = ./.;
|
||||
|
||||
testScript = ''
|
||||
logs = deployer.succeed("cd /tmp/bundle && ${tools.colmenaExec} exec -v --on @target -- echo output from '$(hostname)' 2>&1")
|
||||
|
||||
assert "output from alpha" in logs
|
||||
assert "output from beta" in logs
|
||||
assert "output from gamma" in logs
|
||||
'';
|
||||
}
|
12
integration-tests/exec/hive.nix
Normal file
12
integration-tests/exec/hive.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
let
|
||||
tools = import ./tools.nix { insideVm = true; };
|
||||
in {
|
||||
meta = {
|
||||
nixpkgs = tools.pkgs;
|
||||
};
|
||||
|
||||
deployer = tools.getStandaloneConfigFor "deployer";
|
||||
alpha = tools.getStandaloneConfigFor "alpha";
|
||||
beta = tools.getStandaloneConfigFor "beta";
|
||||
gamma = tools.getStandaloneConfigFor "gamma";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue