Skip to content

Commit

Permalink
test/e2e: Allow eventual consistency in deployment
Browse files Browse the repository at this point in the history
Since the net-attach-def's deployment is not dependant on the deployment
of the net-attach-def's CRD (by Multus) - e2e test must allow for the
deployment to eventually settle before checking deployment.

Signed-off-by: Ram Lavi <[email protected]>
  • Loading branch information
RamLavi committed Aug 7, 2024
1 parent e56a15c commit 1e7b6c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/workflow/deployment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var _ = Describe("NetworkAddonsConfig", func() {
testConfigCreate(gvk, configSpec, components)

// Make sure that deployed components remain up and running
CheckConfigCondition(gvk, ConditionAvailable, ConditionTrue, CheckImmediately, time.Minute)
CheckConfigCondition(gvk, ConditionAvailable, ConditionTrue, 10*time.Second, time.Minute)
},
Entry(
"Empty config",
Expand Down Expand Up @@ -485,7 +485,7 @@ func checkConfigChange(gvk schema.GroupVersionKind, components []Component, whil
CheckConfigCondition(gvk, ConditionProgressing, ConditionTrue, 5*time.Minute, CheckDoNotRepeat)
// Wait until Available condition is reported. It may take a few minutes the first time
// we are pulling component images to the Node
CheckConfigCondition(gvk, ConditionAvailable, ConditionTrue, 15*time.Minute, CheckDoNotRepeat)
CheckConfigCondition(gvk, ConditionAvailable, ConditionTrue, 15*time.Minute, 10*time.Second)
CheckConfigCondition(gvk, ConditionProgressing, ConditionFalse, CheckImmediately, CheckDoNotRepeat)

// Check that all requested components have been deployed
Expand Down

0 comments on commit 1e7b6c1

Please sign in to comment.