Skip to content

Commit 0de28ca

Browse files
committed
Remove futz from tests as it make them fail in a small percentage of cases.
1 parent 18cb0e2 commit 0de28ca

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

memex/src/test/java/com/johnlpage/memex/cucumber/steps/InspectionsPreConditionSteps.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ private void deleteInspectionsViaApi(List<Long> idsToDelete) throws JsonProcessi
129129
try {
130130
log.info("apiBaseUrl: {}", apiBaseUrl);
131131
ResponseEntity<String> response = restClient.post()
132-
.uri(apiBaseUrl + "/api/inspections?updateStrategy=UPDATEWITHHISTORY&futz=true")
132+
.uri(apiBaseUrl + "/api/inspections?updateStrategy=UPDATEWITHHISTORY")
133133
.contentType(MediaType.APPLICATION_JSON)
134134
.body(jsonPayload)
135135
.retrieve()
@@ -158,7 +158,7 @@ private void upsertInspectionsViaApi(List<VehicleInspection> inspections) throws
158158

159159
try {
160160
ResponseEntity<String> response = restClient.post()
161-
.uri(apiBaseUrl + "/api/inspections?updateStrategy=UPDATEWITHHISTORY&futz=true")
161+
.uri(apiBaseUrl + "/api/inspections?updateStrategy=UPDATEWITHHISTORY")
162162
.contentType(MediaType.APPLICATION_JSON)
163163
.body(jsonPayload)
164164
.retrieve()

memex/src/test/resources/features/inspections.rest.streams.feature

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Feature: Vehicle Inspection REST API - Data Streaming Capabilities
44
It includes tests for loading multiple inspections in a single stream request and for streaming out existing inspection data in JSON format.
55

66
@post @load_stream @sunny_day
7-
Scenario Outline: Successfully load a stream of vehicle inspections with different update strategies and futz options
7+
Scenario Outline: Successfully load a stream of vehicle inspections with different update strategies
88
Given the vehicle inspections in range 10001-10008 do not exist
9-
When I send a POST request to "/api/inspections?updateStrategy=<strategy>&futz=<futz>" with the payload:
9+
When I send a POST request to "/api/inspections?updateStrategy=<strategy>" with the payload:
1010
"""
1111
[
1212
{
@@ -54,18 +54,18 @@ Feature: Vehicle Inspection REST API - Data Streaming Capabilities
5454
And the response should contain "success": true
5555

5656
Examples:
57-
| strategy | futz | id1 | id2 |
58-
| REPLACE | false | 10001 | 10002 |
59-
| UPDATE | false | 10003 | 10004 |
60-
| UPDATEWITHHISTORY | true | 10005 | 10006 |
61-
| REPLACE | true | 10007 | 10008 |
57+
| strategy | id1 | id2 |
58+
| REPLACE | 10001 | 10002 |
59+
| UPDATE | 10003 | 10004 |
60+
| UPDATEWITHHISTORY | 10005 | 10006 |
61+
| REPLACE | 10007 | 10008 |
6262

6363
@post @load_stream @sunny_day
6464
Scenario: Successfully delete a vehicle inspection
6565
Given the following vehicle inspections exist:
6666
| vehicleinspection |
6767
| {"testid": 10007} |
68-
When I send a POST request to "/api/inspections?updateStrategy=UPDATEWITHHISTORY&futz=true" with the payload:
68+
When I send a POST request to "/api/inspections?updateStrategy=UPDATEWITHHISTORY" with the payload:
6969
"""
7070
[
7171
{

0 commit comments

Comments
 (0)