summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2013-08-25 14:57:24 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2013-08-25 14:57:24 +0100
commitb2532d86d95fa8ad9d21b7c31685d73da129485b (patch)
treedf797ffbe27e6aeb089add2ff7bcedab1ba12b4f
parent59d1d18716527350ccefbfb8683b281639a98ca5 (diff)
downloadgitano-b2532d86d95fa8ad9d21b7c31685d73da129485b.tar.bz2
Add another ls scenario
-rw-r--r--testing/02-commands-ls.yarn17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/02-commands-ls.yarn b/testing/02-commands-ls.yarn
index 8ead9da..6a6178c 100644
--- a/testing/02-commands-ls.yarn
+++ b/testing/02-commands-ls.yarn
@@ -19,3 +19,20 @@ repositories.
WHEN testinstance adminkey runs ls
THEN stdout contains RW gitano-admin
AND stderr is empty
+
+General access control for ls
+=============================
+
+If you have no read or write access to a repository, it should not show up
+when you run `ls`.
+
+ SCENARIO No access means no show in ls
+ GIVEN a standard instance
+ AND testinstance has keys called other
+ WHEN testinstance, using adminkey, adds user other, using testinstance other
+ AND testinstance adminkey runs create stoat
+ AND testinstance other runs ls
+ THEN stdout does not contain stoat
+ AND stderr is empty
+
+TODO: Add more tests when we have rule control to govern things a little more.