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 56
Running E2E Tests
Zhiming Peng edited this page Oct 18, 2018
·
8 revisions
Available e2e test, skipped part will be back in the future
- images.bats (Part skipped for dispatch solo)
- functions.bats (Part skipped for dispatch solo)
- apis.bats
- secrets.bats
- events.bats (All skipped for dispatch solo)
- services.bats (All skipped for dispatch solo)
- login.bats (All skipped for dispatch solo)
- organizations.bats (All skipped for dispatch solo)
- clean.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
Run dispatch solo server For MacOS
make dispatch-server-darwin
./bin/dispatch-server-darwin localFor Linux
make dispatch-server-linux
./bin/dispatch-server-linux localRun e2e test script:
INSTALL_DISPATCH=0 ./e2e/scripts/run-e2e.sh e2e/tests/images.bats