mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-13 00:20:07 +01:00
feat(testing): set default kubenix.project to test name
This commit is contained in:
parent
6183fcc190
commit
bc344c7992
2 changed files with 8 additions and 7 deletions
|
|
@ -107,11 +107,14 @@ let
|
|||
'';
|
||||
};
|
||||
|
||||
testOptions = {config, ...}: let
|
||||
modules = [config.module ./test.nix {
|
||||
config._module.args = {
|
||||
test = config;
|
||||
} // cfg.args;
|
||||
testOptions = { config, ... }: let
|
||||
modules = [config.module ./test.nix ./base.nix {
|
||||
config = {
|
||||
kubenix.project = mkDefault config.name;
|
||||
_module.args = {
|
||||
test = config;
|
||||
} // cfg.args;
|
||||
};
|
||||
}] ++ cfg.defaults;
|
||||
|
||||
test = (kubenix.evalModules {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue