summaryrefslogtreecommitdiff
path: root/testing/02-commands-ls.yarn
diff options
context:
space:
mode:
Diffstat (limited to 'testing/02-commands-ls.yarn')
-rw-r--r--testing/02-commands-ls.yarn21
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/02-commands-ls.yarn b/testing/02-commands-ls.yarn
new file mode 100644
index 0000000..8ead9da
--- /dev/null
+++ b/testing/02-commands-ls.yarn
@@ -0,0 +1,21 @@
+<!-- -*- markdown -*- -->
+
+`ls [--verbose|-v] [<pattern>...]`
+==================================
+
+The `ls` command is one of the few which touch every repository in a Gitano
+instance. As such, it can take a while to run. Theoretically it leaks the
+number of Git repositories on the server by virtue of analysis of timing.
+
+Basic operation
+===============
+
+Firstly, we verify the basic operation of ls, that as a gitano-admin we have
+read access (at least) to everything and as such we can list all the
+repositories.
+
+ SCENARIO Basic operation of ls
+ GIVEN a standard instance
+ WHEN testinstance adminkey runs ls
+ THEN stdout contains RW gitano-admin
+ AND stderr is empty