mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
feat: improve tests
This commit is contained in:
parent
c01b2fdab2
commit
bf920ab2a6
3 changed files with 15 additions and 9 deletions
14
default.nix
14
default.nix
|
|
@ -98,8 +98,20 @@ let
|
|||
};
|
||||
in pkgs.writeText "resources.json" (builtins.toJSON hashedList);
|
||||
|
||||
buildTest = test: version: buildResources {
|
||||
configuration = {
|
||||
require = [test {
|
||||
config.kubernetes.version = version;
|
||||
}];
|
||||
};
|
||||
};
|
||||
|
||||
in {
|
||||
inherit buildResources;
|
||||
|
||||
test = buildResources { configuration = ./test/default.nix; };
|
||||
tests."k8s-1_7" = buildTest ./test/default.nix "1.7";
|
||||
tests."k8s-1_8" = buildTest ./test/default.nix "1.8";
|
||||
tests."k8s-1_9" = buildTest ./test/default.nix "1.9";
|
||||
tests."k8s-1_10" = buildTest ./test/default.nix "1.10";
|
||||
tests."k8s-1_11" = buildTest ./test/default.nix "1.11";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue