1
+ @json_inspection
1
2
Feature : Test json inspection payload
2
3
In order to verify my json response
3
4
As a developper
@@ -8,7 +9,9 @@ Feature: Test json inspection payload
8
9
"""
9
10
{
10
11
"foo": "bar",
11
- "foofoo": true,
12
+ "footrue": true,
13
+ "foofalse": false,
14
+ "foonull": null,
12
15
"fooint": 1337,
13
16
"foos": [
14
17
{"foo": "bar", "bar": "bar"},
@@ -26,7 +29,9 @@ Feature: Test json inspection payload
26
29
27
30
Scenario : Json nodes should be equal to specific values
28
31
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"
30
35
And the JSON node "fooint" should be equal to "1337"
31
36
And the JSON node "foos[0].foo" should be equal to "bar"
32
37
And the JSON node "fooo.foo" should be equal to "bar"
@@ -53,7 +58,9 @@ Feature: Test json inspection payload
53
58
54
59
Scenario : Json nodes should exist
55
60
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
57
64
And the JSON node "fooint" should exist
58
65
And the JSON node "foos[0].foo" should exist
59
66
And the JSON node "foos" should exist
@@ -80,10 +87,18 @@ Feature: Test json inspection payload
80
87
"type": "string",
81
88
"required": true
82
89
},
83
- "foofoo ": {
90
+ "footrue ": {
84
91
"type": "boolean",
85
92
"required": true
86
93
},
94
+ "foofalse": {
95
+ "type": "boolean",
96
+ "required": true
97
+ },
98
+ "foonull": {
99
+ "type": "null",
100
+ "required": true
101
+ },
87
102
"fooint": {
88
103
"type": "integer",
89
104
"required": true
@@ -108,7 +123,9 @@ Feature: Test json inspection payload
108
123
"""
109
124
{
110
125
"foo": "bar",
111
- "foofoo": true,
126
+ "footrue": true,
127
+ "foofalse": false,
128
+ "foonull": null,
112
129
"fooint": 1337,
113
130
"foos": [
114
131
{"foo": "bar", "bar": "bar"},
0 commit comments