Refactor(inventory/modules): add support for local clan.modules and migrate all checks

This commit is contained in:
Johannes Kirschbauer
2025-05-08 17:17:46 +02:00
parent 34b63ca1d5
commit 0af36d0a4d
7 changed files with 41 additions and 35 deletions

View File

@@ -18,7 +18,7 @@ let
};
# Register the module for the test
inventory.modules.hello-world = module;
modules.hello-world = module;
# Use the module in the test
inventory.instances = {

View File

@@ -14,6 +14,9 @@ clanLib.test.makeTestClan {
clan = {
directory = ./.;
modules = {
hello-service = module;
};
inventory = {
machines.peer1 = { };
@@ -21,10 +24,6 @@ clanLib.test.makeTestClan {
module.name = "hello-service";
roles.peer.machines.peer1 = { };
};
modules = {
hello-service = module;
};
};
};