feat(meta): add disallowApplyAll options
unify meta access for machinesFile update release note and config name
This commit is contained in:
parent
1b3c272b58
commit
dd7a2924ca
10 changed files with 111 additions and 24 deletions
19
integration-tests/allow-apply-all/default.nix
Normal file
19
integration-tests/allow-apply-all/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ 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")
|
||||
|
||||
assert "no filter supplied" in logs
|
||||
|
||||
deployer.succeed("cd /tmp/bundle && run-copy-stderr ${tools.colmenaExec} apply --on @target")
|
||||
'';
|
||||
}
|
14
integration-tests/allow-apply-all/hive.nix
Normal file
14
integration-tests/allow-apply-all/hive.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
let
|
||||
tools = import ./tools.nix {
|
||||
insideVm = true;
|
||||
targets = ["alpha"];
|
||||
};
|
||||
in {
|
||||
meta = {
|
||||
nixpkgs = tools.pkgs;
|
||||
allowApplyAll = false;
|
||||
};
|
||||
|
||||
deployer = tools.getStandaloneConfigFor "deployer";
|
||||
alpha = tools.getStandaloneConfigFor "alpha";
|
||||
}
|
|
@ -8,6 +8,8 @@
|
|||
flakes-streaming = import ./flakes { evaluator = "streaming"; };
|
||||
parallel = import ./parallel {};
|
||||
|
||||
allow-apply-all = import ./allow-apply-all {};
|
||||
|
||||
apply-stable = let
|
||||
test = import ./apply { pkgs = import ./nixpkgs-stable.nix; };
|
||||
in test.override (old: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue