From 83296f7da093e0d785b98fc59ad11dbc468eab58 Mon Sep 17 00:00:00 2001 From: Phillip Smyth Date: Mon, 16 Oct 2017 16:44:39 +0100 Subject: Added test for renaming self --- testing/02-commands-user.yarn | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'testing') 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 ============== -- cgit v1.2.1