gdt-dev / gdt

Go Declarative Testing
Apache License 2.0
4 stars 2 forks source link

nest `exec` plugin assertions under `assert` field #6

Closed jaypipes closed 1 year ago

jaypipes commented 1 year ago

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.