clanServices: Move heisenbridge test to appropriate location

Move the heisenbridge clanService test to the heisenbridge clan service.
The tests should live close to the definition of the service, so that
debugging and discoverability is better.
This commit is contained in:
a-kenji
2025-06-09 14:46:33 +02:00
parent 95acdfa4f8
commit 7fb182d7be
4 changed files with 13 additions and 3 deletions

View File

@@ -55,7 +55,6 @@ in
data-mesher = import ./data-mesher nixosTestArgs;
syncthing = import ./syncthing nixosTestArgs;
ergochat = import ./ergochat nixosTestArgs;
heisenbridge = import ./heisenbridge nixosTestArgs;
}
// lib.optionalAttrs (pkgs.stdenv.hostPlatform.system == "aarch64-linux") {
# for some reason this hangs in an odd place in CI, but it works on my machine ...

View File

@@ -1,6 +1,17 @@
{ lib, ... }:
{ lib, self, ... }:
{
clan.modules = {
heisenbridge = lib.modules.importApply ./default.nix { };
};
perSystem =
{ pkgs, ... }:
{
checks = lib.optionalAttrs (pkgs.stdenv.isLinux) {
heisenbridge = import ./tests/vm/default.nix {
inherit pkgs;
clan-core = self;
nixosLib = import (self.inputs.nixpkgs + "/nixos/lib") { };
};
};
};
}

View File

@@ -18,7 +18,7 @@ nixosLib.runTest (
clan = {
directory = ./.;
modules."@clan/heisenbridge" = ../../clanServices/heisenbridge/default.nix;
modules."@clan/heisenbridge" = ../../default.nix;
inventory = {
machines.server = { };