diff options
author | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2018-02-01 13:42:07 +0100 |
---|---|---|
committer | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2018-02-02 09:48:50 +0100 |
commit | 78c2ca326e4320ca9b53d2dc7eca8b385d2681af (patch) | |
tree | e2c1bf9db14fca3f3fd81c474066ee34630bdcbe /nixos/tests/home-assistant.nix | |
parent | 356b5532392a0d6df2c99f28964803d989e31f89 (diff) | |
download | nixlib-78c2ca326e4320ca9b53d2dc7eca8b385d2681af.tar nixlib-78c2ca326e4320ca9b53d2dc7eca8b385d2681af.tar.gz nixlib-78c2ca326e4320ca9b53d2dc7eca8b385d2681af.tar.bz2 nixlib-78c2ca326e4320ca9b53d2dc7eca8b385d2681af.tar.lz nixlib-78c2ca326e4320ca9b53d2dc7eca8b385d2681af.tar.xz nixlib-78c2ca326e4320ca9b53d2dc7eca8b385d2681af.tar.zst nixlib-78c2ca326e4320ca9b53d2dc7eca8b385d2681af.zip |
home-assistant: compute extraComponents from config
Diffstat (limited to 'nixos/tests/home-assistant.nix')
-rw-r--r-- | nixos/tests/home-assistant.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nixos/tests/home-assistant.nix b/nixos/tests/home-assistant.nix index 0e2fee8e808d..5d7e0ec65e73 100644 --- a/nixos/tests/home-assistant.nix +++ b/nixos/tests/home-assistant.nix @@ -17,13 +17,16 @@ in { homeassistant = { name = "Home"; time_zone = "UTC"; + latitude = "0.0"; + longitude = "0.0"; + elevation = 0; }; frontend = { }; http = { }; }; }; }; - }; + }; testScript = '' startAll; @@ -37,5 +40,7 @@ in { $hass->waitForOpenPort(8123); $hass->succeed("curl --fail http://localhost:8123/states"); $hass->succeed("curl --fail http://localhost:8123/api/ | grep 'API running'"); + + $hass->fail("cat ${configDir}/home-assistant.log | grep -qF ERROR"); ''; }) |