diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-03-04 20:31:02 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-03-04 20:31:02 +0200 |
commit | 90fb24716a5c3e79428aaf4c44513730b5fd4aca (patch) | |
tree | ee9e2d33560143144c19fbe7a21267e5ded5ef69 | |
parent | f5eb8067dcd1644f489efbaa9ba96d48497c3b5c (diff) | |
download | git.liw.fi-ruleset-tests-90fb24716a5c3e79428aaf4c44513730b5fd4aca.tar.gz |
Rdorder for clafity
-rw-r--r-- | 000.yarn | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -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, []) |