diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2017-01-02 14:27:57 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2017-01-02 14:27:57 +0000 |
commit | e2d36d9ea5b0ff1b59b33300c2174b95b9d1b562 (patch) | |
tree | 466dbfaeefbb081ebf7c5588ecf203022b7712a3 /testing/02-commands-copy.yarn | |
parent | 2b35f1709bfafc56fc5f9c416da277ba63c61e43 (diff) | |
download | gitano-e2d36d9ea5b0ff1b59b33300c2174b95b9d1b562.tar.gz |
Complete cleanups that Richard started
Diffstat (limited to 'testing/02-commands-copy.yarn')
-rw-r--r-- | testing/02-commands-copy.yarn | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/testing/02-commands-copy.yarn b/testing/02-commands-copy.yarn index 89a1d0a..b1a8b82 100644 --- a/testing/02-commands-copy.yarn +++ b/testing/02-commands-copy.yarn @@ -15,40 +15,40 @@ This requires many round trips and sending the entire repository's contents across the internet twice, so there's use for server-side clone operation. - SCENARIO server-side clone - GIVEN a standard instance + SCENARIO server-side clone + GIVEN a standard instance Users may copy repositories they can read to paths they can write to. - WHEN testinstance adminkey runs copy gitano-admin public/testrepo - THEN server-side public/testrepo has identical refs to gitano-admin - AND server-side public/testrepo has no missing objects + WHEN testinstance adminkey runs copy gitano-admin public/testrepo + THEN server-side public/testrepo has identical refs to gitano-admin + AND server-side public/testrepo has no missing objects Users may not copy repositories they can to read to paths they cannot write to. - GIVEN a unix user called alice - AND alice has keys called main - WHEN testinstance, using adminkey, adds user alice, using alice main + GIVEN a unix user called alice + AND alice has keys called main + WHEN testinstance, using adminkey, adds user alice, using alice main In the default instance only the admin user may create repositories, so all copies by other users will fail. - GIVEN testinstance adminkey has set the owner of public/testrepo to alice - WHEN alice main, expecting failure, runs copy public/testrepo personal/testinstance/ - THEN stderr contains FATAL: Not authorised + GIVEN testinstance adminkey has set the owner of public/testrepo to alice + WHEN alice main, expecting failure, runs copy public/testrepo personal/testinstance/ + THEN stderr contains FATAL: Not authorised 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 using adminkey has patched gitano-admin 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 + GIVEN testinstance using adminkey has patched gitano-admin 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 and are not informed if the path already exists if they cannot read it. - WHEN alice main, expecting failure, runs copy user/alice/testrepo gitano-admin - THEN stderr does not contain ERROR: Repository gitano-admin already exists + WHEN alice main, expecting failure, runs copy user/alice/testrepo gitano-admin + THEN stderr does not contain ERROR: Repository gitano-admin already exists - FINALLY the instance is torn down + FINALLY the instance is torn down |