Skip to content

Commit

Permalink
parent ff57517
Browse files Browse the repository at this point in the history
author Jose Carranza <[email protected]> 1686853189 +0200
committer Jose Carranza <[email protected]> 1688565488 +0200

adding some veretx http coverage related to HttpServer, HttpServerRequest, HttpServerResponse,HttpHeaders

improve form logic

implement ServerWebSocket logic, remove RestEasy annotation not needed here, and use @QuarkusScenario

implement ServerWebSocket logic, remove RestEasy annotation not needed here, and use @QuarkusScenario

keep 999999-SNAPSHOT version

keep 999999-SNAPSHOT version

keep pom as in upstream/main

keep pom as in upstream/main

use of @ApplicationScoped and onStart to deploy HttpVertxReactiveServer, websocket test

reformat code style and add HttpClient test

fix websocket test

redoing tests as quarkus way - just keep vertx HttpClient test

Enable OpenShiftQuickstartIT with snapshot

Adjust GraphQLTelemetryIT to reflect latest updates

Change Quarkus CLI utils to use default streams

Remove todo with outdated Zulip conversation

Bump maven-checkstyle-plugin from 3.2.1 to 3.3.0

Bumps [maven-checkstyle-plugin](https://github.com/apache/maven-checkstyle-plugin) from 3.2.1 to 3.3.0.
- [Commits](apache/maven-checkstyle-plugin@maven-checkstyle-plugin-3.2.1...maven-checkstyle-plugin-3.3.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-checkstyle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Remove magical constant in PostgresPoolTest

Trailing comma is no longer present in Micrometer Prometheus

See quarkusio/quarkus#30343 for details

Remove PostgreSQL image workaround

Issue quarkus-qe/quarkus-test-framework#641 was solved

Bump quarkiverse.pact.version from 1.0.0.Final to 1.0.1.Final

Bumps `quarkiverse.pact.version` from 1.0.0.Final to 1.0.1.Final.

Updates `quarkus-pact-provider` from 1.0.0.Final to 1.0.1.Final

Updates `quarkus-pact-consumer` from 1.0.0.Final to 1.0.1.Final

---
updated-dependencies:
- dependency-name: io.quarkiverse.pact:quarkus-pact-provider
  dependency-type: direct:development
  update-type: version-update:semver-patch
- dependency-name: io.quarkiverse.pact:quarkus-pact-consumer
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Update deprecated usage of RestSseElementType

* Updating test app to use RestStreamElementType rather than the deprecated
  RestSseElementType. This also fixes failure of the Kafka tests running
  with the test app.

Bump quarkus.qe.framework.version from 1.3.0.Beta16 to 1.3.0.Beta17

Bumps `quarkus.qe.framework.version` from 1.3.0.Beta16 to 1.3.0.Beta17.

Updates `quarkus-test-parent` from 1.3.0.Beta16 to 1.3.0.Beta17
- [Release notes](https://github.com/quarkus-qe/quarkus-test-framework/releases)
- [Changelog](https://github.com/quarkus-qe/quarkus-test-framework/blob/main/RELEASE.md)
- [Commits](quarkus-qe/quarkus-test-framework@1.3.0.Beta16...1.3.0.Beta17)

Updates `quarkus-test-containers` from 1.3.0.Beta16 to 1.3.0.Beta17
- [Release notes](https://github.com/quarkus-qe/quarkus-test-framework/releases)
- [Changelog](https://github.com/quarkus-qe/quarkus-test-framework/blob/main/RELEASE.md)
- [Commits](quarkus-qe/quarkus-test-framework@1.3.0.Beta16...1.3.0.Beta17)

Updates `quarkus-test-openshift` from 1.3.0.Beta16 to 1.3.0.Beta17
- [Release notes](https://github.com/quarkus-qe/quarkus-test-framework/releases)
- [Changelog](https://github.com/quarkus-qe/quarkus-test-framework/blob/main/RELEASE.md)
- [Commits](quarkus-qe/quarkus-test-framework@1.3.0.Beta16...1.3.0.Beta17)

---
updated-dependencies:
- dependency-name: io.quarkus.qe:quarkus-test-parent
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: io.quarkus.qe:quarkus-test-containers
  dependency-type: direct:development
  update-type: version-update:semver-patch
- dependency-name: io.quarkus.qe:quarkus-test-openshift
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Bump tj-actions/changed-files from 35.9.2 to 36.0.8

Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 35.9.2 to 36.0.8.
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](tj-actions/changed-files@v35.9.2...v36.0.8)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Add option to debug Quarkus Test Suite

Rename PostgreSQL image instances

Extends quarkus-qe#1240

Bump checkstyle from 10.11.0 to 10.12.0

Bumps [checkstyle](https://github.com/checkstyle/checkstyle) from 10.11.0 to 10.12.0.
- [Release notes](https://github.com/checkstyle/checkstyle/releases)
- [Commits](checkstyle/checkstyle@checkstyle-10.11.0...checkstyle-10.12.0)

---
updated-dependencies:
- dependency-name: com.puppycrawl.tools:checkstyle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Change PostgresqlService instances to use default properties

Related issue quarkus-qe/quarkus-test-framework#455 was fixed

Bump tj-actions/changed-files from 36.0.8 to 36.0.10

Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 36.0.8 to 36.0.10.
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](tj-actions/changed-files@v36.0.8...v36.0.10)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Use only major version tj-actions/changed-files

Fix failing HTTP DEV mode log checks

Disable DomainSocketIT due to upstream bug

Bump formatter-maven-plugin from 2.21.0 to 2.23.0

Bumps [formatter-maven-plugin](https://github.com/revelc/formatter-maven-plugin) from 2.21.0 to 2.23.0.
- [Changelog](https://github.com/revelc/formatter-maven-plugin/blob/main/CHANGELOG.md)
- [Commits](revelc/formatter-maven-plugin@formatter-maven-plugin-2.21.0...formatter-maven-plugin-2.23.0)

---
updated-dependencies:
- dependency-name: net.revelc.code.formatter:formatter-maven-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Verify OIDC service app dont generate enc. key

Revert "Fix failing HTTP DEV mode log checks"

This reverts commit 82bba48.

Verify REST Client Reactive support truststore

Replace OpenTracing with OTel in javaee-like-getting-started

The goal is to have a module which combines OTel with other extensions,
namely `smallrye-jwt` and `smallrye-openapi`.

keep DomainSocketIT as in the upstream repo

fix httpClient test

Bump quarkus-qpid-jms from 2.2.0 to 2.3.0

Bumps [quarkus-qpid-jms](https://github.com/amqphub/quarkus-qpid-jms) from 2.2.0 to 2.3.0.
- [Commits](amqphub/quarkus-qpid-jms@2.2.0...2.3.0)

---
updated-dependencies:
- dependency-name: org.amqphub.quarkus:quarkus-qpid-jms
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Flyway now requires dedicated dep for Oracle

Migrate deprecated configuration properties for Artemis URL and kafka

Remove todo with resolved issue from pom

Issue was quarkus-qe#609 was closed
  • Loading branch information
jcarranzan committed Jul 10, 2023
1 parent 359c0b3 commit a42a9bf
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

import io.restassured.response.Response;
import io.restassured.specification.RequestSpecification;
import io.vertx.core.Vertx;
import io.vertx.core.http.HttpClient;
import io.vertx.core.http.HttpMethod;

public abstract class AbstractVertxIT {

Expand All @@ -25,7 +28,6 @@ public void httpServerAndMetrics() {
requests().get("/hello").then()
.statusCode(HttpStatus.SC_OK)
.body("content", is("Hello, World!"));

Response response = requests().get("/q/metrics");
assertEquals(HttpStatus.SC_OK, response.statusCode());
assertThat(response.getContentType(), containsString("application/openmetrics-text"));
Expand All @@ -41,6 +43,20 @@ public void httpServerParsing() {
requests().get("/hello?name=you").then().statusCode(HttpStatus.SC_OK).body("content", is("Hello, you!"));
}

@Test
public void httpClient() {
HttpClient httpClient = Vertx.vertx().createHttpClient();
httpClient.request(HttpMethod.GET, 1101, "localhost", "/hello")
.compose(request -> request.send()
.compose(httpClientResponse -> {
assertEquals(HttpStatus.SC_OK, httpClientResponse.statusCode());
return httpClientResponse.body();
}))
.onSuccess(body -> {
assertThat("Body response", body.toString().contains("Hello, World!"));
}).onFailure(Throwable::getCause);
}

public abstract RequestSpecification requests();

private Map<String, Metric> parseMetrics(String body) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ quarkus.kafka-streams.application-server=localhost:${quarkus.http.port}
quarkus.kafka-streams.topics=login-http-response-values

# streams options
kafka-streams.cache.max.bytes.buffering=10240
kafka-streams.statestore.cache.max.bytes=10240
kafka-streams.commit.interval.ms=1000
kafka-streams.metadata.max.age.ms=500
kafka-streams.auto.offset.reset=earliest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ quarkus.kafka-streams.application-server=localhost:${quarkus.http.port}
quarkus.kafka-streams.topics=slow-topic

# streams options
kafka-streams.cache.max.bytes.buffering=10240
kafka-streams.statestore.cache.max.bytes=10240
kafka-streams.commit.interval.ms=1000
kafka-streams.metadata.max.age.ms=500
kafka-streams.auto.offset.reset=earliest
Expand Down
3 changes: 1 addition & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
<quarkus.platform.version>999-SNAPSHOT</quarkus.platform.version>
<quarkus.qe.framework.version>1.3.0.Beta21</quarkus.qe.framework.version>
<quarkus-qpid-jms.version>2.2.0</quarkus-qpid-jms.version>
<quarkus-qpid-jms.version>2.3.0</quarkus-qpid-jms.version>
<apache-httpclient-fluent.version>4.5.14</apache-httpclient-fluent.version>
<confluent.kafka-avro-serializer.version>7.3.1</confluent.kafka-avro-serializer.version>
<formatter-maven-plugin.version>2.23.0</formatter-maven-plugin.version>
Expand Down Expand Up @@ -240,7 +240,6 @@
<elastic.71.image>docker.io/bitnami/elasticsearch:7.17.9</elastic.71.image>
<!--TODO change into 5.7 when this fixed https://github.com/docker-library/mysql/issues/844 -->
<mysql.57.image>docker.io/library/mysql:5.7.36</mysql.57.image>
<!-- TODO https://github.com/quarkus-qe/quarkus-test-suite/issues/609 -->
<mysql.upstream.80.image>docker.io/library/mysql:8.0</mysql.upstream.80.image>
<mysql.80.image>registry.access.redhat.com/rhscl/mysql-80-rhel7</mysql.80.image>
<mariadb.10.image>docker.io/library/mariadb:10.10</mariadb.10.image>
Expand Down
7 changes: 0 additions & 7 deletions scaling/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,7 +0,0 @@

quarkus.s2i.base-jvm-image=registry.access.redhat.com/ubi8/openjdk-11:latest

# Openshift
quarkus.openshift.readiness-probe.period=5s
quarkus.openshift.readiness-probe.initial-delay=0s
quarkus.openshift.readiness-probe.failure-threshold=5
2 changes: 1 addition & 1 deletion security/jwt/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
smallrye.jwt.sign.key.location=private-key.pem
mp.jwt.verify.publickey.location=public-key.pem
mp.jwt.verify.issuer=https://my.auth.server/
smallrye.jwt.expiration.grace=120
mp.jwt.verify.clock.skew=120
quarkus.security.deny-unannotated-members=true
quarkus.native.additional-build-args=-H:IncludeResources=.*\\.pem
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
quarkus.hibernate-orm.database.charset=utf-8
quarkus.hibernate-orm.database.generation=drop-and-create

quarkus.hibernate-orm.provider=org.hibernate.reactive.provider.ReactivePersistenceProvider

# HttpClient config
SomeApi/mp-rest/url=http://localhost:${quarkus.http.port}
4 changes: 4 additions & 0 deletions sql-db/vertx-sql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@
<groupId>org.flywaydb</groupId>
<artifactId>flyway-mysql</artifactId>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-database-oracle</artifactId>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-sqlserver</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ quarkus.http.root-path=/api
%ServerlessExtensionDockerBuildStrategyOpenShiftManyExtensionsIT.quarkus.kubernetes.deployment-target=knative
%ServerlessExtensionDockerBuildStrategyOpenShiftManyExtensionsIT.quarkus.container-image.registry=image-registry.openshift-image-registry.svc:5000

quarkus.artemis.url=foo
quarkus.oidc.auth-server-url=https://localhost:8180/auth/realms/quarkus
quarkus.oidc.client-id=quarkus-app

Expand Down

0 comments on commit a42a9bf

Please sign in to comment.