Skip to content

Commit

Permalink
Add to test suite
Browse files Browse the repository at this point in the history
Signed-off-by: Philipp Gillé <philipp@heetch.com>
  • Loading branch information
philippgille committed Jun 1, 2023
1 parent 37c406a commit dbb11f5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/assertions/ShouldJSONEqual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: test ShouldJSONEqual
vars:
json_expected: '{"a":1,"b":"foo"}'
testcases:
- name: test assertion
steps:
- type: exec
script: "echo '{ \"b\" : \"foo\", \"a\" : 1 }'"
assertions:
- result.systemout ShouldJSONEqual "{{.json_expected}}"

0 comments on commit dbb11f5

Please sign in to comment.