Skip to content

Commit

Permalink
Wait for actual ConstraintsNotSatisfiable reason
Browse files Browse the repository at this point in the history
This test started failing relatively often. Debugging revealed that the
Subscription was getting into a ResolutionFailed=True condition, but
that it did not have the expected ConstraintsNotSatisfiable reason; it
looked like it was failing to resolve because the connection was refused
to the catalog.

Refs:
 - https://issues.redhat.com/browse/ACM-11414

Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
  • Loading branch information
JustinKuli authored and openshift-merge-bot[bot] committed May 2, 2024
1 parent cf5224b commit d02b4b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/e2e/case38_install_operator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1123,12 +1123,13 @@ var _ = Describe("Testing OperatorPolicy", Ordered, func() {

condType, _, _ := unstructured.NestedString(condMap, "type")
if condType == "ResolutionFailed" {
return condMap["status"]
return condMap["reason"]
}
}

return nil
}, olmWaitTimeout, 5, ctx).Should(Equal("True"))
}, olmWaitTimeout*2, 5, ctx).Should(Equal("ConstraintsNotSatisfiable"))

check(
opPolName,
true,
Expand Down

0 comments on commit d02b4b9

Please sign in to comment.