mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-13 00:20:07 +01:00
28 lines
477 B
Nix
28 lines
477 B
Nix
{ pkgs ? import <nixpkgs> {}
|
|
, kubenix ? import ../. {inherit pkgs;}
|
|
, lib ? kubenix.lib
|
|
|
|
# whether any testing error should throw an error
|
|
, throwError ? true }:
|
|
|
|
with lib;
|
|
|
|
(evalModules {
|
|
modules = [
|
|
./modules/testing.nix
|
|
|
|
{
|
|
testing.throwError = throwError;
|
|
testing.tests = [
|
|
./k8s/simple.nix
|
|
./k8s/deployment.nix
|
|
];
|
|
}
|
|
];
|
|
args = {
|
|
inherit pkgs;
|
|
};
|
|
specialArgs = {
|
|
inherit kubenix;
|
|
};
|
|
}).config.testing.result
|