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

Running E2E Tests

Zhiming Peng edited this page Oct 18, 2018 · 8 revisions

Available e2e test, skipped part will be back in the future

  1. images.bats (Part skipped for dispatch solo)
  2. functions.bats (Part skipped for dispatch solo)
  3. apis.bats
  4. secrets.bats
  5. events.bats (All skipped for dispatch solo)
  6. services.bats (All skipped for dispatch solo)
  7. login.bats (All skipped for dispatch solo)
  8. organizations.bats (All skipped for dispatch solo)
  9. clean.bats

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://$(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 E2E Test for Dispatch Solo

Run dispatch solo server For MacOS

make dispatch-server-darwin
./bin/dispatch-server-darwin local

For Linux

make dispatch-server-linux
./bin/dispatch-server-linux local

Run e2e test script:

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