Skip to content

Commit

Permalink
tweaks and changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarranzan committed Mar 19, 2024
1 parent 192eab7 commit 03cac1e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions QQE-378.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
# QQE-378 - HTTP module / REST use-cases - Development topic compression Brotli4j
## Links
Jira : [https://issues.redhat.com/browse/QQE-378](https://issues.redhat.com/browse/QQE-378)
Jira : [QQE-378](https://issues.redhat.com/browse/QQE-378)

PR: TODO
## Scope of the testing
- Integration of the Brotli4J compression library with Quarkus, particularly in the context of REST endpoints using RestEasy Reactive.
- The test coverage needs to be defined for both JVM and native mode.
- To use Brotli4J compression we will need a custom Server configuration
* Utilize `io.vertx.core.http.HttpServerOptions` to enable compression support.
* Add the Brotli compressor using `.addCompressor(io.netty.handler.codec.compression.StandardCompressionOptions.brotli())`.
* Utilize Vert.x http server options to enable compression support.
* Include the compressor using Brotli4J options compression.
* Ensure that the server is configured to respect the Accept-Encoding header to automatically compress the response body with one of the supported compressions and send it back to the client.
### Test scenarios
### Test scenarios

- Compression Enabled, Response Compressed
* Set up a Quarkus application with the Brotli4J compression library
* Configure the HTTP server to enable compression using io.vertx.core.http.HttpServerOptions
* Add the Brotli compressor using `.addCompressor(io.netty.handler.codec.compression.StandardCompressionOptions.brotli())`
* Send a request to a REST endpoint and verify that the response is compressed using Brotli
- Compression Disabled, Response Not Compressed
* Set up a Quarkus application with the Brotli4J compression library
* Set up a Quarkus application with the Brotli4J compression library
* Configure the HTTP server to disable compression using io.vertx.core.http.HttpServerOptions
* Send a request to a REST endpoint and verify that the response is not compressed
* Send a request to a REST endpoint and verify that the response is not compressed
- JSON Payloads, Compression Works up to 8192 bytes
* Create a JSON payload of varying sizes up to 8192 bytes
* Send a request to a REST endpoint with the JSON payload and verify that the response is compressed
Expand All @@ -28,7 +29,7 @@ PR: TODO
- Different Media Types, Compression Applied Correctly
* Create a plain text payload
* Create an XML payload
* Send a request to a REST endpoint with each payload and verify that the response is compressed using Brotli
* Send a request to a REST endpoint with each payload and verify that the response is compressed using Brotli4J



Expand Down

0 comments on commit 03cac1e

Please sign in to comment.