mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
enable quarkus compression (compression in dropwizard was enabled by default)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package com.commafeed.integration;
|
||||
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
|
||||
import com.google.common.net.HttpHeaders;
|
||||
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.RestAssured;
|
||||
|
||||
@QuarkusTest
|
||||
class CompressionIT {
|
||||
|
||||
@ParameterizedTest
|
||||
@ValueSource(strings = { "/rest/server/get", "/openapi.json" })
|
||||
void servedWithCompression(String path) {
|
||||
RestAssured.given().when().get(path).then().statusCode(200).header(HttpHeaders.CONTENT_ENCODING, "gzip");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user