summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorFrederik Rietdijk <freddyrietdijk@fridh.nl>2018-02-03 08:01:50 +0000
committerGitHub <noreply@github.com>2018-02-03 08:01:50 +0000
commitdb58049f75a979a233403bc097746df005d9f305 (patch)
treea654f9dfa60140f206b4ce2e19f5820c1062ac18 /nixos/tests
parentc2b84b27ec38604afd851afe4cad28cfc0754522 (diff)
parent78c2ca326e4320ca9b53d2dc7eca8b385d2681af (diff)
downloadnixpkgs-db58049f75a979a233403bc097746df005d9f305.tar
nixpkgs-db58049f75a979a233403bc097746df005d9f305.tar.gz
nixpkgs-db58049f75a979a233403bc097746df005d9f305.tar.bz2
nixpkgs-db58049f75a979a233403bc097746df005d9f305.tar.lz
nixpkgs-db58049f75a979a233403bc097746df005d9f305.tar.xz
nixpkgs-db58049f75a979a233403bc097746df005d9f305.tar.zst
nixpkgs-db58049f75a979a233403bc097746df005d9f305.zip
Merge pull request #34494 from dotlambda/home-assistant
home-assistant: compute extraComponents from config
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/home-assistant.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/nixos/tests/home-assistant.nix b/nixos/tests/home-assistant.nix
index 0e2fee8e808..5d7e0ec65e7 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");
   '';
 })