forked from quarkus-qe/quarkus-test-suite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Change waiting strategy for PG imgs from RH registry till FW …
…fixed" (quarkus-qe#2007) This reverts commit c4ca78c.
- Loading branch information
1 parent
737e18f
commit 0b7748d
Showing
12 changed files
with
40 additions
and
150 deletions.
There are no files selected for viewing
42 changes: 0 additions & 42 deletions
42
...al-applications/src/test/java/io/quarkus/ts/external/applications/AbstractTodoDemoIT.java
This file was deleted.
Oops, something went wrong.
35 changes: 1 addition & 34 deletions
35
...l-applications/src/test/java/io/quarkus/ts/external/applications/OpenShiftTodoDemoIT.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,42 +1,9 @@ | ||
package io.quarkus.ts.external.applications; | ||
|
||
import io.quarkus.test.bootstrap.PostgresqlService; | ||
import io.quarkus.test.bootstrap.RestService; | ||
import io.quarkus.test.scenarios.OpenShiftScenario; | ||
import io.quarkus.test.scenarios.annotations.DisabledOnNative; | ||
import io.quarkus.test.services.Container; | ||
import io.quarkus.test.services.GitRepositoryQuarkusApplication; | ||
|
||
@DisabledOnNative(reason = "Native + s2i not supported") | ||
@OpenShiftScenario | ||
public class OpenShiftTodoDemoIT extends AbstractTodoDemoIT { | ||
|
||
// FIXME: change expected log when https://github.com/quarkus-qe/quarkus-test-framework/issues/1183 is fixed | ||
@Container(image = "${postgresql.latest.image}", port = 5432, expectedLog = "Future log output will appear in directory") | ||
static PostgresqlService database = new PostgresqlService() | ||
// store data in /tmp/psql as in OpenShift we don't have permissions to /var/lib/postgresql/data | ||
.withProperty("PGDATA", "/tmp/psql"); | ||
|
||
@GitRepositoryQuarkusApplication(repo = TODO_REPO, mavenArgs = "-Dquarkus.package.jar.type=uber-jar" + DEFAULT_OPTIONS) | ||
static final RestService app = new RestService() | ||
.withProperty("quarkus.datasource.username", database.getUser()) | ||
.withProperty("quarkus.datasource.password", database.getPassword()) | ||
.withProperty("quarkus.datasource.jdbc.url", database::getJdbcUrl); | ||
|
||
@GitRepositoryQuarkusApplication(repo = TODO_REPO, artifact = "todo-backend-1.0-SNAPSHOT.jar", mavenArgs = "-Dquarkus.package.jar.type=uber-jar -Dquarkus.package.add-runner-suffix=false" | ||
+ DEFAULT_OPTIONS) | ||
static final RestService replaced = new RestService() | ||
.withProperty("quarkus.datasource.username", database.getUser()) | ||
.withProperty("quarkus.datasource.password", database.getPassword()) | ||
.withProperty("quarkus.datasource.jdbc.url", database::getJdbcUrl); | ||
|
||
@Override | ||
protected RestService getApp() { | ||
return app; | ||
} | ||
|
||
@Override | ||
protected RestService getReplaced() { | ||
return replaced; | ||
} | ||
public class OpenShiftTodoDemoIT extends TodoDemoIT { | ||
} |
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
33 changes: 2 additions & 31 deletions
33
...va/io/quarkus/ts/hibernate/reactive/openshift/OpenShiftPostgresqlHibernateReactiveIT.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,37 +1,8 @@ | ||
package io.quarkus.ts.hibernate.reactive.openshift; | ||
|
||
import io.quarkus.test.bootstrap.PostgresqlService; | ||
import io.quarkus.test.bootstrap.RestService; | ||
import io.quarkus.test.scenarios.OpenShiftScenario; | ||
import io.quarkus.test.services.Container; | ||
import io.quarkus.test.services.QuarkusApplication; | ||
import io.quarkus.ts.hibernate.reactive.AbstractDatabaseHibernateReactiveIT; | ||
import io.quarkus.ts.hibernate.reactive.PostgresqlDatabaseHibernateReactiveIT; | ||
|
||
@OpenShiftScenario | ||
public class OpenShiftPostgresqlHibernateReactiveIT extends AbstractDatabaseHibernateReactiveIT { | ||
|
||
private static final String POSTGRES_USER = "quarkus_test"; | ||
private static final String POSTGRES_PASSWORD = "quarkus_test"; | ||
private static final String POSTGRES_DATABASE = "quarkus_test"; | ||
private static final int POSTGRES_PORT = 5432; | ||
|
||
// FIXME: change expected log when https://github.com/quarkus-qe/quarkus-test-framework/issues/1183 is fixed | ||
@Container(image = "${postgresql.latest.image}", port = POSTGRES_PORT, expectedLog = "Future log output will appear in directory") | ||
static PostgresqlService database = new PostgresqlService() | ||
.withUser(POSTGRES_USER) | ||
.withPassword(POSTGRES_PASSWORD) | ||
.withDatabase(POSTGRES_DATABASE) | ||
.withProperty("PGDATA", "/tmp/psql"); | ||
|
||
@QuarkusApplication | ||
static RestService app = new RestService().withProperties("postgresql.properties") | ||
.withProperty("quarkus.datasource.username", POSTGRES_USER) | ||
.withProperty("quarkus.datasource.password", POSTGRES_PASSWORD) | ||
.withProperty("quarkus.datasource.reactive.url", database::getReactiveUrl); | ||
|
||
@Override | ||
protected RestService getApp() { | ||
return app; | ||
} | ||
|
||
public class OpenShiftPostgresqlHibernateReactiveIT extends PostgresqlDatabaseHibernateReactiveIT { | ||
} |
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
21 changes: 1 addition & 20 deletions
21
...t/java/io/quarkus/ts/reactive/rest/data/panache/OpenShiftPostgresqlPanacheResourceIT.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,26 +1,7 @@ | ||
package io.quarkus.ts.reactive.rest.data.panache; | ||
|
||
import io.quarkus.test.bootstrap.PostgresqlService; | ||
import io.quarkus.test.bootstrap.RestService; | ||
import io.quarkus.test.scenarios.OpenShiftScenario; | ||
import io.quarkus.test.services.Container; | ||
import io.quarkus.test.services.QuarkusApplication; | ||
|
||
@OpenShiftScenario | ||
public class OpenShiftPostgresqlPanacheResourceIT extends AbstractPanacheResourceIT { | ||
|
||
private static final int POSTGRESQL_PORT = 5432; | ||
|
||
// FIXME: change expected log when https://github.com/quarkus-qe/quarkus-test-framework/issues/1183 is fixed | ||
@Container(image = "${postgresql.latest.image}", port = POSTGRESQL_PORT, expectedLog = "Future log output will appear in directory") | ||
public static final PostgresqlService database = new PostgresqlService() | ||
.withProperty("POSTGRES_DB", "mydb") | ||
.withProperty("PGDATA", "/tmp/psql"); | ||
|
||
@QuarkusApplication | ||
public static final RestService app = new RestService().withProperties("postgresql.properties") | ||
.withProperty("quarkus.datasource.username", database.getUser()) | ||
.withProperty("quarkus.datasource.password", database.getPassword()) | ||
.withProperty("quarkus.datasource.jdbc.url", database::getJdbcUrl); | ||
|
||
public class OpenShiftPostgresqlPanacheResourceIT extends PostgresqlPanacheResourceIT { | ||
} |
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