summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-03-04 20:29:21 +0200
committerLars Wirzenius <liw@liw.fi>2017-03-04 20:29:21 +0200
commitf5eb8067dcd1644f489efbaa9ba96d48497c3b5c (patch)
tree44e099212110c8d0f9edd99039e0d7ae6d204cae
parent04caf681daf43f233192b9f45ffc338205b54f4a (diff)
downloadgit.liw.fi-ruleset-tests-f5eb8067dcd1644f489efbaa9ba96d48497c3b5c.tar.gz
Add scenario for public repos
-rw-r--r--000.yarn14
1 files changed, 13 insertions, 1 deletions
diff --git a/000.yarn b/000.yarn
index 75ece1c..07d058d 100644
--- a/000.yarn
+++ b/000.yarn
@@ -197,14 +197,19 @@ This is going to be a long scenario, but that's just so that we don't
need to re-do the setup. The setup consists of creating test users,
groups, and respositories.
- SCENARIO ian can clone qvarn.git
+ SCENARIO Ian can clone Qvarn
WHEN admin creates user ian
AND admin creates group qvarndevs
AND admin adds ian to qvarndevs
AND admin creates repository qvarn
AND admin sets qvarn config writers to qvarndevs
THEN ian can clone qvarn
+ FINALLY admin removes things that were created
+ SCENARIO everyone can clone a public repository
+ WHEN admin creates repository qvarn
+ AND admin sets qvarn config public to yes
+ THEN we can clone qvarn via the git protocol
FINALLY admin removes things that were created
# Scenario step implementations
@@ -241,6 +246,13 @@ groups, and respositories.
dirname = '{}_{}'.format(user, repo)
helper.git_as(user, ['clone', url, dirname])
+ IMPLEMENTS THEN we can clone (\S+) via the git protocol
+ repo = helper.get_next_match()
+ server = os.environ['GITANO_SERVER']
+ url = 'git://{}/{}'.format(server, repo)
+ dirname = 'anonymouse_{}'.format(repo)
+ cliapp.runcmd(['git', 'clone', url, dirname])
+
IMPLEMENTS WHEN admin sets (\S+) config (\S+) to (\S+)
repo = helper.get_next_match()
key = helper.get_next_match()