Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jq type assertions on constraints #7

Open
johrstrom opened this issue Sep 28, 2018 · 0 comments
Open

jq type assertions on constraints #7

johrstrom opened this issue Sep 28, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@johrstrom
Copy link
Contributor

Just being on time is not enough for an event to be considered successful. This request is to add to the Constraints on the event for jq assertions.

An even could be defined as follows. Where the event must be received in 3 hours, but also should have a status field that is "finished".

<event name="onlyEvent" ok="scheduleEnd" error="email error">
    <constraints>
        <receive-by>3h</receive-by>
        <jq-assertion>.status == "finished"</jq-assertion>
    </constraints>
</event>

This particular feature should at least do == and != assertions. It could do = or ! if that's easily implementable.

@johrstrom johrstrom added the enhancement New feature or request label Sep 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant