diff --git a/.gitignore b/.gitignore index 80bdb4578f..ccc62d0372 100644 --- a/.gitignore +++ b/.gitignore @@ -60,3 +60,7 @@ target # KEYCLOAK-5391: We will re-exclude node_modules when node_modules handling is worked out. # For now, we keep our js libraries checked into GitHub, so we don't ignore. #node_modules + +# testsuite # +############# +*offline-token.txt diff --git a/testsuite/integration-arquillian/servers/migration/assembly.xml b/testsuite/integration-arquillian/servers/migration/assembly.xml index e1e853da91..958f9bf81b 100644 --- a/testsuite/integration-arquillian/servers/migration/assembly.xml +++ b/testsuite/integration-arquillian/servers/migration/assembly.xml @@ -17,7 +17,7 @@ - auth-server-jboss-${migrated.auth.server.version} + auth-server-migration-${migrated.auth.server.version} zip @@ -28,14 +28,14 @@ ${keycloak.server.home} - keycloak-${migrated.auth.server.version} + auth-server-migration **/*.sh ${keycloak.server.home} - keycloak-${migrated.auth.server.version} + auth-server-migration **/*.sh diff --git a/testsuite/integration-arquillian/servers/migration/pom.xml b/testsuite/integration-arquillian/servers/migration/pom.xml index 480e48c40d..baf2838155 100644 --- a/testsuite/integration-arquillian/servers/migration/pom.xml +++ b/testsuite/integration-arquillian/servers/migration/pom.xml @@ -31,7 +31,7 @@ ${project.build.directory}/unpacked/keycloak-${migrated.auth.server.version} - ${keycloak.server.home}/modules/system/layers/base/com/${jdbc.mvn.artifactId}/main + ${keycloak.server.home}/modules/system/layers/base/test/jdbc/${jdbc.mvn.artifactId}/main diff --git a/testsuite/integration-arquillian/servers/migration/src/main/xslt/datasource.xsl b/testsuite/integration-arquillian/servers/migration/src/main/xslt/datasource.xsl index 3ca8aa4f28..52df81925e 100644 --- a/testsuite/integration-arquillian/servers/migration/src/main/xslt/datasource.xsl +++ b/testsuite/integration-arquillian/servers/migration/src/main/xslt/datasource.xsl @@ -73,7 +73,7 @@ - + diff --git a/testsuite/integration-arquillian/servers/migration/src/main/xslt/module.xsl b/testsuite/integration-arquillian/servers/migration/src/main/xslt/module.xsl index 0bdb1dd56b..778d67d980 100644 --- a/testsuite/integration-arquillian/servers/migration/src/main/xslt/module.xsl +++ b/testsuite/integration-arquillian/servers/migration/src/main/xslt/module.xsl @@ -27,7 +27,7 @@ - + diff --git a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/arquillian/migration/MigrationTestExecutionDecider.java b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/arquillian/migration/MigrationTestExecutionDecider.java index f11e90913f..d66369ac41 100644 --- a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/arquillian/migration/MigrationTestExecutionDecider.java +++ b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/arquillian/migration/MigrationTestExecutionDecider.java @@ -43,7 +43,7 @@ public class MigrationTestExecutionDecider implements TestExecutionDecider { String versionFrom = migrationAnnotation.versionFrom(); - if (migratedAuthServerVersion.contains(versionFrom)) { + if (migratedAuthServerVersion.startsWith(versionFrom)) { return ExecutionDecision.execute(); } else { return ExecutionDecision.dontExecute(method.getName() + "doesn't fit with migration version."); diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/migration/MigrationTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/migration/MigrationTest.java index fda367a5cd..d188afb483 100644 --- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/migration/MigrationTest.java +++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/migration/MigrationTest.java @@ -68,23 +68,23 @@ public class MigrationTest extends AbstractMigrationTest { } @Test - @Migration(versionFrom = "3.4.3.Final") - public void migration3_4_3Test() { + @Migration(versionFrom = "3.") + public void migration3_xTest() { testMigratedData(); testMigrationTo4_x(); } @Test - @Migration(versionFrom = "2.5.5.Final") - public void migration2_5_5Test() { + @Migration(versionFrom = "2.") + public void migration2_xTest() { testMigratedData(); testMigrationTo3_x(); testMigrationTo4_x(); } @Test - @Migration(versionFrom = "1.9.8.Final") - public void migration1_9_8Test() throws Exception { + @Migration(versionFrom = "1.") + public void migration1_xTest() throws Exception { testMigratedData(false); testMigrationTo2_x(); testMigrationTo3_x(); diff --git a/testsuite/integration-arquillian/tests/base/src/test/resources/arquillian.xml b/testsuite/integration-arquillian/tests/base/src/test/resources/arquillian.xml index d507fb819e..82ff93ef53 100644 --- a/testsuite/integration-arquillian/tests/base/src/test/resources/arquillian.xml +++ b/testsuite/integration-arquillian/tests/base/src/test/resources/arquillian.xml @@ -122,7 +122,6 @@ -Dauth.server.https.port=${auth.server.https.port} -Dkeycloak.password.blacklists.path=${keycloak.password.blacklists.path} ${adapter.test.props} - ${migration.import.properties} ${auth.server.profile} ${auth.server.feature} ${kie.maven.settings} diff --git a/testsuite/integration-arquillian/tests/pom.xml b/testsuite/integration-arquillian/tests/pom.xml index 8c07185b85..6f8eb93eb7 100755 --- a/testsuite/integration-arquillian/tests/pom.xml +++ b/testsuite/integration-arquillian/tests/pom.xml @@ -141,7 +141,6 @@ -Djava.security.krb5.conf=${project.build.directory}/dependency/kerberos/test-krb5.conf - ${project.build.directory}/examples ${keycloak-parent.basedir}/examples ${project.version} @@ -463,7 +462,6 @@ ${examples.home} ${examples.version.suffix} - ${migration.import.properties} ${kie.maven.settings} ${testsuite.constants} @@ -497,8 +495,6 @@ ${appium.fullReset} ${project.version} - ${migration.project.version} - ${migration.product.version} ${client.certificate.ca.path} ${client.certificate.keystore} @@ -1345,7 +1341,7 @@ ${migrated.auth.server.version} true - ${containers.home}/keycloak-${migrated.auth.server.version} + ${containers.home}/auth-server-migration ${migration.import.props.previous} @@ -1356,14 +1352,14 @@ - migration-productized + migration-prod - migrated.version.import.file.suffix + migration.import.file.name - target/test-classes/migration-test/migration-realm-${migrated.version.import.file.suffix}.json + target/test-classes/migration-test/${migration.import.file.name}