summaryrefslogtreecommitdiff
path: root/000.yarn
diff options
context:
space:
mode:
Diffstat (limited to '000.yarn')
-rw-r--r--000.yarn17
1 files 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, [])