From 90fb24716a5c3e79428aaf4c44513730b5fd4aca Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 4 Mar 2017 20:31:02 +0200 Subject: Rdorder for clafity --- 000.yarn | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/000.yarn b/000.yarn index 07d058d..93270b1 100644 --- a/000.yarn +++ b/000.yarn @@ -197,13 +197,16 @@ 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 + SCENARIO Ian can make a bug fix in 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 + WHEN ian create qvarn branch bugfix + AND ian changes qvarn branch bugfix + THEN ian can push qvarn branch bugfix FINALLY admin removes things that were created SCENARIO everyone can clone a public repository @@ -239,6 +242,12 @@ groups, and respositories. helper.append_to_list('repositories', repo) output = helper.gitano(None, 'create {}'.format(repo)) + IMPLEMENTS WHEN admin sets (\S+) config (\S+) to (\S+) + repo = helper.get_next_match() + key = helper.get_next_match() + value = helper.get_next_match() + helper.gitano(None, 'config {} set {} {}'.format(repo, key, value)) + IMPLEMENTS THEN (\S+) can clone (\S+) user = helper.get_next_match() repo = helper.get_next_match() @@ -253,12 +262,6 @@ groups, and respositories. 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() - value = helper.get_next_match() - helper.gitano(None, 'config {} set {} {}'.format(repo, key, value)) - IMPLEMENTS FINALLY admin removes things that were created def iter(var, prefix): items = helper.get_variable(var, []) -- cgit v1.2.1