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

nest exec plugin assertions under assert field #6

Merged
merged 1 commit into from
Jul 28, 2023
Merged

Conversation

jaypipes
Copy link
Member

I'm aligning all of the plugin assertion fields with a name of assert. This commit changes the first plugin, exec to nest the exit_code, err and out assertion structs under an assert field object in the Spec.

So, instead of this:

tests:
 - exec: echo cat
   out:
     is: cat

you now do this:

tests:
 - exec: echo cat
   assert:
     out:
       is: cat

I'm changing the http plugin's assertions block from response to assert and the kube plugin's assertions block from kube.assert to just assert in followup PRs in those repositories.

I'm aligning all of the plugin assertion fields with a name of `assert`.
This commit changes the first plugin, `exec` to nest the `exit_code`,
`err` and `out` assertion structs under an `assert` field object in the
Spec.

So, instead of this:

```yaml
tests:
 - exec: echo cat
   out:
     is: cat
```

you now do this:

```yaml
tests:
 - exec: echo cat
   assert:
     out:
       is: cat
```

I'm changing the `http` plugin's assertions block from `response` to
`assert` and the `kube` plugin's assertions block from `kube.assert` to
just `assert` in followup PRs in those repositories.

Signed-off-by: Jay Pipes <jaypipes@gmail.com>
Copy link
Member

@a-hilaly a-hilaly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment on lines +13 to +14
assert:
exit_code: 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting..

@a-hilaly a-hilaly merged commit 824a3c3 into main Jul 28, 2023
6 checks passed
@jaypipes jaypipes deleted the nest-exec-asserts branch July 30, 2023 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants