Skip to content

Commit 2e83c33

Browse files
authored
Merge branch 'master' into tyx-patch-1
2 parents ed3df5d + 6ba4943 commit 2e83c33

File tree

2 files changed

+31
-6
lines changed

2 files changed

+31
-6
lines changed

features/bootstrap/fixtures/json-schema.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,18 @@
99
"type": "string",
1010
"required": true
1111
},
12-
"foofoo": {
12+
"footrue": {
1313
"type": "boolean",
1414
"required": true
1515
},
16+
"foofalse": {
17+
"type": "boolean",
18+
"required": true
19+
},
20+
"foonull": {
21+
"type": "null",
22+
"required": true
23+
},
1624
"fooint": {
1725
"type": "integer",
1826
"required": true

features/json_inspection.feature

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@json_inspection
12
Feature: 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

Comments
 (0)