forked from Archives/Athou_commafeed
let quarkus generate the documentation
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user