summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2015-10-28 15:09:48 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2015-10-30 18:54:37 +0100
commit17bf0c11025e525e843516f5a67cf342082e4bb7 (patch)
tree9b9486fb9a6529563eb48582d679ea9344885dfc
parent7620a6c29292bd80f6d10491db351fe1c2644bf0 (diff)
downloadgitano-17bf0c11025e525e843516f5a67cf342082e4bb7.tar.bz2
yarns: Test behaviour when no commands given
-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