diff options
author | Richard Maw <richard.maw@gmail.com> | 2017-01-02 12:11:56 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@gmail.com> | 2017-01-02 12:34:26 +0000 |
commit | 40b9f6e0280053f1dbefddb3edc5000530b6269e (patch) | |
tree | 7f1585141e5df2bf47efe0a824815e0dc3d54059 /testing/02-commands-rename.yarn | |
parent | e4e4a4fc0dfcce2d2aea47a7f862e1b375e7e098 (diff) | |
download | gitano-40b9f6e0280053f1dbefddb3edc5000530b6269e.tar.gz |
testing: Reformat yarns
We got some weird indentations
because some code editors normalise whitespace
and do so to different levels.
This also took the opportunity to re-justify the text too.
Diffstat (limited to 'testing/02-commands-rename.yarn')
-rw-r--r-- | testing/02-commands-rename.yarn | 62 |
1 files changed, 33 insertions, 29 deletions
diff --git a/testing/02-commands-rename.yarn b/testing/02-commands-rename.yarn index dcef14a..bf0d922 100644 --- a/testing/02-commands-rename.yarn +++ b/testing/02-commands-rename.yarn @@ -1,45 +1,49 @@ <!-- -*- markdown -*- --> - SCENARIO rename content - GIVEN a standard instance - WHEN testinstance adminkey runs copy gitano-admin public/testrepo - THEN server-side public/testrepo has identical refs to gitano-admin + SCENARIO rename content + + GIVEN a standard instance + WHEN testinstance adminkey runs copy gitano-admin public/testrepo + THEN server-side public/testrepo has identical refs to gitano-admin When a repository is renamed it does not modify any of the refs. - WHEN testinstance adminkey runs rename public/testrepo public/testrepo2 - THEN server-side public/testrepo2 has identical refs to gitano-admin - FINALLY the instance is torn down + WHEN testinstance adminkey runs rename public/testrepo public/testrepo2 + THEN server-side public/testrepo2 has identical refs to gitano-admin + + FINALLY the instance is torn down - SCENARIO rename permissions - GIVEN a standard instance - AND testinstance using adminkey has patched gitano-admin with personal-repo-create.patch - GIVEN a unix user called alice - AND alice has keys called main - WHEN testinstance, using adminkey, adds user alice, using alice main + SCENARIO rename permissions - WHEN alice main runs create personal/alice/testrepo - WHEN alice main runs create personal/alice/testrepo2 - AND alice main runs ls - THEN stdout contains personal/alice/testrepo - AND stdout contains personal/alice/testrepo2 + GIVEN a standard instance + AND testinstance using adminkey has patched gitano-admin with personal-repo-create.patch + GIVEN a unix user called alice + AND alice has keys called main + WHEN testinstance, using adminkey, adds user alice, using alice main - WHEN alice main, expecting failure, runs rename personal/alice/testrepo personal/alice/testrepo2 - THEN stderr contains CRIT: Destination location is in use + WHEN alice main runs create personal/alice/testrepo + WHEN alice main runs create personal/alice/testrepo2 + AND alice main runs ls + THEN stdout contains personal/alice/testrepo + AND stdout contains personal/alice/testrepo2 - WHEN alice main, expecting failure, runs rename personal/alice/testrepo3 personal/alice/testrepo4 - THEN stderr contains CRIT: Cannot rename a repository which does not exist + WHEN alice main, expecting failure, runs rename personal/alice/testrepo personal/alice/testrepo2 + THEN stderr contains CRIT: Destination location is in use + + WHEN alice main, expecting failure, runs rename personal/alice/testrepo3 personal/alice/testrepo4 + THEN stderr contains CRIT: Cannot rename a repository which does not exist If a user is not permitted to see a repository they can't rename it, and it does not reveal the existence of the repository. - WHEN alice main, expecting failure, runs rename personal/alice/testrepo gitano-admin - THEN stderr contains CRIT: Ruleset denied action. - AND stderr does not contain CRIT: Destination location is in use + WHEN alice main, expecting failure, runs rename personal/alice/testrepo gitano-admin + THEN stderr contains CRIT: Ruleset denied action. + AND stderr does not contain CRIT: Destination location is in use + + WHEN alice main, expecting failure, runs rename testrepo personal/alice/gitano-admin + THEN stderr contains CRIT: The ruleset didn't provide access. + AND stderr does not contain ERROR: Cannot rename testrepo as it does not exist - WHEN alice main, expecting failure, runs rename testrepo personal/alice/gitano-admin - THEN stderr contains CRIT: The ruleset didn't provide access. - AND stderr does not contain ERROR: Cannot rename testrepo as it does not exist - FINALLY the instance is torn down + FINALLY the instance is torn down |