Merge pull request 'clanServices: Move admin test to appropriate location' (#3905) from ke-move-admin-check into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3905
This commit is contained in:
@@ -51,7 +51,6 @@ in
|
|||||||
postgresql = self.clanLib.test.containerTest ./postgresql nixosTestArgs;
|
postgresql = self.clanLib.test.containerTest ./postgresql nixosTestArgs;
|
||||||
|
|
||||||
dummy-inventory-test = import ./dummy-inventory-test nixosTestArgs;
|
dummy-inventory-test = import ./dummy-inventory-test nixosTestArgs;
|
||||||
admin = import ./admin nixosTestArgs;
|
|
||||||
borgbackup = import ./borgbackup nixosTestArgs;
|
borgbackup = import ./borgbackup nixosTestArgs;
|
||||||
data-mesher = import ./data-mesher nixosTestArgs;
|
data-mesher = import ./data-mesher nixosTestArgs;
|
||||||
syncthing = import ./syncthing nixosTestArgs;
|
syncthing = import ./syncthing nixosTestArgs;
|
||||||
|
|||||||
@@ -1,6 +1,17 @@
|
|||||||
{ lib, ... }:
|
{ lib, self, ... }:
|
||||||
{
|
{
|
||||||
clan.modules = {
|
clan.modules = {
|
||||||
admin = lib.modules.importApply ./default.nix { };
|
admin = lib.modules.importApply ./default.nix { };
|
||||||
};
|
};
|
||||||
|
perSystem =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
checks = lib.optionalAttrs (pkgs.stdenv.isLinux) {
|
||||||
|
admin = import ./tests/vm/default.nix {
|
||||||
|
inherit pkgs;
|
||||||
|
clan-core = self;
|
||||||
|
nixosLib = import (self.inputs.nixpkgs + "/nixos/lib") { };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ nixosLib.runTest (
|
|||||||
|
|
||||||
clan = {
|
clan = {
|
||||||
directory = ./.;
|
directory = ./.;
|
||||||
modules."@clan/admin" = ../../clanServices/admin/default.nix;
|
modules."@clan/admin" = ../../default.nix;
|
||||||
inventory = {
|
inventory = {
|
||||||
|
|
||||||
machines.client = { };
|
machines.client = { };
|
||||||
Reference in New Issue
Block a user