nixos/tests/home-assistant: fix testing of restart with new dependency

The backup module is part of the default integrations and as such it will
always be loaded. Replace it with the prometheus module, for which this
is probably unlikely to ever become the case.
This commit is contained in:
Martin Weinelt
2024-12-09 19:00:30 +01:00
parent be150023f7
commit 579ade1ed8
+2 -2
View File
@@ -122,7 +122,7 @@ in {
# Cause a configuration change that requires a service restart as we added a new runtime dependency
specialisation.newFeature = {
inheritParentConfig = true;
configuration.services.home-assistant.config.backup = {};
configuration.services.home-assistant.config.prometheus = {};
};
specialisation.removeCustomThings = {
@@ -224,7 +224,7 @@ in {
with subtest("Check that new components get setup after restart"):
journal = get_journal_since(cursor)
for domain in ["backup"]:
for domain in ["prometheus"]:
assert f"Setup of domain {domain} took" in journal, f"{domain} setup missing"
with subtest("Check custom components and custom lovelace modules get removed"):