@@ -150,7 +150,8 @@ var _ = g.Describe("[sig-auth][Suite:openshift/auth/external-oidc][Serial][Slow]
150150 gomega .Expect (err ).NotTo (o .HaveOccurred (), "should not encounter an error authenticating as keycloak user" )
151151
152152 copiedOC := * oc
153- tokenOC := copiedOC .WithToken (keycloakCli .AccessToken ())
153+ token := keycloakCli .AccessToken ()
154+ tokenOC := copiedOC .WithToken (token )
154155 ssr , err := tokenOC .KubeClient ().AuthenticationV1 ().SelfSubjectReviews ().Create (ctx , & authnv1.SelfSubjectReview {
155156 ObjectMeta : metav1.ObjectMeta {
156157 Name : fmt .Sprintf ("%s-info" , username ),
@@ -495,7 +496,9 @@ func resetAuthentication(ctx context.Context, client *exutil.CLI, original *conf
495496
496497 _ , err = cli .Update (ctx , current , metav1.UpdateOptions {})
497498 if err != nil {
498- return false , err
499+ // Only log the error so we continue to retry until the context has timed out
500+ g .GinkgoLogr .Error (err , "updating authentication resource" )
501+ return false , nil
499502 }
500503
501504 return true , nil
@@ -523,8 +526,8 @@ func waitForRollout(ctx context.Context, client *exutil.CLI) {
523526 }
524527
525528 gomega .Expect (found ).To (o .BeTrue (), "should have found the NodeInstallerProgressing condition" )
526- gomega .Expect (nipCond .Status ).To (o .Equal (operatorv1 .ConditionTrue ), "NodeInstallerProgressing condition should be True" )
527- }).WithTimeout (5 * time .Minute ).WithPolling (10 * time .Second ).Should (o .Succeed (), "should eventually begin rolling out a new revision" )
529+ gomega .Expect (nipCond .Status ).To (o .Equal (operatorv1 .ConditionTrue ), "NodeInstallerProgressing condition should be True" , nipCond )
530+ }).WithTimeout (10 * time .Minute ).WithPolling (20 * time .Second ).Should (o .Succeed (), "should eventually begin rolling out a new revision" )
528531
529532 // Then wait for it to flip back
530533 o .Eventually (func (gomega o.Gomega ) {
@@ -542,6 +545,6 @@ func waitForRollout(ctx context.Context, client *exutil.CLI) {
542545 }
543546
544547 gomega .Expect (found ).To (o .BeTrue (), "should have found the NodeInstallerProgressing condition" )
545- gomega .Expect (nipCond .Status ).To (o .Equal (operatorv1 .ConditionFalse ), "NodeInstallerProgressing condition should be True" )
548+ gomega .Expect (nipCond .Status ).To (o .Equal (operatorv1 .ConditionFalse ), "NodeInstallerProgressing condition should be False" , nipCond )
546549 }).WithTimeout (30 * time .Minute ).WithPolling (30 * time .Second ).Should (o .Succeed (), "should eventually rollout out a new revision successfully" )
547550}
0 commit comments