ContainerImage.Pinniped/internal/testutil
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
..
fakekubeapi Upgrade the linter and fix all new linter warnings 2022-08-24 14:45:55 -07:00
oidctestutil Change some test variable names related to additional claims 2023-01-13 14:59:59 -08:00
testlogger Switch to go.uber.org/zap for JSON formatted logging 2022-05-24 11:17:42 -04:00
tlsserver Remove duplication in secure TLS tests 2022-04-01 10:56:38 -04:00
assertions.go Accept both old and new cert error strings on MacOS in test assertions 2023-01-20 15:01:36 -08:00
certs.go certauthority.go: Refactor issuing client versus server certs 2021-03-12 16:09:37 -08:00
crypto.go Cleanup code via TODOs accumulated during token endpoint work 2020-12-04 10:09:42 -05:00
delete.go Merge branch 'main' into upstream_access_revocation_during_gc 2022-01-14 10:49:22 -08:00
doc.go Allow multiple Pinnipeds to work on same cluster 2021-02-02 15:18:41 -08:00
ioutil.go Upgrade the linter and fix all new linter warnings 2022-08-24 14:45:55 -07:00
kube_server_compatibility.go Fix TestOIDCClientStaticValidation on old servers 2022-06-17 09:04:03 -04:00
loginhtml.go Add LDAP browser flow login failure tests to supervisor_login_test.go 2022-05-10 16:28:08 -07:00
observable_with_informer_option.go Add Go vanity import paths. 2020-09-18 14:56:24 -05:00
observable_with_initial_event_option.go kubecertagent: use initial event for when key can't be found 2020-09-24 16:54:20 -04:00
oidcclient_test.go Add more unit tests for dynamic clients and enhance token exchange 2022-07-20 13:55:56 -07:00
oidcclient.go Create username scope, required for clients to get username in ID token 2022-08-08 16:29:22 -07:00
oidcclientsecretstorage.go Allow dynamic clients to be used in downstream OIDC flows 2022-07-14 09:51:11 -07:00
psession.go Create username scope, required for clients to get username in ID token 2022-08-08 16:29:22 -07:00
roundtrip.go internal/groupsuffix: mutate TokenCredentialRequest's Authenticator 2021-02-10 15:53:44 -05:00
tempdir_go1.14.go Upgrade the linter and fix all new linter warnings 2022-08-24 14:45:55 -07:00
tempdir.go Upgrade the linter and fix all new linter warnings 2022-08-24 14:45:55 -07:00
tlsserver.go Upgrade the linter and fix all new linter warnings 2022-08-24 14:45:55 -07:00
transcript_logger.go Switch to go.uber.org/zap for JSON formatted logging 2022-05-24 11:17:42 -04:00