test/integration: more logging to track down flakes

Signed-off-by: Andrew Keesler <akeesler@vmware.com>
This commit is contained in:
Aram Price 2020-12-15 16:49:24 -05:00 committed by Andrew Keesler
parent 056afc17bd
commit 0bd428e45d
No known key found for this signature in database
GPG Key ID: 27CE0444346F9413
2 changed files with 6 additions and 0 deletions

View File

@ -599,6 +599,9 @@ func requireStatus(t *testing.T, client pinnipedclientset.Interface, ns, name st
var err error
assert.Eventually(t, func() bool {
opc, err = client.ConfigV1alpha1().OIDCProviders(ns).Get(ctx, name, metav1.GetOptions{})
if err != nil {
t.Logf("error trying to get OIDCProvider: %s", err.Error())
}
return err == nil && opc.Status.Status == status
}, 10*time.Second, 200*time.Millisecond)
require.NoError(t, err)

View File

@ -169,6 +169,9 @@ func TestSupervisorLogin(t *testing.T) {
var tokenResponse *oauth2.Token
assert.Eventually(t, func() bool {
tokenResponse, err = downstreamOAuth2Config.Exchange(oidcHTTPClientContext, authcode, pkceParam.Verifier())
if err != nil {
t.Logf("error trying to exchange auth code (%s), trying again", err.Error())
}
return err == nil
}, time.Second*5, time.Second*1)
require.NoError(t, err)