Skip to content

Commit afd1330

Browse files
author
VikramBedi
committed
increase timeout for iamauthpolicy test
1 parent 7c06a15 commit afd1330

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

test/suites/integration/iamauthpolicy_test.go

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,20 @@ var _ = Describe("IAM Auth Policy", Ordered, func() {
322322
annotationResType: model.ServiceType,
323323
annotationResId: svcId,
324324
}
325-
testK8sPolicy(policy, wantResults)
325+
326+
Eventually(func(g Gomega) (K8sResults, error) {
327+
p := &anv1alpha1.IAMAuthPolicy{}
328+
err := testFramework.Client.Get(ctx, client.ObjectKeyFromObject(policy), p)
329+
if err != nil {
330+
return K8sResults{}, err
331+
}
332+
return K8sResults{
333+
statusReason: GetPolicyStatusReason(p),
334+
annotationResType: p.Annotations[controllers.IAMAuthPolicyAnnotationType],
335+
annotationResId: p.Annotations[controllers.IAMAuthPolicyAnnotationResId],
336+
}, nil
337+
}).WithTimeout(60 * time.Second).WithPolling(time.Second).
338+
Should(Equal(wantResults))
326339
testLatticeSvcPolicy(svcId, vpclattice.AuthTypeAwsIam, policy.Spec.Policy)
327340

328341
testFramework.ExpectDeletedThenNotFound(ctx, policy)

0 commit comments

Comments
 (0)