Is it possible to either:
- Store the boolean result of a contains into a variable, e.g:
* def myVariable = foo.response contains
"""
[
{name: "name1",
group: "groupX"
},
{name: "name2",
group: "groupY"
}
]
"""
OR
- Specify a match ... contains that contains "this" || "that", e.g:
def possibility1 = [{name: "name1", group: "groupX"}, {name: "name2", group: "groupY"}]
def possibility2 = [{name: "name1", group: "groupY"}, {name: "name2", group: "groupX"}]
match foo.response contains possibility1 || foo.response contains possibility2