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:
parent
276dff5772
commit
ec21fc8595
@ -134,6 +134,7 @@ func TestSupervisorOIDCDiscovery(t *testing.T) {
|
|||||||
badConfig := library.CreateTestOIDCProvider(ctx, t, badIssuer)
|
badConfig := library.CreateTestOIDCProvider(ctx, t, badIssuer)
|
||||||
requireStatus(t, client, ns, badConfig.Name, v1alpha1.InvalidOIDCProviderStatus)
|
requireStatus(t, client, ns, badConfig.Name, v1alpha1.InvalidOIDCProviderStatus)
|
||||||
requireDiscoveryEndpointsAreNotFound(t, supervisorScheme, supervisorAddress, badIssuer)
|
requireDiscoveryEndpointsAreNotFound(t, supervisorScheme, supervisorAddress, badIssuer)
|
||||||
|
requireDeletingOIDCProviderConfigCausesDiscoveryEndpointsToDisappear(t, badConfig, client, ns, supervisorScheme, supervisorAddress, badIssuer)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user