@@ -155,12 +155,12 @@ var _ = Describe("odo generic", func() {
155
155
By ("checking the JSON output" , func () {
156
156
odoVersion = helper .Cmd ("odo" , "version" , "-o" , "json" ).ShouldPass ().Out ()
157
157
Expect (helper .IsJSON (odoVersion )).To (BeTrue ())
158
- helper .JsonPathSatisfies (odoVersion , "version" , MatchRegexp (reJSONVersion ))
158
+ helper .JsonPathSatisfiesAll (odoVersion , "version" , MatchRegexp (reJSONVersion ))
159
159
helper .JsonPathExist (odoVersion , "gitCommit" )
160
160
if podman {
161
- helper .JsonPathSatisfies (odoVersion , "podman.client.version" , MatchRegexp (reJSONVersion ), Equal (helper .GetPodmanVersion ()))
161
+ helper .JsonPathSatisfiesAll (odoVersion , "podman.client.version" , MatchRegexp (reJSONVersion ), Equal (helper .GetPodmanVersion ()))
162
162
} else {
163
- helper .JsonPathSatisfies (odoVersion , "cluster.kubernetes.version" , MatchRegexp (reJSONVersion ))
163
+ helper .JsonPathSatisfiesAll (odoVersion , "cluster.kubernetes.version" , MatchRegexp (reJSONVersion ))
164
164
serverURL := oc .GetCurrentServerURL ()
165
165
helper .JsonPathContentIs (odoVersion , "cluster.serverURL" , serverURL )
166
166
if ! helper .IsKubernetesCluster () {
@@ -169,7 +169,7 @@ var _ = Describe("odo generic", func() {
169
169
// A blank serverVersion might indicate a user permission error on certain clusters (observed with a developer account on Prow nightly jobs)
170
170
m = Not (m )
171
171
}
172
- helper .JsonPathSatisfies (odoVersion , "cluster.openshift" , m )
172
+ helper .JsonPathSatisfiesAll (odoVersion , "cluster.openshift" , m )
173
173
}
174
174
}
175
175
})
@@ -205,10 +205,10 @@ var _ = Describe("odo generic", func() {
205
205
By ("checking JSON output" , func () {
206
206
odoVersion := helper .Cmd ("odo" , "version" , "--client" , "-o" , "json" ).ShouldPass ().Out ()
207
207
Expect (helper .IsJSON (odoVersion )).To (BeTrue ())
208
- helper .JsonPathSatisfies (odoVersion , "version" , MatchRegexp (reJSONVersion ))
208
+ helper .JsonPathSatisfiesAll (odoVersion , "version" , MatchRegexp (reJSONVersion ))
209
209
helper .JsonPathExist (odoVersion , "gitCommit" )
210
- helper .JsonPathSatisfies (odoVersion , "cluster" , BeEmpty ())
211
- helper .JsonPathSatisfies (odoVersion , "podman" , BeEmpty ())
210
+ helper .JsonPathSatisfiesAll (odoVersion , "cluster" , BeEmpty ())
211
+ helper .JsonPathSatisfiesAll (odoVersion , "podman" , BeEmpty ())
212
212
})
213
213
})
214
214
})
0 commit comments