summaryrefslogtreecommitdiff
path: root/git.liw.fi.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2013-10-08 19:48:59 +0100
committerLars Wirzenius <liw@liw.fi>2013-10-08 19:48:59 +0100
commit1e69db8e6e7f17c1278e170bd1410e9fb18210eb (patch)
tree2e7c60d47852b1c5fc13fe9fd462c717451b72ff /git.liw.fi.yarn
parent27a4934b62881279618785b49e97e9730c35c67d (diff)
downloadliw-gitano-acl-test-suite-1e69db8e6e7f17c1278e170bd1410e9fb18210eb.tar.gz
Verify that cgit shows public repos
Diffstat (limited to 'git.liw.fi.yarn')
-rw-r--r--git.liw.fi.yarn18
1 files changed, 18 insertions, 0 deletions
diff --git a/git.liw.fi.yarn b/git.liw.fi.yarn
index 1e009fb..5c662ee 100644
--- a/git.liw.fi.yarn
+++ b/git.liw.fi.yarn
@@ -85,6 +85,7 @@ be able to remove the repository.
AND admin can clone tstrepo using ssh
AND tstusr can see repository tstrepo
AND tstusr can clone tstrepo using ssh
+ AND cgit shows repository tstrepo
WHEN tstusr attempts to remove repository tstrepo
THEN attempt failed with error matching "You may not destroy repositories you do not own"
@@ -95,6 +96,7 @@ be able to remove the repository.
AND admin can't clone tstrepo using ssh
AND tstusr can't see repository tstrepo
AND tstusr can't clone tstrepo using ssh
+ AND cgit doesn't show repository tstrepo
FINALLY remove repository tstrepo on server
AND remove user tstusr on server
@@ -299,3 +301,19 @@ can try.
IMPLEMENTS WHEN (\S+) attempts to remove repository (\S+)
attempt destroy_repo "$MATCH_1" "$MATCH_2"
+
+Cgit access
+-----------
+
+Verify that cgit shows a repository.
+
+ IMPLEMENTS THEN cgit shows repository (\S+)
+ cgit_shows "$MATCH_1"
+
+Verify cgit doesn't show a repository.
+
+ IMPLEMENTS THEN cgit doesn't show repository (\S+)
+ if cgit_shows "$MATCH_1"
+ then
+ die "cgi shows $MATCH_1 but shouldn't"
+ fi