summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhillip Smyth <phillip.smyth@codethink.co.uk>2017-10-16 16:44:39 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2017-10-17 17:15:27 +0100
commit83296f7da093e0d785b98fc59ad11dbc468eab58 (patch)
tree2bb7f270f992ef152ad751c7806bb095e0d4460d
parentd96589da86b22a842f44de7e3e1fa38439e4e10c (diff)
downloadgitano-83296f7da093e0d785b98fc59ad11dbc468eab58.tar.gz
Added test for renaming self
-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
==============