func/test
David Simansky e0bbcc2d08
chore: Refactor use of deprecated io/ioutil package (#1285)
2022-09-27 13:28:15 +00:00
..
_common test: oncluster build initial e2e set of tests (#1193) 2022-09-05 13:08:22 +00:00
_e2e chore: Refactor use of deprecated io/ioutil package (#1285) 2022-09-27 13:28:15 +00:00
_oncluster [feat] refactoring func.yaml struct to match cmd lifecycle (#1254) 2022-09-22 20:22:12 +00:00
README.md chore: install Tekton Task from local source code & install S2I task (#1234) 2022-09-13 01:07:47 +00:00
e2e_extended_tests.sh test: separated with tags common language runtime e2e tests from othe… (#492) 2021-08-25 13:14:31 -07:00
e2e_lifecycle_tests.sh feat: add all build flags to deploy (#1065) 2022-06-16 16:02:17 +00:00
e2e_oncluster_tests.sh test: oncluster build initial e2e set of tests (#1193) 2022-09-05 13:08:22 +00:00
gitserver.sh test: oncluster build initial e2e set of tests (#1193) 2022-09-05 13:08:22 +00:00
patch_network.sh ci: implementation proposal for func e2e test (#363) 2021-06-02 09:43:04 +02:00
presubmit-tests.sh chore: skip integration tests for now (#780) 2022-01-25 07:16:49 -08:00

README.md

Functions E2E Test

Lifecycle tests

Lifecycle tests exercises the most important phases of a function lifecycle starting from creation, going thru to build, deployment, execution and then deletion (CRUD operations). It runs func commands such as create, deploy, list and delete for a language runtime using both default http and cloudevents templates.

Extended tests

Extended tests performs additional tests on func such as templates, config envs, volumes, labels and other scenarios.

On Cluster Builds tests

On cluster builds e2e tests exercises functions built directly on cluster. The tests are organized per scenarios under ./_oncluster folder.

Pre-requisites

Prior to run On Cluster builds e2e tests ensure you are connected to a Kubernetes Cluster with the following deployed:

  • Knative Serving
  • Tekton
  • Tekton Tasks listed here
  • Embedded Git Server (func-git) used by tests

For your convenience you can run the following script to setup Tekton and required Tasks:

$ ./hack/tekton.sh

To install the Git Server required by tests, run:

$ ./gitserver.sh

Running all the Tests on KinD

The below instructions will run all the tests on KinD using an ephemeral container registry.

# Pre-Reqs
./hack/allocate.sh
./hack/tekton.sh
./test/gitserver.sh
make build

# Run tests
./test/e2e_oncluter_tests.sh

Running "runtime" only scenario

You can run only e2e tests to exercise a given language/runtime, for example python

env E2E_RUNTIMES=python TEST_TAGS=runtime ./test/e2e_oncluster_test.sh

Running tests except "runtime" ones

You can run most of on cluster builds e2e scenarios, except the language/runtime specific ones, by running:

env E2E_RUNTIMES="" ./test/e2e_oncluster_test.sh