Skip to content

Commit 70a6853

Browse files
committed
chore(tests): add test for ed25519 SSH keys
1 parent 0d83024 commit 70a6853

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

rootfs/api/tests/test_key.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@
4343
"pSPf7VWhYbJ753csQ= testing"
4444
)
4545

46+
ED25519_PUBKEY = (
47+
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIORIdG868fEBUKoEqSQZFKfSLoHkSBmW2uXX"
48+
"GaZKEuus testing"
49+
)
50+
51+
4652
BAD_KEY = (
4753
"ssh-rsa foo_bar"
4854
)
@@ -103,6 +109,9 @@ def test_rsa_key(self):
103109
def test_ecdsa_key(self):
104110
self._check_key(ECDSA_PUBKEY)
105111

112+
def test_ed25519_key(self):
113+
self._check_key(ED25519_PUBKEY)
114+
106115
def test_bad_key(self):
107116
response = self._check_bad_key(BAD_KEY)
108117
self.assertEqual(response.data, {'public': ['Key contains invalid base64 chars']})

0 commit comments

Comments
 (0)