We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d83024 commit 70a6853Copy full SHA for 70a6853
1 file changed
rootfs/api/tests/test_key.py
@@ -43,6 +43,12 @@
43
"pSPf7VWhYbJ753csQ= testing"
44
)
45
46
+ED25519_PUBKEY = (
47
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIORIdG868fEBUKoEqSQZFKfSLoHkSBmW2uXX"
48
+ "GaZKEuus testing"
49
+)
50
+
51
52
BAD_KEY = (
53
"ssh-rsa foo_bar"
54
@@ -103,6 +109,9 @@ def test_rsa_key(self):
103
109
def test_ecdsa_key(self):
104
110
self._check_key(ECDSA_PUBKEY)
105
111
112
+ def test_ed25519_key(self):
113
+ self._check_key(ED25519_PUBKEY)
114
106
115
def test_bad_key(self):
107
116
response = self._check_bad_key(BAD_KEY)
108
117
self.assertEqual(response.data, {'public': ['Key contains invalid base64 chars']})
0 commit comments