forked from Archives/Athou_commafeed
enable quarkus compression (compression in dropwizard was enabled by default)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# http
|
||||
quarkus.http.port=8082
|
||||
quarkus.http.test-port=8085
|
||||
quarkus.http.enable-compression=true
|
||||
|
||||
# static files
|
||||
## make sure the webapp is always up to date
|
||||
|
||||
@@ -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