@@ -3647,7 +3647,7 @@ var _ = Describe("Testing OperatorPolicy", Ordered, Label("supports-hosted"), fu
3647
3647
const (
3648
3648
opPolYAML = "../resources/case38_operator_install/operator-policy-no-group-enforce.yaml"
3649
3649
opPolName = "oppol-no-group-enforce"
3650
- latestQuay310 = "quay-operator.v3.10.6 "
3650
+ latestQuay310 = "quay-operator.v3.10.7 "
3651
3651
)
3652
3652
3653
3653
BeforeEach (func () {
@@ -3658,18 +3658,18 @@ var _ = Describe("Testing OperatorPolicy", Ordered, Label("supports-hosted"), fu
3658
3658
})
3659
3659
3660
3660
It ("Should start compliant" , func (ctx SpecContext ) {
3661
- Eventually (func (ctx SpecContext ) string {
3662
- csv , _ := targetK8sDynamic .Resource (gvrClusterServiceVersion ).Namespace (opPolTestNS ).
3661
+ Eventually (func (ctx SpecContext ) ( map [ string ] interface {}, error ) {
3662
+ csv , err := targetK8sDynamic .Resource (gvrClusterServiceVersion ).Namespace (opPolTestNS ).
3663
3663
Get (ctx , latestQuay310 , metav1.GetOptions {})
3664
3664
3665
- if csv == nil {
3666
- return ""
3665
+ if csv == nil || err != nil {
3666
+ return map [ string ] interface {}{}, err
3667
3667
}
3668
3668
3669
- reason , _ , _ := unstructured .NestedString (csv .Object , "status" , "reason " )
3669
+ status , _ , _ := unstructured .NestedMap (csv .Object , "status" )
3670
3670
3671
- return reason
3672
- }, olmWaitTimeout , 5 , ctx ).Should (Equal ( "InstallSucceeded" ))
3671
+ return status , nil
3672
+ }, olmWaitTimeout , 5 , ctx ).Should (HaveKeyWithValue ( "reason" , "InstallSucceeded" ))
3673
3673
3674
3674
check (
3675
3675
opPolName ,
0 commit comments