From dbb11f57f68bbb57d3bf29e3032548a30349d520 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Gille=CC=81?= Date: Thu, 1 Jun 2023 21:03:10 +0200 Subject: [PATCH] Add to test suite MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Philipp GilleĢ --- tests/assertions/ShouldJSONEqual.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/assertions/ShouldJSONEqual.yml diff --git a/tests/assertions/ShouldJSONEqual.yml b/tests/assertions/ShouldJSONEqual.yml new file mode 100644 index 00000000..791c53a0 --- /dev/null +++ b/tests/assertions/ShouldJSONEqual.yml @@ -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}}"