tree: 2a414d253568d70f61c4561a07e378a243aeac4e [path history] [tgz]
  1. proxy/
  2. scaffold/
  3. testdata/
  4. go.mod
  5. go.sum
  6. main.go
  7. main_test.go
  8. README.md
test/e2e/README.md

apisix ingress controller e2e test suites

For running e2e test cases, a Kubernetes cluster is needed, minikube is a good choice to build k8s cluster in development environment.

Scaffold

a e2e test scaffold is prepared to run test cases easily. The source codes are in directory test/e2e/scaffold, it builds necessary running environment:

  • Create a brand new namespace;
  • Create etcd deployment and etcd service in the specified namespace;
  • Create apisix deployment and apisix service in the specified namespace (note both the control plane and data plane are created);
  • Create apisix-ingress-controller deployment in the specified namespace;
  • Create a http server with kennethreitz/httpbin as the upstream.

The abovementioned steps are run before each case starts and all resources will be destroyed after the case finishes.