rekt/

directory
v0.41.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2024 License: Apache-2.0

README

Reconciler Tests

This is the staging location for the new e2e testing framework.

To run the tests on an existing cluster:

SYSTEM_NAMESPACE=knative-eventing go test -count=1 -v -tags=e2e ./test/rekt/...

To run just one test:

SYSTEM_NAMESPACE=knative-eventing go test -count=1 -v -tags=e2e -run Smoke_PingSource ./test/rekt/...

Broker tests.

The Broker class can be overridden by using the envvar BROKER_CLASS. By default, this will be MTChannelBasedBroker.

The Broker templates can be overridden by using the env var BROKER_TEMPLATES.

BROKER_CLASS=MyCustomBroker
BROKER_TEMPLATES=/path/to/custom/templates
SYSTEM_NAMESPACE=knative-eventing \
  go test -count=1 -v -tags=e2e -run Smoke_PingSource ./test/rekt/...
Custom templates

The minimum shape of a custom template for namespaced resources:

apiVersion: rando.api/v1
kind: MyResource
metadata:
  name: { { .name } }
  namespace: { { .namespace } }
spec:
  any:
    thing: that
  is: required

See ./resources for examples.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL