Wait for successful TCR in TestImpersonationProxy.
This test setup should tolerate when the TokenCredentialRequest API isn't quite ready to authenticate the user or issue a cert. Signed-off-by: Matt Moyer <moyerm@vmware.com>
This commit is contained in:
parent
349d3dad83
commit
67d5c91713
@ -142,7 +142,7 @@ func TestImpersonationProxy(t *testing.T) { //nolint:gocyclo // yeah, it's compl
|
|||||||
t.Logf("failed to make TokenCredentialRequest: %s", library.Sdump(err))
|
t.Logf("failed to make TokenCredentialRequest: %s", library.Sdump(err))
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return true
|
return mostRecentTokenCredentialRequestResponse.Status.Credential != nil
|
||||||
}, 5*time.Minute, 5*time.Second)
|
}, 5*time.Minute, 5*time.Second)
|
||||||
|
|
||||||
require.Nil(t, mostRecentTokenCredentialRequestResponse.Status.Message,
|
require.Nil(t, mostRecentTokenCredentialRequestResponse.Status.Message,
|
||||||
|
Loading…
Reference in New Issue
Block a user