-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
148 additions
and
262 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
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
14 changes: 2 additions & 12 deletions
14
scheduling/quartz/src/test/java/io/quarkus/qe/scheduling/quartz/BaseMySqlQuartzIT.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,22 +1,12 @@ | ||
package io.quarkus.qe.scheduling.quartz; | ||
|
||
import io.quarkus.test.bootstrap.DefaultService; | ||
import io.quarkus.test.bootstrap.MySqlService; | ||
import io.quarkus.test.services.Container; | ||
|
||
public abstract class BaseMySqlQuartzIT { | ||
static final String MYSQL_PROPERTIES = "mysql.properties"; | ||
static final String MYSQL_USER = "user"; | ||
static final String MYSQL_PASSWORD = "user"; | ||
static final String MYSQL_DATABASE = "mydb"; | ||
static final int MYSQL_PORT = 3306; | ||
|
||
@Container(image = "${mysql.80.image}", port = MYSQL_PORT, expectedLog = "Only MySQL server logs after this point") | ||
static DefaultService database = new DefaultService() | ||
.withProperty("MYSQL_USER", MYSQL_USER) | ||
.withProperty("MYSQL_PASSWORD", MYSQL_PASSWORD) | ||
.withProperty("MYSQL_DATABASE", MYSQL_DATABASE); | ||
|
||
protected static String mysqlJdbcUrl() { | ||
return database.getHost().replace("http", "jdbc:mysql") + ":" + database.getPort() + "/" + MYSQL_DATABASE; | ||
} | ||
static MySqlService database = new MySqlService(); | ||
} |
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
18 changes: 5 additions & 13 deletions
18
spring/spring-data/src/test/java/io/quarkus/ts/spring/data/AbstractDbIT.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,28 +1,20 @@ | ||
package io.quarkus.ts.spring.data; | ||
|
||
import io.quarkus.test.bootstrap.DefaultService; | ||
import io.quarkus.test.bootstrap.PostgresqlService; | ||
import io.quarkus.test.bootstrap.RestService; | ||
import io.quarkus.test.services.Container; | ||
import io.quarkus.test.services.QuarkusApplication; | ||
|
||
public class AbstractDbIT { | ||
static final String POSTGRESQL_USER = "user"; | ||
static final String POSTGRESQL_PASSWORD = "user"; | ||
static final String POSTGRESQL_DATABASE = "mydb"; | ||
static final int POSTGRESQL_PORT = 5432; | ||
|
||
@Container(image = "${postgresql.10.image}", port = POSTGRESQL_PORT, expectedLog = "listening on IPv4 address") | ||
static final DefaultService database = new DefaultService() | ||
.withProperty("POSTGRESQL_USER", POSTGRESQL_USER) | ||
.withProperty("POSTGRESQL_PASSWORD", POSTGRESQL_PASSWORD) | ||
.withProperty("POSTGRESQL_DATABASE", POSTGRESQL_DATABASE); | ||
static final PostgresqlService database = new PostgresqlService(); | ||
|
||
@QuarkusApplication | ||
public static final RestService app = new RestService() | ||
.withProperty("quarkus.datasource.username", POSTGRESQL_USER) | ||
.withProperty("quarkus.datasource.password", POSTGRESQL_PASSWORD) | ||
.withProperty("quarkus.datasource.jdbc.url", | ||
() -> database.getHost().replace("http", "jdbc:postgresql") + ":" + database.getPort() + "/" | ||
+ POSTGRESQL_DATABASE); | ||
.withProperty("quarkus.datasource.username", database.getUser()) | ||
.withProperty("quarkus.datasource.password", database.getPassword()) | ||
.withProperty("quarkus.datasource.jdbc.url", database::getJdbcUrl); | ||
|
||
} |
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
20 changes: 6 additions & 14 deletions
20
spring/spring-web/src/test/java/io/quarkus/ts/spring/web/AbstractDbIT.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,28 +1,20 @@ | ||
package io.quarkus.ts.spring.web; | ||
|
||
import io.quarkus.test.bootstrap.DefaultService; | ||
import io.quarkus.test.bootstrap.MariaDbService; | ||
import io.quarkus.test.bootstrap.RestService; | ||
import io.quarkus.test.services.Container; | ||
import io.quarkus.test.services.QuarkusApplication; | ||
|
||
public class AbstractDbIT { | ||
static final String MARIADB_USER = "user"; | ||
static final String MARIADB_PASSWORD = "user"; | ||
static final String MARIADB_DATABASE = "mydb"; | ||
static final int MARIADB_PORT = 3306; | ||
|
||
@Container(image = "registry.access.redhat.com/rhscl/mariadb-102-rhel7", port = MARIADB_PORT, expectedLog = "Only MySQL server logs after this point") | ||
static final DefaultService database = new DefaultService() | ||
.withProperty("MYSQL_USER", MARIADB_USER) | ||
.withProperty("MYSQL_PASSWORD", MARIADB_PASSWORD) | ||
.withProperty("MYSQL_DATABASE", MARIADB_DATABASE); | ||
@Container(image = "${mariadb.102.image}", port = MARIADB_PORT, expectedLog = "Only MySQL server logs after this point") | ||
static final MariaDbService database = new MariaDbService(); | ||
|
||
@QuarkusApplication | ||
public static final RestService app = new RestService() | ||
.withProperty("quarkus.datasource.username", MARIADB_USER) | ||
.withProperty("quarkus.datasource.password", MARIADB_PASSWORD) | ||
.withProperty("quarkus.datasource.jdbc.url", | ||
() -> database.getHost().replace("http", "jdbc:mariadb") + ":" + database.getPort() + "/" | ||
+ MARIADB_DATABASE); | ||
.withProperty("quarkus.datasource.username", database.getUser()) | ||
.withProperty("quarkus.datasource.password", database.getPassword()) | ||
.withProperty("quarkus.datasource.jdbc.url", database::getJdbcUrl); | ||
|
||
} |
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
Oops, something went wrong.