File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ Feature: Create-Retrieve-Update-Delete on abstract resource
136
136
Then the response status code should be 204
137
137
And the response should be empty
138
138
139
+ @createSchema
139
140
Scenario : Create a concrete resource with discriminator
140
141
When I add "Content-Type" header equal to "application/ld+json"
141
142
And I send a "POST" request to "/abstract_dummies" with body:
@@ -149,16 +150,16 @@ Feature: Create-Retrieve-Update-Delete on abstract resource
149
150
Then the response status code should be 201
150
151
And the response should be in JSON
151
152
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
152
- And the header "Content-Location" should be equal to "/concrete_dummies/2 "
153
- And the header "Location" should be equal to "/concrete_dummies/2 "
153
+ And the header "Content-Location" should be equal to "/concrete_dummies/1 "
154
+ And the header "Location" should be equal to "/concrete_dummies/1 "
154
155
And the JSON should be equal to:
155
156
"""
156
157
{
157
158
"@context": "/contexts/ConcreteDummy",
158
- "@id": "/concrete_dummies/2 ",
159
+ "@id": "/concrete_dummies/1 ",
159
160
"@type": "ConcreteDummy",
160
161
"instance": "Concrete",
161
- "id": 2 ,
162
+ "id": 1 ,
162
163
"name": "My Dummy"
163
164
}
164
165
"""
You can’t perform that action at this time.
0 commit comments