mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 08:00:06 +01:00
fix: config tests without script
some tests only assert correct configuration generation, let's call them "config tests" as opposed to "runtime tests"/"e2e tests". Those configuration tests, don't expose a runtime script. So they should not be taken into account for any orchestrated runtime script.
This commit is contained in:
parent
a3464f6857
commit
4707557ba3
2 changed files with 8 additions and 4 deletions
|
|
@ -22,10 +22,13 @@ let
|
|||
''
|
||||
else t.script;
|
||||
|
||||
tests = builtins.trace testing pkgs.linkFarm "${testing.name}-tests" (map (t: {
|
||||
path = toTestScript t;
|
||||
name = "${t.name}_test.py";
|
||||
}) testing.tests);
|
||||
tests = pkgs.linkFarm "${testing.name}-tests" (
|
||||
map (t: {
|
||||
path = toTestScript t;
|
||||
name = "${t.name}_test.py";
|
||||
})
|
||||
( filter (t: t.script != null) testing.tests )
|
||||
);
|
||||
|
||||
testScript = pkgs.writeScript "test-${testing.name}.sh" ''
|
||||
#!/usr/bin/env bash
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ in {
|
|||
script = mkOption {
|
||||
description = "Test script to use for e2e test";
|
||||
type = types.nullOr (types.either types.lines types.path);
|
||||
default = null;
|
||||
};
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue