summaryrefslogtreecommitdiff
path: root/yarns.webapp/060-validation.yarn
diff options
context:
space:
mode:
Diffstat (limited to 'yarns.webapp/060-validation.yarn')
-rw-r--r--yarns.webapp/060-validation.yarn7
1 files changed, 7 insertions, 0 deletions
diff --git a/yarns.webapp/060-validation.yarn b/yarns.webapp/060-validation.yarn
index 82c957d..144c1a1 100644
--- a/yarns.webapp/060-validation.yarn
+++ b/yarns.webapp/060-validation.yarn
@@ -58,6 +58,13 @@ Add an empty configuration file. This should still work.
THEN response matches "Configuration has been updated"
AND STATEDB is empty
+Add a syntactically invalid JSON file.
+
+ GIVEN a lorry-controller.conf in CONFGIT containing "blah blah blah"
+ WHEN admin makes request POST /1.0/read-configuration with dummy=value
+ THEN response matches "ERROR"
+ AND STATEDB is empty
+
Clean up at the end.
FINALLY WEBAPP terminates