Merge pull request #104416 from liggitt/go117-certificates

Update unit tests to handle go1.17 certificate parsing error messages

Kubernetes-commit: f805f5588beb1ee1057a678a61ecc1cadf736000
This commit is contained in:
Kubernetes Publisher 2021-08-17 17:04:07 -07:00
commit 97ea982c37
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ MIIDGTCCAgGgAwIBAgIUOS2M
}, },
}, },
user: &defaultUser, user: &defaultUser,
errRegex: "unable to load root certificates: failed to parse certificate: asn1: syntax error: data truncated", errRegex: "unable to load root certificates: failed to parse certificate: (asn1: syntax error: data truncated|x509: malformed certificate)",
}, },
{ {
test: "user with invalid client certificate path", test: "user with invalid client certificate path",