func/test
Rayyan 5ec715f7ac
fix: update console output to show both host and port (#2953)
* fix: update console output to show both host and port using net.JoinHostPort

Signed-off-by: RayyanSeliya <rayyanseliya786@gmail.com>

* test: update regex to match new 'Function running on' output format

Signed-off-by: RayyanSeliya <rayyanseliya786@gmail.com>

* fix(e2e): parse only port from 'Function running on' output

Signed-off-by: RayyanSeliya <rayyanseliya786@gmail.com>

---------

Signed-off-by: RayyanSeliya <rayyanseliya786@gmail.com>
2025-07-30 05:27:39 +00:00
..
common test: simplify func-git service (#2926) 2025-07-11 19:02:06 +00:00
e2e fix: update console output to show both host and port (#2953) 2025-07-30 05:27:39 +00:00
oncluster test: enforce branch on test remote repository (#2540) 2024-10-12 19:42:09 +00:00
templates/go test: remove dependecy for boson-project git repository on e2e tests (#2537) 2024-10-10 05:22:03 +00:00
testhttp fix: err check at correct place (#1945) 2023-08-28 19:57:29 +00:00
README.md ci: install Tekton and PAC in cluster by default (#2896) 2025-06-30 07:50:16 +00:00
e2e_extended_tests.sh e2e tests restructuring / refactoring (#1615) 2023-03-16 20:52:59 +00:00
e2e_lifecycle_tests.sh e2e tests restructuring / refactoring (#1615) 2023-03-16 20:52:59 +00:00
e2e_oncluster_tests.sh chore: coverage for e2e tests (#1603) 2023-03-08 17:53:20 +00:00
patch_network.sh Fix linter issues (#2420) 2024-07-09 13:48:22 +00:00
presubmit-tests.sh Python Middleware v2 Scaffolding (#2685) 2025-04-02 10:44:05 +00:00
test_python.sh Python Middleware v2 Scaffolding (#2685) 2025-04-02 10:44:05 +00: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

When using ./hack/allocate.sh to create a test cluster, Tekton and PAC (Pipelines-as-Code) are automatically installed. You only need to install the Git Server:

$ ./hack/install-git-server.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  # This automatically installs Tekton and PAC
./hack/install-git-server.sh
make build

# Run tests
./test/e2e_oncluster_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_tests.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_tests.sh