-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update deprecated
@QuarkusTestResource
to @WithTestResource
- Loading branch information
Showing
21 changed files
with
195 additions
and
35 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
context-propagation-quickstart/src/test/java/org/acme/context/prices/PriceIT.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,10 +1,10 @@ | ||
package org.acme.context.prices; | ||
|
||
import io.quarkus.test.common.QuarkusTestResource; | ||
import io.quarkus.test.common.WithTestResource; | ||
import io.quarkus.test.junit.QuarkusIntegrationTest; | ||
|
||
@QuarkusIntegrationTest | ||
@QuarkusTestResource(KafkaResource.class) | ||
@WithTestResource(KafkaResource.class) | ||
public class PriceIT extends PriceTest { | ||
|
||
} |
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
1 change: 0 additions & 1 deletion
1
kafka-panache-quickstart/src/test/java/org/acme/panache/PriceResourceTest.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
1 change: 0 additions & 1 deletion
1
kafka-panache-reactive-quickstart/src/test/java/org/acme/panache/PriceResourceTest.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
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
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
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
4 changes: 2 additions & 2 deletions
4
optaplanner-quickstart/src/test/java/org/acme/optaplanner/TestResources.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,9 @@ | ||
package org.acme.optaplanner; | ||
|
||
import io.quarkus.test.common.QuarkusTestResource; | ||
import io.quarkus.test.common.WithTestResource; | ||
import io.quarkus.test.h2.H2DatabaseTestResource; | ||
|
||
@QuarkusTestResource(H2DatabaseTestResource.class) | ||
@WithTestResource(value = H2DatabaseTestResource.class, restrictToAnnotatedClass = false) | ||
public class TestResources { | ||
|
||
} |
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
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
81 changes: 81 additions & 0 deletions
81
security-ldap-quickstart/src/main/resources/quarkus-io.ldif
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 |
---|---|---|
@@ -0,0 +1,81 @@ | ||
version: 1 | ||
|
||
dn: dc=quarkus,dc=io | ||
dc: quarkus | ||
objectClass: top | ||
objectClass: domain | ||
|
||
#The user OU | ||
|
||
dn: ou=Users,dc=quarkus,dc=io | ||
objectClass: organizationalUnit | ||
objectClass: top | ||
ou: Users | ||
|
||
#The users | ||
|
||
dn: uid=noRoleUser,ou=Users,dc=quarkus,dc=io | ||
objectClass: top | ||
objectClass: person | ||
objectClass: inetOrgPerson | ||
cn: No Role User | ||
sn: noRoleUser | ||
uid: noRoleUser | ||
userPassword: noRoleUserPassword | ||
|
||
dn: uid=standardUser,ou=Users,dc=quarkus,dc=io | ||
objectClass: top | ||
objectClass: person | ||
objectClass: inetOrgPerson | ||
cn: StandardUser | ||
sn: standardUser | ||
uid: standardUser | ||
userPassword: standardUserPassword | ||
|
||
dn: uid=adminUser,ou=Users,dc=quarkus,dc=io | ||
objectClass: top | ||
objectClass: person | ||
objectClass: inetOrgPerson | ||
cn: AdministratorUser | ||
sn: adminUser | ||
uid: adminUser | ||
userPassword: adminUserPassword | ||
|
||
# A sub OU of Users | ||
|
||
dn: ou=SubUsers,ou=Users,dc=quarkus,dc=io | ||
objectclass: organizationalUnit | ||
objectclass: top | ||
ou: SubUsers | ||
|
||
dn: uid=subUser,ou=SubUsers,ou=Users,dc=quarkus,dc=io | ||
objectclass: top | ||
objectclass: person | ||
objectclass: inetOrgPerson | ||
cn: SubUser | ||
sn: subUser | ||
uid: subUser | ||
userpassword: subUserPassword | ||
|
||
|
||
#The roles OU | ||
|
||
dn: ou=Roles,dc=quarkus,dc=io | ||
objectclass: top | ||
objectclass: organizationalUnit | ||
ou: Roles | ||
|
||
#The roles | ||
|
||
dn: cn=standardRole,ou=Roles,dc=quarkus,dc=io | ||
objectClass: top | ||
objectClass: groupOfNames | ||
cn: standardRole | ||
member: uid=standardUser,ou=Users,dc=quarkus,dc=io | ||
member: uid=subUser,ou=SubUsers,ou=Users,dc=quarkus,dc=io | ||
|
||
dn: cn=adminRole,ou=Roles,dc=quarkus,dc=io | ||
objectClass: top | ||
objectClass: groupOfNames | ||
cn: adminRole | ||
member: uid=adminUser,ou=Users,dc=quarkus,dc=io |
81 changes: 81 additions & 0 deletions
81
security-ldap-quickstart/src/test/resources/quarkus-io.ldif
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 |
---|---|---|
@@ -0,0 +1,81 @@ | ||
version: 1 | ||
|
||
dn: dc=quarkus,dc=io | ||
dc: quarkus | ||
objectClass: top | ||
objectClass: domain | ||
|
||
#The user OU | ||
|
||
dn: ou=Users,dc=quarkus,dc=io | ||
objectClass: organizationalUnit | ||
objectClass: top | ||
ou: Users | ||
|
||
#The users | ||
|
||
dn: uid=noRoleUser,ou=Users,dc=quarkus,dc=io | ||
objectClass: top | ||
objectClass: person | ||
objectClass: inetOrgPerson | ||
cn: No Role User | ||
sn: noRoleUser | ||
uid: noRoleUser | ||
userPassword: noRoleUserPassword | ||
|
||
dn: uid=standardUser,ou=Users,dc=quarkus,dc=io | ||
objectClass: top | ||
objectClass: person | ||
objectClass: inetOrgPerson | ||
cn: StandardUser | ||
sn: standardUser | ||
uid: standardUser | ||
userPassword: standardUserPassword | ||
|
||
dn: uid=adminUser,ou=Users,dc=quarkus,dc=io | ||
objectClass: top | ||
objectClass: person | ||
objectClass: inetOrgPerson | ||
cn: AdministratorUser | ||
sn: adminUser | ||
uid: adminUser | ||
userPassword: adminUserPassword | ||
|
||
# A sub OU of Users | ||
|
||
dn: ou=SubUsers,ou=Users,dc=quarkus,dc=io | ||
objectclass: organizationalUnit | ||
objectclass: top | ||
ou: SubUsers | ||
|
||
dn: uid=subUser,ou=SubUsers,ou=Users,dc=quarkus,dc=io | ||
objectclass: top | ||
objectclass: person | ||
objectclass: inetOrgPerson | ||
cn: SubUser | ||
sn: subUser | ||
uid: subUser | ||
userpassword: subUserPassword | ||
|
||
|
||
#The roles OU | ||
|
||
dn: ou=Roles,dc=quarkus,dc=io | ||
objectclass: top | ||
objectclass: organizationalUnit | ||
ou: Roles | ||
|
||
#The roles | ||
|
||
dn: cn=standardRole,ou=Roles,dc=quarkus,dc=io | ||
objectClass: top | ||
objectClass: groupOfNames | ||
cn: standardRole | ||
member: uid=standardUser,ou=Users,dc=quarkus,dc=io | ||
member: uid=subUser,ou=SubUsers,ou=Users,dc=quarkus,dc=io | ||
|
||
dn: cn=adminRole,ou=Roles,dc=quarkus,dc=io | ||
objectClass: top | ||
objectClass: groupOfNames | ||
cn: adminRole | ||
member: uid=adminUser,ou=Users,dc=quarkus,dc=io |
4 changes: 2 additions & 2 deletions
4
...ty-oauth2-quickstart/src/test/java/org/acme/security/oauth2/TokenSecuredResourceTest.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
4 changes: 2 additions & 2 deletions
4
stork-dns-quickstart/src/test/java/org/acme/FrontendApiIT.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,10 +1,10 @@ | ||
package org.acme; | ||
|
||
import io.quarkus.test.common.QuarkusTestResource; | ||
import io.quarkus.test.common.WithTestResource; | ||
import io.quarkus.test.junit.QuarkusIntegrationTest; | ||
|
||
@QuarkusIntegrationTest | ||
@QuarkusTestResource(DnsTestResource.class) | ||
@WithTestResource(DnsTestResource.class) | ||
public class FrontendApiIT extends FrontendApiTest { | ||
|
||
} |
Oops, something went wrong.