diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2017-06-18 20:22:20 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2017-07-08 15:41:55 +0100 |
commit | 5d81846da0d3f827235e2fdd209541e005dfafb7 (patch) | |
tree | acb31822e1a29740081cc15b529f78cde9f910f8 /testing | |
parent | 7db114a85daad6a628493712df06d71372400d69 (diff) | |
download | gitano-5d81846da0d3f827235e2fdd209541e005dfafb7.tar.gz |
Augment scenario to check reowning of repos
Diffstat (limited to 'testing')
-rw-r--r-- | testing/02-commands-user.yarn | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/02-commands-user.yarn b/testing/02-commands-user.yarn index 54f402b..e372918 100644 --- a/testing/02-commands-user.yarn +++ b/testing/02-commands-user.yarn @@ -74,6 +74,18 @@ but it is possible to rename users. THEN stdout contains ^robert THEN stdout does not contain ^bob +In addition, you might want rename a user which owns repositories. When that +is done, Gitano must re-own the repository in order that rules using the +project's owner work properly. + + WHEN testinstance adminkey runs create testrepo robert + AND testinstance adminkey runs config testrepo show project.owner + THEN stdout contains robert + + WHEN testinstance adminkey runs user rename robert bob --force + AND testinstance adminkey runs config testrepo show project.owner + THEN stdout contains bob + FINALLY the instance is torn down Deleting users |