diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml index ebfb076b..817a2db2 100644 --- a/.github/workflows/integration_tests.yml +++ b/.github/workflows/integration_tests.yml @@ -51,10 +51,12 @@ jobs: echo "TEMP_AWS_ACCESS_KEY_ID=${creds[0]}" >> $GITHUB_ENV echo "TEMP_AWS_SECRET_ACCESS_KEY=${creds[1]}" >> $GITHUB_ENV echo "TEMP_AWS_SESSION_TOKEN=${creds[2]}" >> $GITHUB_ENV + - name: Setup upterm session + uses: lhotari/action-upterm@v1 - name: 'Run Integration Tests' run: | - ./gradlew --no-parallel --no-daemon test-multi-az --info + ./gradlew --no-parallel --no-daemon test-pg-multi-az --info env: AURORA_CLUSTER_DOMAIN: ${{ secrets.DB_CONN_SUFFIX }} AURORA_DB_REGION: ${{ secrets.AWS_DEFAULT_REGION }} @@ -63,6 +65,7 @@ jobs: AWS_ACCESS_KEY_ID: ${{ env.TEMP_AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ env.TEMP_AWS_SECRET_ACCESS_KEY }} AWS_SESSION_TOKEN: ${{ env.TEMP_AWS_SESSION_TOKEN }} + FILTER: "test_connect_to_writer__switch_read_only" - name: 'Archive results' if: always() diff --git a/tests/integration/container/utils/rds_test_utility.py b/tests/integration/container/utils/rds_test_utility.py index 28167083..4c7a54ad 100644 --- a/tests/integration/container/utils/rds_test_utility.py +++ b/tests/integration/container/utils/rds_test_utility.py @@ -340,6 +340,7 @@ def _open_connection(self, instance_info: TestInstanceInfo) -> Any: password = env.get_database_info().get_password() db = env.get_database_info().get_default_db_name() + print(f"asdfasdf Connecting using db: {db}") conn_params = DriverHelper.get_connect_params( instance_info.get_host(), instance_info.get_port(), user, password, db, test_driver) diff --git a/tests/integration/host/src/test/java/integration/host/TestEnvironmentConfig.java b/tests/integration/host/src/test/java/integration/host/TestEnvironmentConfig.java index 1b71ee5a..90d2c4a9 100644 --- a/tests/integration/host/src/test/java/integration/host/TestEnvironmentConfig.java +++ b/tests/integration/host/src/test/java/integration/host/TestEnvironmentConfig.java @@ -334,9 +334,14 @@ private static void createDbCluster(TestEnvironmentConfig env, int numOfInstance env.rdsUtil.ec2AuthorizeIP(env.runnerIP); DatabaseEngine engine = env.info.getRequest().getDatabaseEngine(); + LOGGER.info("asdfasdf deployment: " + deployment + ", engine: " + engine); + LOGGER.info("asdfasdf Is deployment multi-az: " + DatabaseEngineDeployment.MULTI_AZ.equals(deployment)); + LOGGER.info("asdfasdf Is engine pg: " + DatabaseEngine.PG.equals(engine)); if (DatabaseEngineDeployment.MULTI_AZ.equals(deployment) && DatabaseEngine.PG.equals(engine)) { + LOGGER.info("asdfasdf Inside create extension branch"); DriverHelper.registerDriver(engine); + LOGGER.info("asdfasdf Create extension will be executed for DB: " + env.info.getDatabaseInfo().getDefaultDbName()); try (Connection conn = DriverHelper.getDriverConnection(env.info); Statement stmt = conn.createStatement()) { stmt.execute("CREATE EXTENSION IF NOT EXISTS rds_tools");