Skip to content
Snippets Groups Projects
Commit ae1c9a65 authored by Yunhua Koglin's avatar Yunhua Koglin
Browse files

update scripts

parent ed7a25e1
No related branches found
No related tags found
2 merge requests!292x-user-id fix,!288Enable passing of x-user-id header from original request
......@@ -29,9 +29,5 @@ if [ ! -e requirements_dev.txt ]; then
else
cp requirements_dev.txt tests/aws-test/build-aws/requirements.txt
fi
cp -r tests/aws-test "${INTEGRATION_TEST_OUTPUT_DIR}"
cp -r tests/integration "${INTEGRATION_TEST_OUTPUT_DIR}"
cp -r tests/dependencies "${INTEGRATION_TEST_OUTPUT_DIR}"
cp -r tests/performance "${INTEGRATION_TEST_OUTPUT_DIR}"
cp -r tests/unit "${INTEGRATION_TEST_OUTPUT_DIR}"
cp -r tests "${INTEGRATION_TEST_OUTPUT_DIR}"
cp -r wdms_client "${INTEGRATION_TEST_OUTPUT_DIR}"
\ No newline at end of file
......@@ -14,7 +14,7 @@
# This script executes the test and copies reports to the provided output directory
# To call this script from the service working directory
# ./dist/testing/integration/build-aws/run-tests.sh "./reports/"
# ./dist/testing/tests/integration/build-aws/run-tests.sh "./reports/"
echo '********* Running Wellbore DDMS integration tests *********'
SCRIPT_SOURCE_DIR=$(dirname "$0")
......@@ -38,15 +38,15 @@ token=$(aws cognito-idp initiate-auth --auth-flow USER_PASSWORD_AUTH --client-id
#### RUN INTEGRATION TEST #########################################################################
pushd "$SCRIPT_SOURCE_DIR"/../../
pushd "$SCRIPT_SOURCE_DIR"/../../../
echo $(pwd)
python3 -m venv env
source env/bin/activate
python3 -m pip install -r ./aws-test/build-aws/requirements.txt
python3 -m pip install -r ./tests/aws-test/build-aws/requirements.txt
rm -rf test-reports/
mkdir test-reports
cd integration
cd tests/integration
acl_domain='example.com'
legal_tag='opendes-sdmstestlegaltag'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment