ContainerImage.Pinniped/internal/upstreamldap
Ryan Richard c6e4133c5e Accept both old and new cert error strings on MacOS in test assertions
Used this as an opportunity to refactor how some tests were
making assertions about error strings.

New test helpers make it easy for an error string to be expected as an
exact string, as a string built using sprintf, as a regexp, or as a
string built to include the platform-specific x509 error string.

All of these helpers can be used in a single `wantErr` field of a test
table. They can be used for both unit tests and integration tests.

Co-authored-by: Benjamin A. Petersen <ben@benjaminapetersen.me>
2023-01-20 15:01:36 -08:00
..
upstreamldap_test.go Accept both old and new cert error strings on MacOS in test assertions 2023-01-20 15:01:36 -08:00
upstreamldap.go Create username scope, required for clients to get username in ID token 2022-08-08 16:29:22 -07:00