Fix failing test

main
Jan Dittberner 2 years ago
parent 47d5b2afff
commit 2e343498af

@ -119,7 +119,6 @@ algorithm: "EC"`,
func TestCaCertificateEntry_UnmarshalYAML(t *testing.T) { func TestCaCertificateEntry_UnmarshalYAML(t *testing.T) {
data := `{ data := `{
"label":"root",
"key-info": { "key-info": {
"algorithm":"EC", "algorithm":"EC",
"ecc-curve":"P-521" "ecc-curve":"P-521"
@ -136,11 +135,11 @@ func TestCaCertificateEntry_UnmarshalYAML(t *testing.T) {
} }
assert.Equal(t, CaCertificateEntry{ assert.Equal(t, CaCertificateEntry{
Label: "root",
KeyInfo: &PrivateKeyInfo{ KeyInfo: &PrivateKeyInfo{
Algorithm: x509.ECDSA, Algorithm: x509.ECDSA,
EccCurve: elliptic.P521(), EccCurve: elliptic.P521(),
}, },
CommonName: "My Little Test Root CA", CommonName: "My Little Test Root CA",
Storage: "default",
}, entry) }, entry)
} }

Loading…
Cancel
Save