diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2014-03-26 15:53:04 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2014-03-26 15:53:04 +0000 |
commit | f808ef26b0028c3aa9c52f287eea96f62cd87bbd (patch) | |
tree | bb8449f303b948597a6add39712b02d773730cf6 | |
parent | b1a78b3f8bcd51b59f28b03dd6bbb9cb124e89a6 (diff) | |
download | lorry-controller-f808ef26b0028c3aa9c52f287eea96f62cd87bbd.tar.gz |
Fix test for empty l-c.conf
-rw-r--r-- | yarns.webapp/060-validation.yarn | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/yarns.webapp/060-validation.yarn b/yarns.webapp/060-validation.yarn index 144c1a1..79fc306 100644 --- a/yarns.webapp/060-validation.yarn +++ b/yarns.webapp/060-validation.yarn @@ -51,11 +51,12 @@ the `lorry-controller.conf` file doesn't actually exist. THEN response matches "Configuration has been updated" AND STATEDB is empty -Add an empty configuration file. This should still work. +Add an empty configuration file. This is different from a file +containing an empty JSON list. It should be treated as an error. - GIVEN an empty lorry-controller.conf in CONFGIT + GIVEN a lorry-controller.conf in CONFGIT containing "" WHEN admin makes request POST /1.0/read-configuration with dummy=value - THEN response matches "Configuration has been updated" + THEN response matches "ERROR" AND STATEDB is empty Add a syntactically invalid JSON file. |