Fix failing test

This commit is contained in:
Jan Dittberner 2022-04-20 09:03:00 +02:00
parent 47d5b2afff
commit 2e343498af

View file

@ -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)
} }