summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-03-26 15:53:04 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-03-26 15:53:04 +0000
commitf808ef26b0028c3aa9c52f287eea96f62cd87bbd (patch)
treebb8449f303b948597a6add39712b02d773730cf6
parentb1a78b3f8bcd51b59f28b03dd6bbb9cb124e89a6 (diff)
downloadlorry-controller-f808ef26b0028c3aa9c52f287eea96f62cd87bbd.tar.gz
Fix test for empty l-c.conf
-rw-r--r--yarns.webapp/060-validation.yarn7
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.