inventoryAdapter: replace importedModulesEvaluated by equivalent config

This commit is contained in:
Johannes Kirschbauer
2025-10-30 10:10:31 +01:00
parent ba4ff493e8
commit c7f65e929f
5 changed files with 16 additions and 19 deletions

View File

@@ -81,7 +81,7 @@ in
{
# Test that the module is mapped into the output
# We might change the attribute name in the future
expr = res.importedModulesEvaluated ? "<clan-core>-simple-module";
expr = res.servicesEval.config.mappedServices ? "<clan-core>-simple-module";
expected = true;
inherit res;
};
@@ -177,7 +177,7 @@ in
{
# Test that the module is mapped into the output
# We might change the attribute name in the future
expr = lib.attrNames res.importedModulesEvaluated.self-A.instances;
expr = lib.attrNames res.servicesEval.config.mappedServices.self-A.instances;
expected = [
"instance_bar"
"instance_foo"
@@ -233,7 +233,7 @@ in
{
# Test that the module is mapped into the output
# We might change the attribute name in the future
expr = lib.attrNames res.importedModulesEvaluated.self-A.result.allMachines;
expr = lib.attrNames res.servicesEval.config.mappedServices.self-A.result.allMachines;
expected = [
"jon"
"sara"
@@ -285,7 +285,7 @@ in
{
# Test that the module is mapped into the output
# We might change the attribute name in the future
expr = lib.attrNames res.importedModulesEvaluated.self-A.result.allMachines;
expr = lib.attrNames res.servicesEval.config.mappedServices.self-A.result.allMachines;
expected = [
"jon"
"sara"