summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2017-06-18 20:22:20 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2017-07-08 15:41:55 +0100
commit5d81846da0d3f827235e2fdd209541e005dfafb7 (patch)
treeacb31822e1a29740081cc15b529f78cde9f910f8 /testing
parent7db114a85daad6a628493712df06d71372400d69 (diff)
downloadgitano-5d81846da0d3f827235e2fdd209541e005dfafb7.tar.gz
Augment scenario to check reowning of repos
Diffstat (limited to 'testing')
-rw-r--r--testing/02-commands-user.yarn12
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