summaryrefslogtreecommitdiff
path: root/000.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-03-05 14:14:09 +0200
committerLars Wirzenius <liw@liw.fi>2017-03-05 14:14:09 +0200
commit2d4a63b00968ac5473e3b82b7c45e3f742a8e707 (patch)
tree8a2a4144f2fbdf41f96a298a4584bd13c59ed563 /000.yarn
parent3f765912c0a63f7c81a58f32c44507300608b973 (diff)
downloadgit.liw.fi-ruleset-tests-2d4a63b00968ac5473e3b82b7c45e3f742a8e707.tar.gz
Add scenario to verify Steven can't push release tags
Diffstat (limited to '000.yarn')
-rw-r--r--000.yarn22
1 files changed, 22 insertions, 0 deletions
diff --git a/000.yarn b/000.yarn
index feaa34f..609cd14 100644
--- a/000.yarn
+++ b/000.yarn
@@ -240,6 +240,19 @@ groups, and respositories.
THEN ian can push qvarn with tags
FINALLY admin removes things that were created
+ SCENARIO Steven can't tag a Qvarn release
+ WHEN admin creates user steven
+ AND admin creates group qvarn-readers
+ AND admin creates group qvarn-writers
+ AND admin adds steven to qvarn-readers
+ AND admin creates repository qvarn
+ AND admin sets qvarn config readers to qvarn-readers
+ AND admin sets qvarn config writers to qvarn-writers
+ THEN steven can clone qvarn
+ WHEN steven tags qvarn master branch with qvarn-2.0
+ THEN steven cannot push qvarn with tags
+ FINALLY admin removes things that were created
+
SCENARIO Steven can't clone ops/secrets
WHEN admin creates user steven
AND admin creates repository ops/secrets
@@ -362,6 +375,15 @@ groups, and respositories.
['push', '--all', 'origin'], cwd=dirname)
helper.assertNotEqual(exit, 0)
+ IMPLEMENTS THEN (\S+) cannot push (\S+) with tags
+ user = helper.get_next_match()
+ repo = helper.get_next_match()
+ dirname = helper.local_checkout_dirname(user, repo)
+ exit, out, err = helper.git_as(
+ user,
+ ['push', '--tags', 'origin'], cwd=dirname)
+ helper.assertNotEqual(exit, 0)
+
IMPLEMENTS WHEN (\S+) merges (\S+) branch (\S+) to (\S+)
user = helper.get_next_match()
repo = helper.get_next_match()