Skip to content

Commit 9e7cd43

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Add unit test for importing ed25519 ssh key"
2 parents 5cf06bf + 67f79fd commit 9e7cd43

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nova/tests/unit/compute/test_keypairs.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,12 @@ def _check_success(self, mock_notify):
218218
def test_success_ssh(self):
219219
self._check_success()
220220

221+
def test_success_ssh_ed25519(self):
222+
self.pub_key = ('ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFl6u75BTi8xGtSPm'
223+
'1yVJuLE/oMtCOuEMJJnBSuZEdXz')
224+
self.fingerprint = '1a:1d:a7:2c:4c:ff:15:c4:70:13:38:b6:ac:4c:dc:12'
225+
self._check_success()
226+
221227
def test_success_x509(self):
222228
self.keypair_type = keypair_obj.KEYPAIR_TYPE_X509
223229
certif, fingerprint = fake_crypto.get_x509_cert_and_fingerprint()

0 commit comments

Comments
 (0)