ContainerImage.Pinniped/internal
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
..
apiserviceref Use API service as owner ref for cluster scoped resources 2021-02-10 21:52:08 -05:00
authenticators Merge branch 'main' into dynamic_clients 2022-08-26 11:35:35 -07:00
certauthority Upgrade the linter and fix all new linter warnings 2022-08-24 14:45:55 -07:00
clusterhost Introduce clusterhost package to determine whether a cluster has control plane nodes 2021-02-09 11:16:01 -08:00
concierge Code changes to support Kube 0.26 deps 2023-01-18 14:39:22 -08:00
config Stop using pointer pkg functions that were deprecated by dependency bump 2022-12-14 08:47:16 -08:00
constable Save 2 lines by using inline-style comments for Copyright 2020-09-16 10:35:19 -04:00
controller Accept both old and new cert error strings on MacOS in test assertions 2023-01-20 15:01:36 -08:00
controllerinit Upgrade the linter and fix all new linter warnings 2022-08-24 14:45:55 -07:00
controllerlib Code changes to support Kube 0.26 deps 2023-01-18 14:39:22 -08:00
controllermanager Upgrade the linter and fix all new linter warnings 2022-08-24 14:45:55 -07:00
crud Upgrade project Go dependencies 2022-12-14 08:47:16 -08:00
crypto Reduce memory consumption of pinniped-concierge-kube-cert-agent binary 2023-01-13 11:07:42 -08:00
deploymentref Upgrade the linter and fix all new linter warnings 2022-08-24 14:45:55 -07:00
downward Upgrade the linter and fix all new linter warnings 2022-08-24 14:45:55 -07:00
dynamiccert Upgrade the linter and fix all new linter warnings 2022-08-24 14:45:55 -07:00
endpointaddr Add endpointaddr pkg for parsing host+port inputs. 2021-05-25 16:17:26 -05:00
execcredcache Upgrade the linter and fix all new linter warnings 2022-08-24 14:45:55 -07:00
fositestorage Upgrade project Go dependencies 2022-12-14 08:47:16 -08:00
fositestoragei More adjustments based on PR feedback 2021-04-27 16:54:26 -07:00
groupsuffix Enhance Kube middleware to rewrite API group of ownerRefs on update verb 2022-09-21 21:30:44 -07:00
here Save 2 lines by using inline-style comments for Copyright 2020-09-16 10:35:19 -04:00
httputil Upgrade the linter and fix all new linter warnings 2022-08-24 14:45:55 -07:00
issuer dynamiccert: split into serving cert and CA providers 2021-03-15 12:24:07 -04:00
kubeclient Code changes to support Kube 0.26 deps 2023-01-18 14:39:22 -08:00
leaderelection Upgrade the linter and fix all new linter warnings 2022-08-24 14:45:55 -07:00
localuserauthenticator Upgrade the linter and fix all new linter warnings 2022-08-24 14:45:55 -07:00
mocks update copyright to 2023 in files changed by this PR 2023-01-17 15:54:16 -08:00
net/phttp Update to github.com/golangci/golangci-lint/cmd/golangci-lint@v1.44.2 2022-03-08 12:28:09 -08:00
oidc update copyright to 2023 in files changed by this PR 2023-01-17 15:54:16 -08:00
oidcclientsecretstorage Upgrade project Go dependencies 2022-12-14 08:47:16 -08:00
ownerref Upgrade the linter and fix all new linter warnings 2022-08-24 14:45:55 -07:00
plog Upgrade the linter and fix all new linter warnings 2022-08-24 14:45:55 -07:00
psession Create username scope, required for clients to get username in ID token 2022-08-08 16:29:22 -07:00
psets Code changes to support Kube 0.26 deps 2023-01-18 14:39:22 -08:00
registry Stop using pointer pkg functions that were deprecated by dependency bump 2022-12-14 08:47:16 -08:00
secret All controller unit tests should not cancel context until test is over 2021-03-04 17:26:01 -08:00
supervisor Create OIDCClientSecretRequest returns metadata 2022-09-21 15:17:10 -07:00
testutil Accept both old and new cert error strings on MacOS in test assertions 2023-01-20 15:01:36 -08:00
upstreamldap Accept both old and new cert error strings on MacOS in test assertions 2023-01-20 15:01:36 -08:00
upstreamoidc Accept both old and new cert error strings on MacOS in test assertions 2023-01-20 15:01:36 -08:00
valuelesscontext valuelesscontext: make unit tests more clear 2021-04-30 10:43:29 -04:00