This repository was archived by the owner on Nov 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
Running E2E Tests
Zhiming Peng edited this page Nov 16, 2018
·
8 revisions
Run dispatch solo server For MacOS
make darwin
cp ./bin/dispatch-darwin /usr/local/bin/dispatch
./bin/dispatch-server-darwin
For Linux
make linux
cp ./bin/dispatch-linux /usr/local/bin/dispatch
./bin/dispatch-server-linux
Run e2e test script:
INSTALL_DISPATCH=0 ./e2e/scripts/run-e2e.sh e2e/tests/images.bats
minikube start --vm-driver=hyperkit --bootstrapper=kubeadm --disk-size=50g --memory=6144 --kubernetes-version=v1.8.1
eval $(minikube docker-env)
make linux
make ci-images
Make note of the image tag:
...
Successfully tagged vmware/dispatch-event-manager:dev-1517616232
...
Edit the installation config (config.yaml):
apiGateway:
host: 192.168.64.20
dispatch:
host: 192.168.64.20
debug: true
skipAuth: true
image:
tag: dev-1517616232
Deploy dispatch:
dispatch create -f config.yaml --charts-dir ./charts
Get the API ports and set the environment:
kubectl get service -n kong api-gateway-kongproxy
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
api-gateway-kongproxy NodePort 10.101.239.54 <none> 80:31133/TCP,443:30985/TCP 10m
export API_GATEWAY_HTTPS_HOST=https://$(minikube ip):$(kubectl get service -n kong api-gateway-kongproxy -o json | jq -r .spec.ports[1].nodePort)
export API_GATEWAY_HTTP_HOST=http://$(minikube ip):$(kubectl get service -n kong api-gateway-kongproxy -o json | jq -r .spec.ports[0].nodePort)
Run e2e test script:
INSTALL_DISPATCH=0 ./e2e/scripts/run-e2e.sh e2e/tests/images.bats