introspection: update test

This commit is contained in:
Johannes Kirschbauer
2025-10-10 14:30:08 +02:00
parent c13879ce69
commit 9b0557803e

View File

@@ -392,21 +392,22 @@ in
);
};
config.foo = {
a.b = {
bar = 1;
# Statically define "foo.a.c"
# This cannot be deleted
a.c = { };
};
imports = [
{
_file = "inventory.json";
config.foo = {
a.c = {
bar = 1;
};
x.y = {
bar = 1;
};
x.z = {
bar = 1;
};
};
}
];
}
];
in
{
inherit evaluated;
@@ -414,74 +415,34 @@ in
expected = {
foo = {
__this = {
files = [ "<unknown-file>" ];
files = [
"inventory.json"
"<unknown-file>"
];
prio = 100;
total = false;
};
a = {
__this = {
files = [ "<unknown-file>" ];
files = [
"inventory.json"
"<unknown-file>"
];
prio = 100;
total = false;
};
b = {
__this = {
files = [ "<unknown-file>" ];
prio = 100;
total = true;
};
bar = {
__this = {
files = [ "<unknown-file>" ];
prio = 100;
total = false;
};
};
};
c = {
__this = {
files = [ "<unknown-file>" ];
files = [
"inventory.json"
"<unknown-file>"
];
prio = 100;
total = true;
};
bar = {
__this = {
files = [ "<unknown-file>" ];
prio = 100;
total = false;
};
};
};
};
x = {
__this = {
files = [ "<unknown-file>" ];
prio = 100;
total = false;
};
y = {
__this = {
files = [ "<unknown-file>" ];
prio = 100;
total = true;
};
bar = {
__this = {
files = [ "<unknown-file>" ];
prio = 100;
total = false;
};
};
};
z = {
__this = {
files = [ "<unknown-file>" ];
prio = 100;
total = true;
};
bar = {
__this = {
files = [ "<unknown-file>" ];
files = [ "inventory.json" ];
prio = 100;
total = false;
};