From 579ade1ed8370171f0e1bc482d0435fa5f1eb950 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 2 Sep 2024 02:11:22 +0200 Subject: [PATCH] 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. --- nixos/tests/home-assistant.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/tests/home-assistant.nix b/nixos/tests/home-assistant.nix index 5ff142b08d7a..5235d41f0297 100644 --- a/nixos/tests/home-assistant.nix +++ b/nixos/tests/home-assistant.nix @@ -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"):