summaryrefslogtreecommitdiff
path: root/000.yarn
diff options
context:
space:
mode:
Diffstat (limited to '000.yarn')
-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()