diff options
Diffstat (limited to 'yarns.webapp/060-validation.yarn')
-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. |