ContainerImage.Pinniped/internal/controller
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
..
apicerts Fix the name of the API Service updater controller in the log messages 2022-09-26 12:37:34 -07:00
authenticator Accept both old and new cert error strings on MacOS in test assertions 2023-01-20 15:01:36 -08:00
conditionsutil New controller watches OIDCClients and updates validation Conditions 2022-06-17 13:11:26 -04:00
impersonatorconfig Upgrade the linter and fix all new linter warnings 2022-08-24 14:45:55 -07:00
issuerconfig Upgrade the linter and fix all new linter warnings 2022-08-24 14:45:55 -07:00
kubecertagent Code changes to support Kube 0.26 deps 2023-01-18 14:39:22 -08:00
supervisorconfig update copyright to 2023 in files changed by this PR 2023-01-17 15:54:16 -08:00
supervisorstorage Upgrade project Go dependencies 2022-12-14 08:47:16 -08:00
controller_test.go Clean this test up a trivial amount using `require.Implementsf()`. 2020-12-17 08:38:16 -06:00
utils.go Upstream Watcher Controller Syncs less often by adjusting its filters 2020-12-18 15:41:18 -08:00