forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix various IT modules and add them to the CI matrices
- Fix the gRPC Test Random Port IT (cannot use injection) - Fix the virtual thread webauthn IT (cannot use injection) - Fix the opentelemetry redis instrumentation IT (still unable to retrieve the exception)
- Loading branch information
1 parent
051e910
commit 2e9b8ff
Showing
20 changed files
with
123 additions
and
608 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...om-port/src/test/java/io/quarkus/grpc/examples/hello/RandomPortSeparateServerPlainIT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,33 @@ | ||
package io.quarkus.grpc.examples.hello; | ||
|
||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import com.google.common.net.HostAndPort; | ||
|
||
import examples.GreeterGrpc; | ||
import examples.HelloRequest; | ||
import io.grpc.netty.NettyChannelBuilder; | ||
import io.quarkus.test.junit.QuarkusIntegrationTest; | ||
import io.quarkus.test.junit.TestProfile; | ||
|
||
@QuarkusIntegrationTest | ||
@TestProfile(RandomPortSeparateServerPlainTestBase.Profile.class) | ||
class RandomPortSeparateServerPlainIT extends RandomPortSeparateServerPlainTestBase { | ||
|
||
@Test | ||
void testWithNative() { | ||
var channel = NettyChannelBuilder.forAddress("localhost", 9000).usePlaintext().build(); | ||
var stub = GreeterGrpc.newBlockingStub(channel); | ||
HelloRequest request = HelloRequest.newBuilder().setName("neo").build(); | ||
var resp = stub.sayHello(request); | ||
assertThat(resp.getMessage()).startsWith("Hello neo"); | ||
|
||
int clientPort = HostAndPort.fromString(channel.authority()).getPort(); | ||
assertThat(clientPort).isNotEqualTo(0); | ||
assertThat(clientPort).isEqualTo(9000); | ||
|
||
channel.shutdownNow(); | ||
} | ||
} |
9 changes: 0 additions & 9 deletions
9
...ndom-port/src/test/java/io/quarkus/grpc/examples/hello/RandomPortSeparateServerTlsIT.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...andom-port/src/test/java/io/quarkus/grpc/examples/hello/RandomPortVertxServerPlainIT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,33 @@ | ||
package io.quarkus.grpc.examples.hello; | ||
|
||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import com.google.common.net.HostAndPort; | ||
|
||
import examples.GreeterGrpc; | ||
import examples.HelloRequest; | ||
import io.grpc.netty.NettyChannelBuilder; | ||
import io.quarkus.test.junit.QuarkusIntegrationTest; | ||
import io.quarkus.test.junit.TestProfile; | ||
|
||
@QuarkusIntegrationTest | ||
@TestProfile(RandomPortVertxServerPlainTestBase.Profile.class) | ||
class RandomPortVertxServerPlainIT extends RandomPortVertxServerPlainTestBase { | ||
|
||
@Test | ||
void testWithNative() { | ||
var channel = NettyChannelBuilder.forAddress("localhost", 8081).usePlaintext().build(); | ||
var stub = GreeterGrpc.newBlockingStub(channel); | ||
HelloRequest request = HelloRequest.newBuilder().setName("neo").build(); | ||
var resp = stub.sayHello(request); | ||
assertThat(resp.getMessage()).startsWith("Hello neo"); | ||
|
||
int clientPort = HostAndPort.fromString(channel.authority()).getPort(); | ||
assertThat(clientPort).isNotEqualTo(0); | ||
assertThat(clientPort).isEqualTo(8081); | ||
|
||
channel.shutdownNow(); | ||
} | ||
} |
9 changes: 0 additions & 9 deletions
9
...-random-port/src/test/java/io/quarkus/grpc/examples/hello/RandomPortVertxServerTlsIT.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.