feat(inventory/instances): prevent modules without explizit class from beeing used

This commit is contained in:
Johannes Kirschbauer
2025-04-02 14:57:21 +02:00
parent 542a6a3fd1
commit 11f213f8e2
4 changed files with 135 additions and 9 deletions

View File

@@ -22,6 +22,15 @@ let
}).config;
flakeInputsFixture = {
# Example upstream module
upstream.clan.modules = {
uzzi = {
_class = "clan.service";
manifest = {
name = "uzzi-from-upstream";
};
};
};
};
callInventoryAdapter =
@@ -32,6 +41,7 @@ let
};
in
{
resolve_module_spec = import ./import_module_spec.nix { inherit lib callInventoryAdapter; };
test_simple =
let
res = callInventoryAdapter {