about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-08-21 02:27:55 +0200
committerRobin Gloster <mail@glob.in>2018-08-21 19:26:54 +0200
commit33be3c463022748449c46e4027d23ceb3d74671c (patch)
treee2f7b408ba8577d2a3fcaa0f3a99d999b1852ca5 /nixos/tests
parent41c13780cbce8ce5020b36d54150924461272964 (diff)
downloadnixlib-33be3c463022748449c46e4027d23ceb3d74671c.tar
nixlib-33be3c463022748449c46e4027d23ceb3d74671c.tar.gz
nixlib-33be3c463022748449c46e4027d23ceb3d74671c.tar.bz2
nixlib-33be3c463022748449c46e4027d23ceb3d74671c.tar.lz
nixlib-33be3c463022748449c46e4027d23ceb3d74671c.tar.xz
nixlib-33be3c463022748449c46e4027d23ceb3d74671c.tar.zst
nixlib-33be3c463022748449c46e4027d23ceb3d74671c.zip
home-assistant: 0.75.2 -> 0.76.1
Also simplify the way overrides are defined for better readability
and use the opportunity to introduce a packageOverrides option.
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/home-assistant.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/nixos/tests/home-assistant.nix b/nixos/tests/home-assistant.nix
index 0c027eaca619..2d74b59bca46 100644
--- a/nixos/tests/home-assistant.nix
+++ b/nixos/tests/home-assistant.nix
@@ -2,7 +2,8 @@ import ./make-test.nix ({ pkgs, ... }:
 
 let
   configDir = "/var/lib/foobar";
-  apiPassword = "secret";
+  apiPassword = "some_secret";
+  mqttPassword = "another_secret";
 
 in {
   name = "home-assistant";
@@ -33,7 +34,9 @@ in {
             };
             frontend = { };
             http.api_password = apiPassword;
-            mqtt = { }; # Use hbmqtt as broker
+            mqtt = { # Use hbmqtt as broker
+              password = mqttPassword;
+            };
             binary_sensor = [
               {
                 platform = "mqtt";
@@ -62,7 +65,7 @@ in {
 
     # Toggle a binary sensor using MQTT
     $hass->succeed("curl http://localhost:8123/api/states/binary_sensor.mqtt_binary_sensor -H 'x-ha-access: ${apiPassword}' | grep -qF '\"state\": \"off\"'");
-    $hass->waitUntilSucceeds("mosquitto_pub -V mqttv311 -t home-assistant/test -u homeassistant -P '${apiPassword}' -m let_there_be_light");
+    $hass->waitUntilSucceeds("mosquitto_pub -V mqttv311 -t home-assistant/test -u homeassistant -P '${mqttPassword}' -m let_there_be_light");
     $hass->succeed("curl http://localhost:8123/api/states/binary_sensor.mqtt_binary_sensor -H 'x-ha-access: ${apiPassword}' | grep -qF '\"state\": \"on\"'");
 
     # Print log to ease debugging