let quarkus generate the documentation

This commit is contained in:
Athou
2025-07-28 07:33:58 +02:00
parent 947c1f562f
commit c49c31a44e
49 changed files with 314 additions and 1198 deletions

View File

@@ -20,8 +20,8 @@ class DocumentationIT {
@Test
void documentationAvailable() {
Page page = context.newPage();
page.navigate("http://localhost:8085/#/api");
PlaywrightAssertions.assertThat(page.getByText("Download OpenAPI specification:")).isVisible();
page.navigate("http://localhost:8085/api-documentation");
PlaywrightAssertions.assertThat(page.getByText("CommaFeed API 1.0.0 OAS")).isVisible();
}
}

View File

@@ -12,7 +12,7 @@ import io.restassured.RestAssured;
class CompressionIT {
@ParameterizedTest
@ValueSource(strings = { "/rest/server/get", "/openapi.json" })
@ValueSource(strings = { "/rest/server/get", "/" })
void servedWithCompression(String path) {
RestAssured.given().when().get(path).then().statusCode(200).header(HttpHeaders.CONTENT_ENCODING, "gzip");
}

View File

@@ -10,7 +10,7 @@ import io.restassured.RestAssured;
class StaticFilesIT {
@ParameterizedTest
@ValueSource(strings = { "/", "/openapi.json", "/openapi.yaml" })
@ValueSource(strings = { "/", "/openapi" })
void servedWithoutCache(String path) {
RestAssured.given().when().get(path).then().statusCode(200).header("Cache-Control", "no-cache");
}