ContainerImage.Pinniped/test/integration
Matt Moyer 6a0dc1e2bb
Fix an issue in TestE2EFullIntegration groups assertions.
The group claims read from the session cache file are loaded as `[]interface{}` (slice of empty interfaces) so when we previously did a `groups, _ := idTokenClaims[oidc.DownstreamGroupsClaim].([]string)`, then `groups` would always end up nil.

The solution I tried here was to convert the expected value to also be `[]interface{}` so that `require.Equal(t, ...)` does the right thing.

This bug only showed up in our acceptance environnment against Okta, since we don't have any other integration test coverage with IDPs that pass a groups claim.

Signed-off-by: Matt Moyer <moyerm@vmware.com>
2021-01-14 21:06:02 -06:00
..
cli_test.go Close the right pipe output in runPinnipedLoginOIDC. 2020-12-15 12:34:50 -06:00
client_test.go Reduce client cert TTL back to 5 mins 2020-11-13 13:30:02 -05:00
concierge_api_serving_certs_test.go Changing references from 1.19 to 1.20 2021-01-07 15:25:47 -08:00
concierge_availability_test.go Rename integration test env variables 2020-10-09 10:11:47 -07:00
concierge_credentialissuerconfig_test.go Changing references from 1.19 to 1.20 2021-01-07 15:25:47 -08:00
concierge_credentialrequest_test.go Changing references from 1.19 to 1.20 2021-01-07 15:25:47 -08:00
concierge_kubecertagent_test.go Concierge controllers add labels to all created resources 2020-10-15 10:14:23 -07:00
concierge_kubectl_test.go Rename pinniped-server -> pinniped-concierge 2020-10-06 14:59:03 -04:00
e2e_test.go Fix an issue in TestE2EFullIntegration groups assertions. 2021-01-14 21:06:02 -06:00
kube_api_discovery_test.go Rename off of main 2020-12-16 14:27:09 -08:00
kubeclient_test.go test/integration: add test helper to avoid race conditions 2021-01-14 10:19:35 -05:00
supervisor_discovery_test.go Changing references from 1.19 to 1.20 2021-01-07 15:25:47 -08:00
supervisor_healthz_test.go Make the supervisor healthz endpoint public 2020-10-21 15:24:58 -07:00
supervisor_login_test.go Allow arrays of type interface 2021-01-14 17:21:41 -05:00
supervisor_secrets_test.go Changing references from 1.19 to 1.20 2021-01-07 15:25:47 -08:00
supervisor_storage_garbage_collection_test.go Sync garbage collector controller less often by adjusting its filters 2020-12-18 09:36:28 -08:00
supervisor_storage_test.go Supervisor storage garbage collection controller enabled in production 2020-12-11 15:21:34 -08:00
supervisor_upstream_test.go Changing references from 1.19 to 1.20 2021-01-07 15:25:47 -08:00