Skip to content

Commit

Permalink
Fix: failing API test
Browse files Browse the repository at this point in the history
Two API tests interfered after rebase du to usage of
same routing profile under different conditions.
  • Loading branch information
Sascha Fendrich committed Jan 20, 2025
1 parent bbfd683 commit 289bbe5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ public ResultTest() {
addParameter("bikeProfile", "cycling-regular");
addParameter("carProfile", "driving-car");
addParameter("footProfile", "foot-walking");
addParameter("hikeProfile", "foot-hiking");
addParameter("ptProfile", "public-transport");
addParameter("carCustomProfile", "driving-car-no-preparations");
}
Expand Down Expand Up @@ -4085,7 +4086,7 @@ void testCustomProfileBlockTunnelsRejectedWhenDisallowed() {
given()
.config(JSON_CONFIG_DOUBLE_NUMBERS)
.headers(CommonHeaders.jsonContent)
.pathParam("profile", getParameter("footProfile"))
.pathParam("profile", getParameter("hikeProfile"))
.body(body.toString())
.when()
.post(getEndPointPath() + "/{profile}")
Expand Down
6 changes: 3 additions & 3 deletions ors-api/src/test/resources/application-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,15 +247,13 @@ ors:
WaySurfaceType:
HillIndex:
TrailDifficulty:
service:
allow_custom_models: false
foot-hiking:
enabled: true
encoder_name: foot-hiking
build:
encoder_options:
block_fords: false
enable_custom_models: false
enable_custom_models: true
ext_storages:
GreenIndex:
filepath: ./src/test/files/green_streets_hd.csv
Expand All @@ -267,6 +265,8 @@ ors:
WaySurfaceType:
HillIndex:
TrailDifficulty:
service:
allow_custom_models: false
wheelchair:
enabled: true
encoder_name: wheelchair
Expand Down

0 comments on commit 289bbe5

Please sign in to comment.