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

test aws cicd

parent e5ab3d3b
echo "**********Current Dir ***********************" #!/usr/bin/env bash
echo $(pwd) # echo "**********Current Dir ***********************"
echo $(ls) # echo $(pwd)
# echo $(ls)
echo "*********Am I at tests dir???**********" # echo "*********Am I at tests dir???**********"
cd ../../../ # cd ../../../
echo $(pwd) # echo $(pwd)
echo $(ls) # echo $(ls)
pip install virtualenv # Install venv for python3
virtualenv venv which apt-get && sudo apt-get install -y python3 python3-pip python3-venv || echo "Not Ubuntu, skipping"
source venv/bin/activate which yum && sudo yum install -y python3 python3-pip python3-venv || echo "Not RHEL, skipping"
pip install --upgrade pip
pip install wheel pytest pytest-cov python3 -m venv env
pip install -r requirements.txt # sed -i 's/$1/${1:-}/' env/bin/activate # Fix deactivation bug '$1 unbound variable'
pip install -r requirements_dev.txt 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 svc_url=$WELLBORE_DDMS_URL
tenant='opendes' tenant='opendes'
...@@ -23,6 +28,6 @@ svctoken=$(python tests/aws-test/build-aws/aws_jwt_client.py) ...@@ -23,6 +28,6 @@ svctoken=$(python tests/aws-test/build-aws/aws_jwt_client.py)
cd tests/integration 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 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