diff options
-rw-r--r-- | 000.yarn | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -197,7 +197,10 @@ 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 create users, groups, repositories + ASSUMING only the gitano-admin repository exists WHEN we run gitano whoami THEN we are in group gitano-admin @@ -234,6 +237,8 @@ groups, and respositories. AND we set ops/ansible config writers to ops AND we set intrawiki config writers to staff +--> + <!-- Now we can start defining use cases. @@ -273,6 +278,8 @@ Use case: Steven updates internal wiki. --> +<!-- + FINALLY remove user ian AND remove user olive AND remove user steven @@ -292,8 +299,17 @@ Use case: Steven updates internal wiki. AND remove repository intrawiki AND remove repository otherproject +--> + # Scenario step implementations + IMPLEMENTS ASSUMING only the gitano-admin repository exists + output = helper.gitano('ls') + print 'ls output:' + print output + lines = [x for x in output.splitlines() if 'gitano-admin' not in x] + helper.assertEqual(lines, []) + IMPLEMENTS WHEN we run gitano (.+) args = helper.get_next_match() whoami_output = helper.gitano(args) |