From bc344c799208bceca37c0b1b360fb5a27be8b510 Mon Sep 17 00:00:00 2001 From: Jaka Hudoklin Date: Tue, 12 Mar 2019 21:00:22 +0100 Subject: [PATCH] feat(testing): set default kubenix.project to test name --- modules/testing.nix | 13 ++++++++----- tests/k8s/submodule.nix | 2 -- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/modules/testing.nix b/modules/testing.nix index 082143c..6653ce5 100644 --- a/modules/testing.nix +++ b/modules/testing.nix @@ -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 { diff --git a/tests/k8s/submodule.nix b/tests/k8s/submodule.nix index b638637..5a9d23b 100644 --- a/tests/k8s/submodule.nix +++ b/tests/k8s/submodule.nix @@ -19,8 +19,6 @@ in { }]; }; - kubenix.project = "test-release"; - kubernetes.namespace = "test-namespace"; submodules.imports = [{