# README
Test
This directory contains tests and testing docs for Serving Operator
:
- Integration tests currently reside in
/test/e2e
Running integration tests
Before running the integration, please make sure you have installed
Serving Operator
by following the instruction here, and do not
install custom resource for operator or knative-serving installed in your
cluster.
Create a namespace called knative-serving
if it is missing.
kubectl create namespace knative-serving
To run all integration tests:
go test -v -tags=e2e -count=1 ./test/e2e
# Functions
CleanupOnInterrupt will execute the function cleanup if an interrupt signal is caught.
NewClients instantiates and returns several clientsets required for making request to the Knative Serving cluster specified by the combination of clusterName and configPath.
TearDown will delete created names using clients.
# Variables
ServingOperatorName is the default operator name for serving operator e2e tests.
ServingOperatorNamespace is the default namespace for serving operator e2e tests.
# Structs
Clients holds instances of interfaces for making requests to Knative Serving.
ResourceNames holds names of various resources.