move unit tests under common directory
This commit is contained in:
parent
75e290160e
commit
cf3aed2e82
7 changed files with 12 additions and 9 deletions
|
@ -23,6 +23,4 @@ rec {
|
|||
"no failing test"
|
||||
else
|
||||
concatStringsSep "\n" formattedFailureGroups;
|
||||
|
||||
disnixtests = pkgs.callPackage ./tests/disnix/keycloak.nix {};
|
||||
}
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
Unit tests are used in Self Host Blocks to check that parsing
|
||||
configurations produce the expected result.
|
||||
|
||||
You can find all unit tests under the [tests/](/tests/) directory.
|
||||
You can find all unit tests under the [tests/unit](/tests/unit) directory.
|
||||
|
|
|
@ -1,12 +1,8 @@
|
|||
# to run all tests:
|
||||
# nix-instantiate --eval --strict . -A tests
|
||||
|
||||
{ pkgs
|
||||
, utils
|
||||
}:
|
||||
|
||||
{
|
||||
haproxy = pkgs.callPackage ./haproxy.nix { inherit utils; };
|
||||
keycloak = pkgs.callPackage ./keycloak.nix {};
|
||||
keycloak-cli-config = pkgs.callPackage ./keycloak-cli-config.nix {};
|
||||
unit = pkgs.callPackage ./unit { inherit utils; };
|
||||
integration = pkgs.callPackage ./integration { inherit utils; };
|
||||
}
|
||||
|
|
9
tests/unit/default.nix
Normal file
9
tests/unit/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ pkgs
|
||||
, utils
|
||||
}:
|
||||
|
||||
{
|
||||
haproxy = pkgs.callPackage ./haproxy.nix { inherit utils; };
|
||||
keycloak = pkgs.callPackage ./keycloak.nix {};
|
||||
keycloak-cli-config = pkgs.callPackage ./keycloak-cli-config.nix {};
|
||||
}
|
Loading…
Reference in a new issue