summaryrefslogtreecommitdiff
path: root/testing/library.yarn
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@gmail.com>2016-09-24 15:08:59 +0100
committerRichard Maw <richard.maw@gmail.com>2016-09-24 16:43:03 +0100
commit7e2aa5ca31a02480dc202f07c8abf5886c771f99 (patch)
tree36d59204c33469d14dfeade8bbca7e5f55176f04 /testing/library.yarn
parentac9581e00207bc457514f01f7789e3d0d0f78f36 (diff)
downloadgitano-7e2aa5ca31a02480dc202f07c8abf5886c771f99.tar.gz
yarns: Test that you can't trample a repository with copy
Diffstat (limited to 'testing/library.yarn')
-rw-r--r--testing/library.yarn9
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/library.yarn b/testing/library.yarn
index eea9320..695dc62 100644
--- a/testing/library.yarn
+++ b/testing/library.yarn
@@ -104,6 +104,15 @@ Admin repo manipulation
TOKEN=$($GTT runcommand $MATCH_1 $MATCH_2 user del $MATCH_3 2>&1 | $GTT findtoken)
$GTT runcommand $MATCH_1 $MATCH_2 user del $MATCH_3 $TOKEN
+Specific commands
+-----------------
+
+ IMPLEMENTS GIVEN ([a-z][a-z0-9]*) ([a-z][a-z0-9]*) has copied ([^ ]+) to ([^ ]+)
+ $GTT runcommand $MATCH_1 $MATCH_2 copy $MATCH_3 $MATCH_4
+
+ IMPLEMENTS GIVEN ([a-z][a-z0-9]*) ([a-z][a-z0-9]*) has set the owner of ([^ ]+) to ([a-z][a-z0-9]*)
+ $GTT runcommand $MATCH_1 $MATCH_2 config $MATCH_3 set project.owner $MATCH_4
+
Generic utility methods
-----------------------