Also delete the final OIDCProviderConfig made by an integration test

- It didn't matter before because it would be cleaned up by a
  t.Cleanup() function, but now that we might loop twice it will matter
  during the second time through the loop
This commit is contained in:
Ryan Richard 2020-10-20 15:59:25 -07:00
parent 276dff5772
commit ec21fc8595

View File

@ -134,6 +134,7 @@ func TestSupervisorOIDCDiscovery(t *testing.T) {
badConfig := library.CreateTestOIDCProvider(ctx, t, badIssuer)
requireStatus(t, client, ns, badConfig.Name, v1alpha1.InvalidOIDCProviderStatus)
requireDiscoveryEndpointsAreNotFound(t, supervisorScheme, supervisorAddress, badIssuer)
requireDeletingOIDCProviderConfigCausesDiscoveryEndpointsToDisappear(t, badConfig, client, ns, supervisorScheme, supervisorAddress, badIssuer)
}
}