Skip to content

Commit

Permalink
Remove outdated test
Browse files Browse the repository at this point in the history
  • Loading branch information
fedinskiy committed Nov 14, 2024
1 parent 1f858d4 commit 380d155
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,24 +143,6 @@ public void http2Server() throws InterruptedException {
assertThat(done.getCount(), equalTo(0L));
}

@Test
@DisplayName("Non-application endpoint move to /q/")
@EnabledOnQuarkusVersion(version = "1\\..*", reason = "Redirection is no longer supported in 2.x")
public void nonAppRedirections() {
List<String> endpoints = Arrays.asList("/openapi", "/swagger-ui", "/metrics/base", "/metrics/application",
"/metrics/vendor", "/metrics", "/health/group", "/health/well", "/health/ready", "/health/live",
"/health");

for (String endpoint : endpoints) {
getApp().given().redirects().follow(false).get(ROOT_PATH + endpoint)
.then().statusCode(HttpStatus.SC_MOVED_PERMANENTLY)
.and().header("Location", containsString("/q" + endpoint));

getApp().given().get(ROOT_PATH + endpoint)
.then().statusCode(in(Arrays.asList(HttpStatus.SC_OK, HttpStatus.SC_NO_CONTENT)));
}
}

@Test
public void microprofileHttpClientRedirection() {
io.restassured.response.Response health = getApp().given().get("api/client");
Expand Down

0 comments on commit 380d155

Please sign in to comment.