From f5eb8067dcd1644f489efbaa9ba96d48497c3b5c Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 4 Mar 2017 20:29:21 +0200 Subject: Add scenario for public repos --- 000.yarn | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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() -- cgit v1.2.1