@@ -63,8 +63,8 @@ Feature: Vehicle Inspection API Management
6363 @get @by_id @sunny_day
6464 Scenario : Successfully retrieve a vehicle inspection by ID
6565 Given the following vehicle inspections exist:
66- | testid | vehicle . model |
67- | 1001 | Corolla |
66+ | json |
67+ | {" testid ": 1001 , " vehicle ": {" model ": " Corolla "}} |
6868 When I send a GET request to "/api/inspections/id/1001"
6969 Then the response status code should be 200
7070 And the response should contain "testid" : 1001
@@ -136,7 +136,10 @@ Feature: Vehicle Inspection API Management
136136 | REPLACE | true | 2007 | 2008 |
137137
138138 @post @load_stream @sunny_day
139- Scenario : Successfully load a stream of vehicle inspections with different update strategies and futz options
139+ Scenario : Successfully delete a vehicle inspection
140+ Given the following vehicle inspections exist:
141+ | json |
142+ | {"testid ": 2007 } |
140143 When I send a POST request to "/api/inspections?updateStrategy=UPDATEWITHHISTORY&futz=true" with the payload:
141144 """
142145 [
@@ -173,11 +176,11 @@ Feature: Vehicle Inspection API Management
173176 @get @by_model @sunny_day
174177 Scenario Outline : Successfully retrieve vehicle inspections by model with pagination
175178 Given the following vehicle inspections exist:
176- | testid | vehicle . model |
177- | 2002 | Focus |
178- | 2004 | Focus |
179- | 2006 | Focus |
180- | 2008 | Focus |
179+ | json |
180+ | {" testid ": 2002 , " vehicle ": {" model ": " Focus "}} |
181+ | {" testid ": 2004 , " vehicle ": {" model ": " Focus "}} |
182+ | {" testid ": 2006 , " vehicle ": {" model ": " Focus "}} |
183+ | {" testid ": 2008 , " vehicle ": {" model ": " Focus "}} |
181184 When I send a GET request to "/api/inspections/model/<model>?page=<page>&size=<size>"
182185 Then the response status code should be 200
183186 And the response should contain "content" with <expected_count> items
@@ -204,9 +207,9 @@ Feature: Vehicle Inspection API Management
204207 @post @mongo_query @sunny_day
205208 Scenario : Successfully execute a native MongoDB query with sorting and filter on non-indexed field
206209 Given the following vehicle inspections exist:
207- | testid | vehicle . make |
208- | 1001 | Toyota |
209- | 2002 | Ford |
210+ | json |
211+ | {" testid ": 1001 , " vehicle ": {" make ": " Toyota "}} |
212+ | {" testid ": 2002 , " vehicle ": {" make ": " Ford "}} |
210213 When I send a POST request to "/api/inspections/query" with the payload:
211214 """
212215 {
@@ -225,9 +228,9 @@ Feature: Vehicle Inspection API Management
225228 @post @mongo_query @sunny_day
226229 Scenario : Successfully execute a native MongoDB query with sorting and filter on indexed field
227230 Given the following vehicle inspections exist:
228- | testid | vehicle . model |
229- | 1001 | Corolla |
230- | 2002 | Focus |
231+ | json |
232+ | {" testid ": 1001 , " vehicle ": {" model ": " Corolla "}} |
233+ | {" testid ": 2002 , " vehicle ": {" model ": " Focus "}} |
231234 When I send a POST request to "/api/inspections/query" with the payload:
232235 """
233236 {
@@ -258,9 +261,9 @@ Feature: Vehicle Inspection API Management
258261 @get @stream_json @sunny_day
259262 Scenario : Successfully stream all vehicle inspections as JSON
260263 Given the following vehicle inspections exist:
261- | testid | vehicle . make |
262- | 1001 | Toyota |
263- | 2002 | Ford |
264+ | json |
265+ | {" testid ": 1001 , " vehicle ": {" make ": " Toyota "}} |
266+ | {" testid ": 2002 , " vehicle ": {" make ": " Ford "}} |
264267 When I send a GET request to "/api/inspections/json"
265268 Then the response status code should be 200
266269 And the "Content-Type" header should be "application/json"
@@ -270,9 +273,9 @@ Feature: Vehicle Inspection API Management
270273 @get @stream_json_native @sunny_day
271274 Scenario : Successfully stream all vehicle inspections as native JSON
272275 Given the following vehicle inspections exist:
273- | testid | vehicle . make |
274- | 1001 | Toyota |
275- | 2002 | Ford |
276+ | json |
277+ | {" testid ": 1001 , " vehicle ": {" make ": " Toyota "}} |
278+ | {" testid ": 2002 , " vehicle ": {" make ": " Ford "}} |
276279 When I send a GET request to "/api/inspections/jsonnative"
277280 Then the response status code should be 200
278281 And the "Content-Type" header should be "application/json"
@@ -281,9 +284,9 @@ Feature: Vehicle Inspection API Management
281284
282285 @get @as_of @sunny_day
283286 Scenario : Successfully retrieve vehicle inspection history as of a specific date
284- Given the following vehicle inspections exist and have historical data as of "2023-10-25 12:00:00" :
285- | testid | vehicle . make |
286- | 2006 | Ford |
287+ Given the following vehicle inspections exist:
288+ | json |
289+ | {" testid ": 2006 , " vehicle ": {" make ": " Ford ", " model ": " Focus "}} |
287290 And I wait for 1 second
288291 And I capture the current timestamp
289292 And I wait for 1 second
0 commit comments