summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testing/02-commands-user.yarn19
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/02-commands-user.yarn b/testing/02-commands-user.yarn
index e372918..1c2ca33 100644
--- a/testing/02-commands-user.yarn
+++ b/testing/02-commands-user.yarn
@@ -88,6 +88,25 @@ project's owner work properly.
FINALLY the instance is torn down
+Renaming Self
+=============
+
+It is possible to rename yourself depending on the rules that are set
+
+ SCENARIO rename self
+ GIVEN a standard instance
+ AND testinstance, using adminkey, adds a new user bob, with a key called bobskey
+
+ WHEN testinstance adminkey runs group adduser gitano-admin bob
+ AND bob bobskey runs user rename bob robert --force
+ THEN the output contains SSH authorised key file updated
+ AND the output contains Committed: Rename user bob to robert
+ WHEN testinstance adminkey runs user list
+ THEN stdout contains ^robert
+ AND stdout does not contain ^bob
+
+ FINALLY the instance is torn down
+
Deleting users
==============