summaryrefslogtreecommitdiff
path: root/testing/02-commands-copy.yarn
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@gmail.com>2016-11-05 13:35:56 +0000
committerRichard Maw <richard.maw@gmail.com>2016-11-05 13:41:50 +0000
commit2de8fa0cb660c4f2a5dc44352d26a137842e88e2 (patch)
tree5c911c1e02e633a0f8c42ebd224e84122ece583e /testing/02-commands-copy.yarn
parent1bbafc3b96079c76877a39b2a00698fa86b06bb0 (diff)
downloadgitano-2de8fa0cb660c4f2a5dc44352d26a137842e88e2.tar.gz
testing: Test copy by having alice create the personal repo
This is closer to the usual use-cases where we expect this to happen.
Diffstat (limited to 'testing/02-commands-copy.yarn')
-rw-r--r--testing/02-commands-copy.yarn7
1 files changed, 3 insertions, 4 deletions
diff --git a/testing/02-commands-copy.yarn b/testing/02-commands-copy.yarn
index 08ad6a0..72afdd6 100644
--- a/testing/02-commands-copy.yarn
+++ b/testing/02-commands-copy.yarn
@@ -42,10 +42,9 @@ so all copies by other users will fail.
Users may copy repositories where they may write to the destination path,
but will be unable to do so if the repository already exists.
- GIVEN testinstance adminkey has copied public/testrepo to personal/alice/testrepo
- AND testinstance adminkey has set the owner of public/testrepo to alice
- AND testinstance adminkey has set the owner of personal/alice/testrepo to alice
- WHEN alice main, expecting failure, runs copy public/testrepo personal/alice/testrepo
+ GIVEN testinstance using adminkey has patched rules with personal-repo-create.patch
+ WHEN alice main runs create personal/alice/testrepo
+ AND alice main, expecting failure, runs copy public/testrepo personal/alice/testrepo
THEN stderr contains ERROR: Repository personal/alice/testrepo already exists
Users may not copy to paths they may not write to