Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham-yb committed Jan 7, 2025
1 parent a9035b7 commit a582746
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 61 deletions.
15 changes: 0 additions & 15 deletions migtests/scripts/live-migration-fallb-run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,13 @@ 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
else
source ${SCRIPTS}/${SOURCE_DB_TYPE}/env.sh
fi

# export NORMALIZED_TEST_NAME="$(echo "$TEST_NAME" | tr '/-' '_')"
# if [[ "${SOURCE_DB_TYPE}" == "postgresql" || "${SOURCE_DB_TYPE}" == "mysql" ]]; then
# export SOURCE_DB_NAME=${SOURCE_DB_NAME:-"${NORMALIZED_TEST_NAME}_fallb"}
# elif [[ "${SOURCE_DB_TYPE}" == "oracle" ]]; then
# export SOURCE_DB_SCHEMA=${SOURCE_DB_SCHEMA:-"${NORMALIZED_TEST_NAME:0:10}_fallb"} && export SOURCE_DB_SCHEMA=${SOURCE_DB_SCHEMA^^}
# else
# echo "ERROR: Unsupported SOURCE_DB_TYPE: ${SOURCE_DB_TYPE}"
# exit 1
# fi

source ${SCRIPTS}/functions.sh

normalize_and_export_vars "fallb"
Expand Down
18 changes: 1 addition & 17 deletions migtests/scripts/live-migration-fallf-run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,6 @@ else
source ${SCRIPTS}/${SOURCE_DB_TYPE}/env.sh
fi

# export NORMALIZED_TEST_NAME="$(echo "$TEST_NAME" | tr '/-' '_')"
# 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}" == "postgresql" || "${SOURCE_DB_TYPE}" == "mysql" ]]; then
# export SOURCE_DB_NAME=${SOURCE_DB_NAME:-"${NORMALIZED_TEST_NAME}_fallf"}
# elif [[ "${SOURCE_DB_TYPE}" == "oracle" ]]; then
# export SOURCE_DB_SCHEMA=${SOURCE_DB_SCHEMA:-"${NORMALIZED_TEST_NAME:0:10}_fallf"} && export SOURCE_DB_SCHEMA=${SOURCE_DB_SCHEMA^^}
# else
# echo "ERROR: Unsupported SOURCE_DB_TYPE: ${SOURCE_DB_TYPE}"
# exit 1
# fi


source ${SCRIPTS}/functions.sh

normalize_and_export_vars "fallf"
Expand Down Expand Up @@ -80,7 +64,7 @@ main() {
if [ "${SOURCE_DB_TYPE}" = "oracle" ]
then
create_source_db ${SOURCE_DB_SCHEMA}
# TODO: Add dynamic Fall Forward schema creation
# TODO: Add dynamic Fall Forward schema creation. Currently using the same name for all tests.
create_source_db ${SOURCE_REPLICA_DB_SCHEMA}
run_sqlplus_as_sys ${SOURCE_REPLICA_DB_NAME} ${SCRIPTS}/oracle/create_metadata_tables.sql
fi
Expand Down
15 changes: 0 additions & 15 deletions migtests/scripts/live-migration-run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export REPO_ROOT="${PWD}"
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 QUEUE_SEGMENT_MAX_BYTES=400

export PYTHONPATH="${REPO_ROOT}/migtests/lib"
Expand All @@ -37,20 +36,6 @@ 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
# export SOURCE_DB_SCHEMA=${SOURCE_DB_SCHEMA:-"${NORMALIZED_TEST_NAME:0:10}_live"} && export SOURCE_DB_SCHEMA=${SOURCE_DB_SCHEMA^^}
# else
# echo "ERROR: Unsupported SOURCE_DB_TYPE: ${SOURCE_DB_TYPE}"
# exit 1
# fi

source ${SCRIPTS}/functions.sh

normalize_and_export_vars "live"
Expand Down
14 changes: 0 additions & 14 deletions migtests/scripts/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export REPO_ROOT="${PWD}"
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 PYTHONPATH="${REPO_ROOT}/migtests/lib"

Expand All @@ -36,19 +35,6 @@ 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"}
# elif [[ "${SOURCE_DB_TYPE}" == "oracle" ]]; then
# export SOURCE_DB_SCHEMA=${SOURCE_DB_SCHEMA:-"${NORMALIZED_TEST_NAME:0:10}_offline"} && export SOURCE_DB_SCHEMA=${SOURCE_DB_SCHEMA^^}
# else
# echo "ERROR: Unsupported SOURCE_DB_TYPE: ${SOURCE_DB_TYPE}"
# exit 1
# fi

source ${SCRIPTS}/functions.sh

Expand Down

0 comments on commit a582746

Please sign in to comment.