Commit 696d314d authored by David Mendez's avatar David Mendez
Browse files

Start to add functional tests

parent bd258977
......@@ -169,10 +169,8 @@ functional_tests:
url: ${SERVER_URL_STAGING}
script:
- set -x
- exit 0 # disabled temporarily
- sleep 30 # Give some time for the deployment to take effect.
- functional_tests/run_functional_tests.py ${SERVER_URL_STAGING} ${DJ_SERVER_ADMIN_USERNAME_STAGING} ${DJ_SERVER_ADMIN_PASSWORD_STAGING}
#
- functional_tests/run_functional_tests.py ${SERVER_URL_STAGING}
## ----------------------------------------------------------------------------------------------------------------------
## Deployment to prod hx
## ----------------------------------------------------------------------------------------------------------------------
......@@ -234,9 +232,8 @@ functional_tests_prod_hx:
- master
script:
- set -x
- exit 0 # disabled temporarily
- sleep 30 # Give some time for the deployment to take effect.
- functional_tests/run_functional_tests.py ${SERVER_URL_PROD_HX} ${DJ_SERVER_ADMIN_USERNAME_PROD_HX} ${DJ_SERVER_ADMIN_PASSWORD_PROD_HX}
- functional_tests/run_functional_tests.py ${SERVER_URL_PROD_HX}
## ----------------------------------------------------------------------------------------------------------------------
## Deployment to prod hh
......@@ -302,9 +299,8 @@ functional_tests_prod_hh:
- master
script:
- set -x
- exit 0
- sleep 30 # Give some time for the deployment to take effect.
- functional_tests/run_functional_tests.py ${SERVER_URL_PROD_HH} ${DJ_SERVER_ADMIN_USERNAME_PROD_HH} ${DJ_SERVER_ADMIN_PASSWORD_PROD_HH}
- functional_tests/run_functional_tests.py ${SERVER_URL_PROD_HH}
# ----------------------------------------------------------------------------------------------------------------------
# Test prod public url
......@@ -318,6 +314,5 @@ functional_tests_prod_public:
- master
script:
- set -x
- exit 0
- sleep 30 # Give some time for the deployment to take effect.
- functional_tests/run_functional_tests.py ${SERVER_URL_PROD_PUBLIC} ${DJ_SERVER_ADMIN_USERNAME_PROD_HX} ${DJ_SERVER_ADMIN_PASSWORD_PROD_PUBLIC}
- functional_tests/run_functional_tests.py ${SERVER_URL_PROD_PUBLIC}
#!/usr/bin/env python3
"""
Script that runs the functional tests for the app
"""
import argparse
PARSER = argparse.ArgumentParser()
PARSER.add_argument('server_base_path', help='server base path to run the tests against',
default='http://127.0.0.1:5000', nargs='?')
ARGS = PARSER.parse_args()
def run():
"""
Runs all functional tests
"""
print(f'Running functional tests on {ARGS.server_base_path}')
if __name__ == "__main__":
run()
Markdown is supported
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