1
0
Fork 0

move unit tests under common directory

This commit is contained in:
ibizaman 2023-03-07 00:18:56 -08:00
parent 75e290160e
commit cf3aed2e82
7 changed files with 12 additions and 9 deletions

View file

@ -23,6 +23,4 @@ rec {
"no failing test" "no failing test"
else else
concatStringsSep "\n" formattedFailureGroups; concatStringsSep "\n" formattedFailureGroups;
disnixtests = pkgs.callPackage ./tests/disnix/keycloak.nix {};
} }

View file

@ -3,4 +3,4 @@
Unit tests are used in Self Host Blocks to check that parsing Unit tests are used in Self Host Blocks to check that parsing
configurations produce the expected result. 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.

View file

@ -1,12 +1,8 @@
# to run all tests:
# nix-instantiate --eval --strict . -A tests
{ pkgs { pkgs
, utils , utils
}: }:
{ {
haproxy = pkgs.callPackage ./haproxy.nix { inherit utils; }; unit = pkgs.callPackage ./unit { inherit utils; };
keycloak = pkgs.callPackage ./keycloak.nix {}; integration = pkgs.callPackage ./integration { inherit utils; };
keycloak-cli-config = pkgs.callPackage ./keycloak-cli-config.nix {};
} }

9
tests/unit/default.nix Normal file
View 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 {};
}