Skip to content

successCriteria involving json arrays? #2874

Description

@shah-jh

(How) can I define a successCriteria for say: https://api.github.com/repos/octocat/boysenberry-repo-1/branches to check if there is a master branch in the response?

ie the equivalent of the following:

curl -s https://api.github.com/repos/octocat/boysenberry-repo-1/branches \
| jq -e 'any(.[]; .name == "master")'

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions