Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Mgmt Services
Wellbore
Wellbore Domain Services
Commits
7331fff0
Commit
7331fff0
authored
Mar 30, 2021
by
Yunhua Koglin
Browse files
test aws cicd
parent
e5ab3d3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/aws-test/build-aws/run-integration-tests.sh
View file @
7331fff0
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
python
3
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment