diff options
Diffstat (limited to 'testing/02-commands-user.yarn')
-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 |