mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-11-03 20:27:50 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			675 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			675 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
set -euxo pipefail
 | 
						|
 | 
						|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
 | 
						|
cd "$DIR"
 | 
						|
 | 
						|
if [ "${RUN_QUICKSTART:-true}" == "true" ]; then
 | 
						|
    source ./run-quickstart.sh
 | 
						|
fi
 | 
						|
 | 
						|
source venv/bin/activate
 | 
						|
 | 
						|
export KAFKA_BROKER_CONTAINER="datahub-kafka-broker-1"
 | 
						|
export KAFKA_BOOTSTRAP_SERVER="broker:9092"
 | 
						|
python -c 'from tests.cypress.integration_test import ingest_data; ingest_data()'
 | 
						|
 | 
						|
cd tests/cypress
 | 
						|
yarn install
 | 
						|
 | 
						|
source "$DIR/set-cypress-creds.sh"
 | 
						|
 | 
						|
if [ "${RUN_UI:-true}" == "true" ]; then
 | 
						|
  npx cypress open \
 | 
						|
     --env "ADMIN_DISPLAYNAME=$CYPRESS_ADMIN_DISPLAYNAME,ADMIN_USERNAME=$CYPRESS_ADMIN_USERNAME,ADMIN_PASSWORD=$CYPRESS_ADMIN_PASSWORD"
 | 
						|
fi
 |