2021-04-29 23:27:03 -07:00
|
|
|
#!/bin/bash
|
2021-06-14 17:15:24 -07:00
|
|
|
set -euxo pipefail
|
2021-04-29 23:27:03 -07:00
|
|
|
|
|
|
|
|
# Runs a basic e2e test. It is not meant to be fully comprehensive,
|
|
|
|
|
# but rather should catch obvious bugs before they make it into prod.
|
|
|
|
|
#
|
|
|
|
|
# Script assumptions:
|
|
|
|
|
# - The gradle build has already been run.
|
2021-06-14 17:15:24 -07:00
|
|
|
# - Python 3.6+ is installed and in the PATH.
|
2021-04-29 23:27:03 -07:00
|
|
|
|
2022-05-09 19:49:57 -07:00
|
|
|
# Log the locally loaded images
|
2022-05-10 18:24:27 -07:00
|
|
|
# docker images | grep "datahub-"
|
2022-05-09 19:49:57 -07:00
|
|
|
|
2021-04-29 23:27:03 -07:00
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
|
|
|
cd "$DIR"
|
|
|
|
|
|
|
|
|
|
python3 -m venv venv
|
|
|
|
|
source venv/bin/activate
|
|
|
|
|
pip install --upgrade pip wheel setuptools
|
|
|
|
|
pip install -r requirements.txt
|
|
|
|
|
|
2022-05-09 19:49:57 -07:00
|
|
|
echo "DATAHUB_VERSION = $DATAHUB_VERSION"
|
2022-05-24 11:18:20 -05:00
|
|
|
DATAHUB_TELEMETRY_ENABLED=false datahub docker quickstart --quickstart-compose-file ../docker/quickstart/docker-compose-without-neo4j.quickstart.yml --dump-logs-on-failure
|
2021-04-29 23:27:03 -07:00
|
|
|
|
2021-12-13 23:08:30 -08:00
|
|
|
(cd tests/cypress ; yarn install)
|
|
|
|
|
|
2021-10-26 07:21:56 +02:00
|
|
|
pytest -vv --continue-on-collection-errors --junit-xml=junit.smoke.xml
|