introspection: update test
This commit is contained in:
@@ -392,19 +392,20 @@ in
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
config.foo = {
|
config.foo = {
|
||||||
a.b = {
|
# Statically define "foo.a.c"
|
||||||
bar = 1;
|
# This cannot be deleted
|
||||||
};
|
a.c = { };
|
||||||
a.c = {
|
|
||||||
bar = 1;
|
|
||||||
};
|
|
||||||
x.y = {
|
|
||||||
bar = 1;
|
|
||||||
};
|
|
||||||
x.z = {
|
|
||||||
bar = 1;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
imports = [
|
||||||
|
{
|
||||||
|
_file = "inventory.json";
|
||||||
|
config.foo = {
|
||||||
|
a.c = {
|
||||||
|
bar = 1;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
@@ -414,74 +415,34 @@ in
|
|||||||
expected = {
|
expected = {
|
||||||
foo = {
|
foo = {
|
||||||
__this = {
|
__this = {
|
||||||
files = [ "<unknown-file>" ];
|
files = [
|
||||||
|
"inventory.json"
|
||||||
|
"<unknown-file>"
|
||||||
|
];
|
||||||
prio = 100;
|
prio = 100;
|
||||||
total = false;
|
total = false;
|
||||||
};
|
};
|
||||||
a = {
|
a = {
|
||||||
__this = {
|
__this = {
|
||||||
files = [ "<unknown-file>" ];
|
files = [
|
||||||
|
"inventory.json"
|
||||||
|
"<unknown-file>"
|
||||||
|
];
|
||||||
prio = 100;
|
prio = 100;
|
||||||
total = false;
|
total = false;
|
||||||
};
|
};
|
||||||
b = {
|
|
||||||
__this = {
|
|
||||||
files = [ "<unknown-file>" ];
|
|
||||||
prio = 100;
|
|
||||||
total = true;
|
|
||||||
};
|
|
||||||
bar = {
|
|
||||||
__this = {
|
|
||||||
files = [ "<unknown-file>" ];
|
|
||||||
prio = 100;
|
|
||||||
total = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
c = {
|
c = {
|
||||||
__this = {
|
__this = {
|
||||||
files = [ "<unknown-file>" ];
|
files = [
|
||||||
|
"inventory.json"
|
||||||
|
"<unknown-file>"
|
||||||
|
];
|
||||||
prio = 100;
|
prio = 100;
|
||||||
total = true;
|
total = true;
|
||||||
};
|
};
|
||||||
bar = {
|
bar = {
|
||||||
__this = {
|
__this = {
|
||||||
files = [ "<unknown-file>" ];
|
files = [ "inventory.json" ];
|
||||||
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>" ];
|
|
||||||
prio = 100;
|
prio = 100;
|
||||||
total = false;
|
total = false;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user