summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2015-10-28 14:59:38 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2015-10-28 15:03:04 +0000
commiteddcfb9975334bd9e8b2578e45f8ab789a926887 (patch)
tree9b9486fb9a6529563eb48582d679ea9344885dfc
parentcf560ce4c214df197da2024f905f6d952ef95331 (diff)
downloadgitano-richardipsum/fix-empty-cmd-bug.tar.bz2
yarns: Test behaviour when no commands givenrichardipsum/fix-empty-cmd-bug
-rw-r--r--testing/01-basics.yarn13
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/01-basics.yarn b/testing/01-basics.yarn
index 3029f16..5667851 100644
--- a/testing/01-basics.yarn
+++ b/testing/01-basics.yarn
@@ -104,3 +104,16 @@ the `alice` user cannot see it.
THEN stdout contains RW \ anotherrepo
WHEN alice main runs ls
THEN stdout does not contain anotherrepo
+
+Basic command handling
+----------------------
+
+Users interact by running commands.
+Normally when using SSH without a command you get a shell,
+however this isn't the standard use of SSH,
+so when you haven't provided a command you get an error message.
+
+ SCENARIO handling empty commands
+ GIVEN a standard instance
+ WHEN testinstance adminkey, expecting failure, runs
+ THEN stderr contains FATAL: No command provided, cannot continue