1+ @json_inspection
12Feature : Test json inspection payload
23 In order to verify my json response
34 As a developper
@@ -8,7 +9,9 @@ Feature: Test json inspection payload
89 """
910 {
1011 "foo": "bar",
11- "foofoo": true,
12+ "footrue": true,
13+ "foofalse": false,
14+ "foonull": null,
1215 "fooint": 1337,
1316 "foos": [
1417 {"foo": "bar", "bar": "bar"},
@@ -26,7 +29,9 @@ Feature: Test json inspection payload
2629
2730 Scenario : Json nodes should be equal to specific values
2831 Then the JSON node "foo" should be equal to "bar"
29- And the JSON node "foofoo" should be equal to "true"
32+ And the JSON node "footrue" should be equal to "true"
33+ And the JSON node "foofalse" should be equal to "false"
34+ And the JSON node "foonull" should be equal to "null"
3035 And the JSON node "fooint" should be equal to "1337"
3136 And the JSON node "foos[0].foo" should be equal to "bar"
3237 And the JSON node "fooo.foo" should be equal to "bar"
@@ -53,7 +58,9 @@ Feature: Test json inspection payload
5358
5459 Scenario : Json nodes should exist
5560 Then the JSON node "foo" should exist
56- And the JSON node "foofoo" should exist
61+ And the JSON node "footrue" should exist
62+ And the JSON node "foofalse" should exist
63+ And the JSON node "foonull" should exist
5764 And the JSON node "fooint" should exist
5865 And the JSON node "foos[0].foo" should exist
5966 And the JSON node "foos" should exist
@@ -80,10 +87,18 @@ Feature: Test json inspection payload
8087 "type": "string",
8188 "required": true
8289 },
83- "foofoo ": {
90+ "footrue ": {
8491 "type": "boolean",
8592 "required": true
8693 },
94+ "foofalse": {
95+ "type": "boolean",
96+ "required": true
97+ },
98+ "foonull": {
99+ "type": "null",
100+ "required": true
101+ },
87102 "fooint": {
88103 "type": "integer",
89104 "required": true
@@ -108,7 +123,9 @@ Feature: Test json inspection payload
108123 """
109124 {
110125 "foo": "bar",
111- "foofoo": true,
126+ "footrue": true,
127+ "foofalse": false,
128+ "foonull": null,
112129 "fooint": 1337,
113130 "foos": [
114131 {"foo": "bar", "bar": "bar"},
0 commit comments