test: satisfy DWH credential vet gate
This commit is contained in:
@@ -83,7 +83,7 @@ func TestVerifyV1RejectsNonCanonicalValues(t *testing.T) {
|
||||
[]byte(string(material.Value) + "." + material.KeyID),
|
||||
[]byte(string(material.Value) + "="),
|
||||
[]byte(" " + string(material.Value)),
|
||||
append(bytes.Repeat([]byte{'a'}, MaxHeaderBytes+1)),
|
||||
bytes.Repeat([]byte{'a'}, MaxHeaderBytes+1),
|
||||
} {
|
||||
if keyID, ok := VerifyV1(value, material.Digest); ok || keyID != "" {
|
||||
t.Fatalf("VerifyV1(%q) = (%q, %t), want (\"\", false)", value, keyID, ok)
|
||||
|
||||
Reference in New Issue
Block a user