Skip to content

Commit

Permalink
Added uniqueness to ssl tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham-yb committed Dec 8, 2024
1 parent f903d09 commit eecd0e9
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
6 changes: 5 additions & 1 deletion migtests/scripts/live-migration-fallb-run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export SCRIPTS="${REPO_ROOT}/migtests/scripts"
export TESTS_DIR="${REPO_ROOT}/migtests/tests"
export TEST_DIR="${TESTS_DIR}/${TEST_NAME}"
export NORMALIZED_TEST_NAME="$(echo "$TEST_NAME" | tr '/-' '_')"
export EXPORT_DIR=${EXPORT_DIR:-"${TEST_DIR}/${NORMALIZED_TEST_NAME}_fallb_export-dir"}
export QUEUE_SEGMENT_MAX_BYTES=400

export PYTHONPATH="${REPO_ROOT}/migtests/lib"
Expand All @@ -31,6 +30,11 @@ else
source "${TEST_DIR}/env.sh"
fi

export EXPORT_DIR=${EXPORT_DIR:-"${TEST_DIR}/${NORMALIZED_TEST_NAME}_fallb_export-dir"}
if [ -n "${SOURCE_DB_SSL_MODE}" ]; then
EXPORT_DIR="${EXPORT_DIR}_ssl"
fi

if [ "${SOURCE_DB_TYPE}" = "oracle" ]
then
source ${SCRIPTS}/${SOURCE_DB_TYPE}/live_env.sh
Expand Down
6 changes: 5 additions & 1 deletion migtests/scripts/live-migration-fallf-run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export SCRIPTS="${REPO_ROOT}/migtests/scripts"
export TESTS_DIR="${REPO_ROOT}/migtests/tests"
export TEST_DIR="${TESTS_DIR}/${TEST_NAME}"
export NORMALIZED_TEST_NAME="$(echo "$TEST_NAME" | tr '/-' '_')"
export EXPORT_DIR=${EXPORT_DIR:-"${TEST_DIR}/${NORMALIZED_TEST_NAME}_fallf_export-dir"}

export PYTHONPATH="${REPO_ROOT}/migtests/lib"
export PATH="${PATH}:/usr/lib/oracle/21/client64/bin"
Expand All @@ -32,6 +31,11 @@ else
source "${TEST_DIR}/env.sh"
fi

export EXPORT_DIR=${EXPORT_DIR:-"${TEST_DIR}/${NORMALIZED_TEST_NAME}_fallf_export-dir"}
if [ -n "${SOURCE_DB_SSL_MODE}" ]; then
EXPORT_DIR="${EXPORT_DIR}_ssl"
fi

if [ "${SOURCE_DB_TYPE}" = "oracle" ]
then
source ${SCRIPTS}/${SOURCE_DB_TYPE}/live_env.sh
Expand Down
6 changes: 5 additions & 1 deletion migtests/scripts/live-migration-run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export SCRIPTS="${REPO_ROOT}/migtests/scripts"
export TESTS_DIR="${REPO_ROOT}/migtests/tests"
export TEST_DIR="${TESTS_DIR}/${TEST_NAME}"
export NORMALIZED_TEST_NAME="$(echo "$TEST_NAME" | tr '/-' '_')"
export EXPORT_DIR=${EXPORT_DIR:-"${TEST_DIR}/${NORMALIZED_TEST_NAME}_live_export-dir"}
export QUEUE_SEGMENT_MAX_BYTES=400

export PYTHONPATH="${REPO_ROOT}/migtests/lib"
Expand All @@ -38,6 +37,11 @@ else
source ${SCRIPTS}/${SOURCE_DB_TYPE}/env.sh
fi

export EXPORT_DIR=${EXPORT_DIR:-"${TEST_DIR}/${NORMALIZED_TEST_NAME}_live_export-dir"}
if [ -n "${SOURCE_DB_SSL_MODE}" ]; then
EXPORT_DIR="${EXPORT_DIR}_ssl"
fi

if [[ "${SOURCE_DB_TYPE}" == "postgresql" || "${SOURCE_DB_TYPE}" == "mysql" ]]; then
export SOURCE_DB_NAME=${SOURCE_DB_NAME:-"${NORMALIZED_TEST_NAME}_live"}
elif [[ "${SOURCE_DB_TYPE}" == "oracle" ]]; then
Expand Down
5 changes: 4 additions & 1 deletion migtests/scripts/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export SCRIPTS="${REPO_ROOT}/migtests/scripts"
export TESTS_DIR="${REPO_ROOT}/migtests/tests"
export TEST_DIR="${TESTS_DIR}/${TEST_NAME}"
export NORMALIZED_TEST_NAME="$(echo "$TEST_NAME" | tr '/-' '_')"
export EXPORT_DIR=${EXPORT_DIR:-"${TEST_DIR}/${NORMALIZED_TEST_NAME}_offline_export-dir"}

export PYTHONPATH="${REPO_ROOT}/migtests/lib"

Expand All @@ -37,6 +36,10 @@ fi

source ${SCRIPTS}/${SOURCE_DB_TYPE}/env.sh

export EXPORT_DIR=${EXPORT_DIR:-"${TEST_DIR}/${NORMALIZED_TEST_NAME}_offline_export-dir"}
if [ -n "${SOURCE_DB_SSL_MODE}" ]; then
EXPORT_DIR="${EXPORT_DIR}_ssl"
fi

if [[ "${SOURCE_DB_TYPE}" == "postgresql" || "${SOURCE_DB_TYPE}" == "mysql" ]]; then
export SOURCE_DB_NAME=${SOURCE_DB_NAME:-"${NORMALIZED_TEST_NAME}_offline"}
Expand Down

0 comments on commit eecd0e9

Please sign in to comment.