Skip to content

Commit

Permalink
Merge pull request #505 from jedla97/update-with-test-resource
Browse files Browse the repository at this point in the history
Change parameters for WithTestResource annotation
  • Loading branch information
rsvoboda authored Sep 5, 2024
2 parents 6d11302 + cd415c7 commit d9693b8
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 13 deletions.
1 change: 0 additions & 1 deletion .github/workflows/daily.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ jobs:
with:
version: ${{ matrix.graalvm-version }}
java-version: ${{ matrix.graalvm-java-version }}
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Configure Pagefile
# Increased the page-file size due to memory-consumption of native-image command
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ jobs:
strategy:
matrix:
java: [ 17 ]
image: [ "ubi-quarkus-mandrel-builder-image:jdk-21"]
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
Expand Down Expand Up @@ -88,6 +87,7 @@ jobs:
strategy:
matrix:
java: [ 17 ]
image: [ "ubi-quarkus-mandrel-builder-image:jdk-21"]
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
Expand Down Expand Up @@ -130,7 +130,8 @@ jobs:
MODULES_ARG="${CHANGED// /,}"
mvn -am -fae -V -B -s .github/mvn-settings.xml -fae -pl $MODULES_ARG clean verify -Dnative \
-Dquarkus.native.container-build=true -Dquarkus.native.native-image-xmx=4g
-Dquarkus.native.container-build=true -Dquarkus.native.native-image-xmx=4g \
-Dquarkus.native.builder-image=quay.io/quarkus/${{ matrix.image }}
- name: Zip Artifacts
if: failure()
run: |
Expand Down Expand Up @@ -181,7 +182,6 @@ jobs:
with:
version: ${{ matrix.graalvm-version }}
java-version: ${{ matrix.graalvm-java-version }}
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Configure Pagefile
# Increased the page-file size due to memory-consumption of native-image command
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package io.quarkus.qe.hibernate.validator;

import io.quarkus.test.common.TestResourceScope;
import io.quarkus.test.common.WithTestResource;
import io.quarkus.test.h2.H2DatabaseTestResource;

@WithTestResource(value = H2DatabaseTestResource.class, restrictToAnnotatedClass = false)
@WithTestResource(value = H2DatabaseTestResource.class, scope = TestResourceScope.MATCHING_RESOURCES)
public class TestResources {
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package io.quarkus.qe.quartz;

import io.quarkus.test.common.TestResourceScope;
import io.quarkus.test.common.WithTestResource;
import io.quarkus.test.h2.H2DatabaseTestResource;

@WithTestResource(value = H2DatabaseTestResource.class, restrictToAnnotatedClass = false)
@WithTestResource(value = H2DatabaseTestResource.class, scope = TestResourceScope.MATCHING_RESOURCES)
public class TestResources {
}
4 changes: 2 additions & 2 deletions 013-quarkus-oidc-restclient/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-oidc-client-filter</artifactId>
<artifactId>quarkus-resteasy-client-oidc-filter</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-oidc-token-propagation</artifactId>
<artifactId>quarkus-resteasy-client-oidc-token-propagation</artifactId>
</dependency>
<dependency>
<groupId>org.keycloak</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ quarkus.oidc-client.test-user.grant-options.password.password=test-user

# RestClient
io.quarkus.qe.ping.clients.PongClient/mp-rest/url=http://localhost:8081
io.quarkus.qe.ping.clients.PongClient/mp-rest/scope=javax.inject.Singleton
io.quarkus.qe.ping.clients.PongClient/mp-rest/scope=jakarta.inject.Singleton

io.quarkus.qe.ping.clients.ReactivePongClient/mp-rest/url=http://localhost:8081
io.quarkus.qe.ping.clients.ReactivePongClient/mp-rest/scope=javax.inject.Singleton
io.quarkus.qe.ping.clients.ReactivePongClient/mp-rest/scope=jakarta.inject.Singleton

io.quarkus.qe.ping.clients.LookupAuthorizationPongClient/mp-rest/url=http://localhost:8081
io.quarkus.qe.ping.clients.LookupAuthorizationPongClient/mp-rest/scope=javax.inject.Singleton
io.quarkus.qe.ping.clients.LookupAuthorizationPongClient/mp-rest/scope=jakarta.inject.Singleton

io.quarkus.qe.ping.clients.AutoAcquireTokenPongClient/mp-rest/url=http://localhost:8081

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@

import io.quarkus.qe.containers.KeycloakTestResource;
import io.quarkus.qe.model.Score;
import io.quarkus.test.common.TestResourceScope;
import io.quarkus.test.common.WithTestResource;
import io.restassured.RestAssured;
import io.restassured.config.RestAssuredConfig;
import io.restassured.http.ContentType;

@WithTestResource(value = KeycloakTestResource.class, restrictToAnnotatedClass = false)
@WithTestResource(value = KeycloakTestResource.class, scope = TestResourceScope.MATCHING_RESOURCES)
public abstract class AbstractPingPongResourceTest {

private static final String PING_ENDPOINT = "/%s-ping";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package io.quarkus.qe.spring.data;

import io.quarkus.test.common.TestResourceScope;
import io.quarkus.test.common.WithTestResource;
import io.quarkus.test.h2.H2DatabaseTestResource;

@WithTestResource(value = H2DatabaseTestResource.class, restrictToAnnotatedClass = false)
@WithTestResource(value = H2DatabaseTestResource.class, scope = TestResourceScope.MATCHING_RESOURCES)
public class TestResources {
}

0 comments on commit d9693b8

Please sign in to comment.