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

Commits on Jul 28, 2023

  1. nest exec plugin assertions under assert field

    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>
    jaypipes committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    368d3cd View commit details
    Browse the repository at this point in the history