mirror of
https://github.com/smallstep/certificates.git
synced 2024-10-31 03:20:16 +00:00
Fix protobuf enum field type error message comparison test
This commit is contained in:
parent
ebcb6a1d17
commit
55b097a8ec
@ -186,8 +186,8 @@ func TestWebhookAdminResponder_CreateProvisionerWebhook(t *testing.T) {
|
|||||||
Name: "provName",
|
Name: "provName",
|
||||||
}
|
}
|
||||||
ctx := linkedca.NewContextWithProvisioner(context.Background(), prov)
|
ctx := linkedca.NewContextWithProvisioner(context.Background(), prov)
|
||||||
adminErr := admin.NewError(admin.ErrorBadRequestType, `(line 5:13): invalid value for enum type: "UNSUPPORTED"`)
|
adminErr := admin.NewError(admin.ErrorBadRequestType, `(line 5:13): invalid value for enum field kind: "UNSUPPORTED"`)
|
||||||
adminErr.Message = `(line 5:13): invalid value for enum type: "UNSUPPORTED"`
|
adminErr.Message = `(line 5:13): invalid value for enum field kind: "UNSUPPORTED"`
|
||||||
body := []byte(`
|
body := []byte(`
|
||||||
{
|
{
|
||||||
"name": "metadata",
|
"name": "metadata",
|
||||||
|
Loading…
Reference in New Issue
Block a user