diff --git a/src/test/java/net/hostsharing/hsadminng/hs/migration/LiquibaseCompatibilityIntegrationTest.java b/src/test/java/net/hostsharing/hsadminng/hs/migration/LiquibaseCompatibilityIntegrationTest.java index 385594fd..30ab0505 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/migration/LiquibaseCompatibilityIntegrationTest.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/migration/LiquibaseCompatibilityIntegrationTest.java @@ -32,14 +32,24 @@ import static org.springframework.test.context.jdbc.Sql.ExecutionPhase.BEFORE_TE *
The test needs a dump, ideally from the version of the lastest prod-release:
* *pg-sql-reset
+ * ./gradlew bootRun --args='--spring.profiles.active=only-office'
+ *
+ * docker exec -i hsadmin-ng-postgres psql -U postgres postgres \
+ *
+ * gw bootRun --args='--spring.profiles.active=only-office'
+ * cat >src/test/resources/db/prod-only-office-schema-with-test-data.sql <
+ * cat >src/test/resources/db/prod-only-office-schema-with-test-data.sql <
+ *
*
* docker exec -i hsadmin-ng-postgres /usr/bin/pg_dump \
* --column-inserts --disable-dollar-quoting -U postgres postgres \
* >>src/test/resources/db/prod-only-office-schema-with-test-data.sql
*
+ * The generated dump has to be committed to git and will be used in future test-runs