mirror of https://github.com/jetkvm/kvm.git
fix: TestValidSSHKeyTypes
This commit is contained in:
parent
c77110fff9
commit
c900f6dff4
|
@ -125,7 +125,13 @@ func TestValidateSSHKey(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestValidSSHKeyTypes(t *testing.T) {
|
func TestValidSSHKeyTypes(t *testing.T) {
|
||||||
expectedTypes := []string{"ssh-rsa", "ssh-ed25519", "ssh-ecdsa"}
|
expectedTypes := []string{
|
||||||
|
"ssh-rsa",
|
||||||
|
"ssh-ed25519",
|
||||||
|
"ecdsa-sha2-nistp256",
|
||||||
|
"ecdsa-sha2-nistp384",
|
||||||
|
"ecdsa-sha2-nistp521",
|
||||||
|
}
|
||||||
|
|
||||||
if len(ValidSSHKeyTypes) != len(expectedTypes) {
|
if len(ValidSSHKeyTypes) != len(expectedTypes) {
|
||||||
t.Errorf("ValidSSHKeyTypes length = %d, expected %d", len(ValidSSHKeyTypes), len(expectedTypes))
|
t.Errorf("ValidSSHKeyTypes length = %d, expected %d", len(ValidSSHKeyTypes), len(expectedTypes))
|
||||||
|
|
Loading…
Reference in New Issue