diff options
author | Phillip Smyth <phillip.smyth@codethink.co.uk> | 2017-10-07 15:57:15 +0100 |
---|---|---|
committer | Phillip Smyth <phillip.smyth@codethink.co.uk> | 2017-10-07 15:57:15 +0100 |
commit | 66ab24a4f21fb0d0978938bb0ad661e12fa25e4c (patch) | |
tree | 856bad582c466d19df6705a59aa44e56169a9fea /testing/02-commands-sshkey.yarn | |
parent | 1228c8dc2b1624c8e8c866107c3768d8a47fad29 (diff) | |
download | gitano-nexus/ed25519.tar.gz |
Ticket: Check for ED25519 support in ssh keynexus/ed25519
Added ED25519 support.
config.lua:
Changed the manual keytype check into a function call from util.lua
usercommand:
Changed the manual keytype check into a function call from util.lua
util.lua:
Added a keycheck function that returns true if an invalid keytype is detected
library.yarn:
Added implementation of createsshkey which uses ED25519 as a parameter
02-commands-sshkey.yarn:
Modified the "ssh key basics" Scenario to create a second key of type ED25519 and test it
Diffstat (limited to 'testing/02-commands-sshkey.yarn')
-rw-r--r-- | testing/02-commands-sshkey.yarn | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/testing/02-commands-sshkey.yarn b/testing/02-commands-sshkey.yarn index da8a309..fc024b4 100644 --- a/testing/02-commands-sshkey.yarn +++ b/testing/02-commands-sshkey.yarn @@ -24,15 +24,20 @@ This information is also shown in `sshkey list`. New keys can be added. - GIVEN testinstance has keys called newkey + GIVEN testinstance has keys called newkey + AND testinstance has keys called edkey of type Ed25519 WHEN testinstance uses their ssh public key called newkey as stdin AND testinstance adminkey runs sshkey add newkey + THEN the output contains SSH authorised key file updated + WHEN testinstance uses their ssh public key called edkey as stdin + AND testinstance adminkey runs sshkey add edkey THEN the output contains SSH authorised key file updated Verify the new keys are listed for the user. WHEN testinstance adminkey runs sshkey list THEN the output contains newkey + AND the output contains edkey We can delete the old key and proceed with the new key in future. @@ -44,6 +49,7 @@ We can delete the old key and proceed with the new key in future. FINALLY the instance is torn down + SSH key tracking ---------------- |