diff options
author | Phillip Smyth <phillip.smyth@codethink.co.uk> | 2017-10-16 16:44:39 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2017-10-17 17:15:27 +0100 |
commit | 83296f7da093e0d785b98fc59ad11dbc468eab58 (patch) | |
tree | 2bb7f270f992ef152ad751c7806bb095e0d4460d /testing | |
parent | d96589da86b22a842f44de7e3e1fa38439e4e10c (diff) | |
download | gitano-83296f7da093e0d785b98fc59ad11dbc468eab58.tar.gz |
Added test for renaming self
Diffstat (limited to 'testing')
-rw-r--r-- | testing/02-commands-user.yarn | 19 |
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 ============== |