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

Kubernetes-commit: 0e925f266f78d72ed05a5a2fe48faa5e2a87d107
This commit is contained in:
Jordan Liggitt 2021-08-17 11:24:03 -04:00 committed by Kubernetes Publisher
parent 5012383632
commit bbc4211158
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ MIIDGTCCAgGgAwIBAgIUOS2M
},
},
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",