Skip to content
This repository was archived by the owner on Nov 16, 2020. It is now read-only.

Running E2E Tests

Berndt Jung edited this page Feb 5, 2018 · 8 revisions

Run E2E Tests Locally

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://192.168.64.23:30985
export API_GATEWAY_HTTPS_HOST=http://192.168.64.23:31133

Run e2e test script:

INSTALL_DISPATCH=0 ./e2e/scripts/run-e2e.sh e2e/tests/images.bats
Clone this wiki locally