Commit 7331fff0 authored by Yunhua Koglin's avatar Yunhua Koglin
Browse files

test aws cicd

parent e5ab3d3b
echo "**********Current Dir ***********************"
echo $(pwd)
echo $(ls)
#!/usr/bin/env bash
# echo "**********Current Dir ***********************"
# echo $(pwd)
# echo $(ls)
echo "*********Am I at tests dir???**********"
cd ../../../
echo $(pwd)
echo $(ls)
# echo "*********Am I at tests dir???**********"
# cd ../../../
# echo $(pwd)
# echo $(ls)
pip install virtualenv
virtualenv venv
source venv/bin/activate
pip install --upgrade pip
pip install wheel pytest pytest-cov
pip install -r requirements.txt
pip install -r requirements_dev.txt
# Install venv for python3
which apt-get && sudo apt-get install -y python3 python3-pip python3-venv || echo "Not Ubuntu, skipping"
which yum && sudo yum install -y python3 python3-pip python3-venv || echo "Not RHEL, skipping"
python3 -m venv env
# sed -i 's/$1/${1:-}/' env/bin/activate # Fix deactivation bug '$1 unbound variable'
source env/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt
python3 -m pip install -r requirements_dev.txt
python3 -m pip install wheel pytest pytest-cov
svc_url=$WELLBORE_DDMS_URL
tenant='opendes'
......@@ -23,6 +28,6 @@ svctoken=$(python tests/aws-test/build-aws/aws_jwt_client.py)
cd tests/integration
python gen_postman_env.py --token $svctoken --base_url $svc_url --cloud_provider "aws" --acl_domain $acl_domain --legal_tag $legal_tag --data_partition $tenant
python3 gen_postman_env.py --token $svctoken --base_url $svc_url --cloud_provider "aws" --acl_domain $acl_domain --legal_tag $legal_tag --data_partition $tenant
pytest ./functional --environment="./generated/postman_environment.json" --filter-tag=basic
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment