diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a656e069b01..e09c54f50d8 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -498,6 +498,41 @@ jobs:
./mvn_ec2_runner.sh ${AWS_REGION} ${EC2_CLUSTER_NAME} "clean install -B -DskipTests -Pdistribution -DskipProtoLock=true"
./mvn_ec2_runner.sh ${AWS_REGION} ${EC2_CLUSTER_NAME} "clean install -B -DskipTests -pl testsuite/integration-arquillian/servers/auth-server/quarkus -Pauth-server-quarkus -Pdb-aurora-postgres -Dmaven.build.cache.enabled=true"
+ - name: Run Aurora new database tests on EC2
+ id: aurora-new-integration-tests
+ run: |
+ EC2_CLUSTER_NAME=${{ steps.ec2-create.outputs.ec2_cluster }}
+ AWS_REGION=${{ steps.aurora-init.outputs.region }}
+
+ PROPS="-Dkc.test.database=remote -Dkc.test.database.vendor=postgres"
+ PROPS+=" -Dkc.test.database.user=keycloak"
+ PROPS+=" -Dkc.test.database.password=${{ steps.aurora-init.outputs.aurora-cluster-password }}"
+ PROPS+=" -Dkc.test.database.url=\"jdbc:aws-wrapper:postgresql://${{ steps.aurora-create.outputs.endpoint }}/keycloak${{ steps.aurora-init.outputs.jdbc_params }}\""
+ PROPS+=" -Dkc.test.database.driver=software.amazon.jdbc.Driver"
+ PROPS+=" -Dkc.test.database.driver.artifact=software.amazon.jdbc:aws-advanced-jdbc-wrapper"
+
+ cd .github/scripts/ansible
+ ./mvn_ec2_runner.sh ${AWS_REGION} ${EC2_CLUSTER_NAME} "$PROPS package -f tests/pom.xml -Paurora -Dtest=DatabaseTestSuite"
+
+ # Copy returned surefire-report directories to workspace root to ensure they're discovered
+ results=(files/keycloak/results/*)
+ rsync -a $results/* ../../../
+ rm -rf $results
+
+ - uses: ./.github/actions/upload-flaky-tests
+ name: Upload flaky tests
+ env:
+ GH_TOKEN: ${{ github.token }}
+ with:
+ job-name: AuroraDB IT
+
+ - name: EC2 Maven Logs
+ if: failure()
+ uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
+ with:
+ name: aurora-new-integration-tests-mvn-logs
+ path: .github/scripts/ansible/files
+
- name: Run Aurora migration tests on EC2
id: aurora-migration-tests
env:
@@ -505,8 +540,8 @@ jobs:
run: |
EC2_CLUSTER_NAME=${{ steps.ec2-create.outputs.ec2_cluster }}
AWS_REGION=${{ steps.aurora-init.outputs.region }}
-
PROPS="-Dkeycloak.connectionsJpa.jdbcParameters=\"${{ steps.aurora-init.outputs.jdbc_params }}\""
+
PROPS+=" -Dauth.server.db.host=${{ steps.aurora-create.outputs.endpoint }} -Dkeycloak.connectionsJpa.password=${{ steps.aurora-init.outputs.aurora-cluster-password }}"
PROPS+=" -Djdbc.mvn.groupId=software.amazon.jdbc -Djdbc.mvn.artifactId=aws-advanced-jdbc-wrapper -Djdbc.mvn.version=2.3.1 -Djdbc.driver.tmp.dir=target/unpacked/keycloak-${{ env.old-version }}/providers"
@@ -566,41 +601,6 @@ jobs:
name: aurora-integration-tests-mvn-logs
path: .github/scripts/ansible/files
- - name: Run Aurora new database tests on EC2
- id: aurora-new-integration-tests
- run: |
- EC2_CLUSTER_NAME=${{ steps.ec2-create.outputs.ec2_cluster }}
- AWS_REGION=${{ steps.aurora-init.outputs.region }}
-
- PROPS="-Dkc.test.database=remote -Dkc.test.database.vendor=postgres"
- PROPS+=" -Dkc.test.database.user=keycloak"
- PROPS+=" -Dkc.test.database.password=${{ steps.aurora-init.outputs.aurora-cluster-password }}"
- PROPS+=" -Dkc.test.database.url=\"jdbc:aws-wrapper:postgresql://${{ steps.aurora-create.outputs.endpoint }}/keycloak${{ steps.aurora-init.outputs.jdbc_params }}\""
- PROPS+=" -Dkc.test.database.driver=software.amazon.jdbc.Driver"
- PROPS+=" -Dkc.test.database.driver.artifact=software.amazon.jdbc:aws-advanced-jdbc-wrapper"
-
- cd .github/scripts/ansible
- ./mvn_ec2_runner.sh ${AWS_REGION} ${EC2_CLUSTER_NAME} "$PROPS package -f tests/pom.xml -Paurora -Dtest=DatabaseTestSuite"
-
- # Copy returned surefire-report directories to workspace root to ensure they're discovered
- results=(files/keycloak/results/*)
- rsync -a $results/* ../../../
- rm -rf $results
-
- - uses: ./.github/actions/upload-flaky-tests
- name: Upload flaky tests
- env:
- GH_TOKEN: ${{ github.token }}
- with:
- job-name: AuroraDB IT
-
- - name: EC2 Maven Logs
- if: failure()
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
- with:
- name: aurora-integration-tests-mvn-logs
- path: .github/scripts/ansible/files
-
- name: Delete EC2 Instance
if: always()
working-directory: .github/scripts/ansible
diff --git a/tests/base/pom.xml b/tests/base/pom.xml
index 15625bb1769..577a0286a2e 100755
--- a/tests/base/pom.xml
+++ b/tests/base/pom.xml
@@ -84,6 +84,11 @@
org.keycloak.testframework
keycloak-test-framework-db-tidb
+
+ software.amazon.jdbc
+ aws-advanced-jdbc-wrapper
+ ${aws-jdbc-wrapper.version}
+
org.keycloak.testframework
keycloak-test-framework-email-server
@@ -154,17 +159,4 @@
-
-
- aurora
-
-
- software.amazon.jdbc
- aws-advanced-jdbc-wrapper
- ${aws-jdbc-wrapper.version}
-
-
-
-
-