summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-03-04 16:45:12 +0200
committerLars Wirzenius <liw@liw.fi>2017-03-04 16:45:12 +0200
commit5c25683f5b4b1401cf778e994f30c2df021d8d7e (patch)
treedf427e22190c86ccaa1a96c27a22e24053788649
parent1c35fe3db29a928894a0bffcb1b060fe1c2ece0a (diff)
downloadgit.liw.fi-ruleset-tests-5c25683f5b4b1401cf778e994f30c2df021d8d7e.tar.gz
Add users to groups
-rw-r--r--000.yarn10
1 files changed, 7 insertions, 3 deletions
diff --git a/000.yarn b/000.yarn
index 0744635..7cf5120 100644
--- a/000.yarn
+++ b/000.yarn
@@ -214,15 +214,15 @@ groups, and respositories.
AND we create group otherdevs
AND we create group staff
-<!--
-
WHEN we add ian to qvarndevs
AND we add tina to qvarndevs
- AND we add gabriells to qvarnguests
+ AND we add gabriella to qvarnguests
AND we add olive to ops
AND we add tina to otherdevs
AND we add steven to staff
+<!--
+
WHEN we create repository qvarn
AND we create repository ops/secrets
AND we create repository ops/ansible
@@ -327,3 +327,7 @@ Use case: Steven updates internal wiki.
token = last_line.split()[-1]
helper.gitano('group del {} {}'.format(group, token))
+ IMPLEMENTS WHEN we add (\S+) to (\S+)
+ user = helper.get_next_match()
+ group = helper.get_next_match()
+ output = helper.gitano('group adduser {} {}'.format(group, user))