func NoError(e error)
NoError panics if an error is passed, can be used to reduce test setup boilerplate where assertion libraries are not initialized
func Timeout() (time.Duration, error)
Timeout returns the value of TEST_TIMEOUT if present, otherwise it returns a default timeout of 60 seconds. Useful for writing tests which use internal frameworks such as Ginkgo/envtest that will try to try to set timeouts that may conflict with the --test_timeout value provided to Bazel via command line
Name | Synopsis |
---|---|
.. | |
f2 | |
examples | |
embed | |
kustomization | |
container | This is a very simple golang binary which will be packaged up into a container image, and referenced in a deployment manifest |
sharingdata | |
shared | |
fctx | Package fctx provides utilities for working with f2 test contexts. |
integration | |
x | Package x contains test framework extensions. |
bslauth | Package bslauth implements an f2 extension for working with BSL credentials |
ktest | |
envtest | Package envtest helps to set up various pieces of controller-runtime's envtest library to simplify writing K8s controller tests |
kpoll | Package kpoll provides a wrapper around gotest.tools/v3/poll to facilitate continually evaluating checks on K8s objects against a live cluster. |
kustomization | package kustomization provides a set of helpers useful when applying manifests to a k8s cluster during L2 integration tests |
postgres | Package postgres implements an f2 extension for working with PostgreSQL databases |
pstest | |
warehouse | Package warehouse implements a testing framework extension for working with Warehouse OCI packages and registries. |
fixtures | Package fixtures provides functions for loading embedded test fixtures used by various tests. |
framework | Package framework provides a bare-bones base framework that is intended to be embedded by other framework implementations (see test/{integration,e2e}/framework) |
config | Package config simplifies the declaration of configuration options. |
gcp | Package gcp provides test fraemwork utilities and configuration for integration tests against GCP. |
pubsub | |
integration | |
k8s | Package k8s provides test framework utilities for K8s-based unit and integration tests, supporting the ability to do both with the same test suite. |
envtest | Package envtest helps to set up various pieces of sigs.k8s.io/controller-runtime/pkg/envtest framework to simplify writing K8s controller tests |
skipper | |
rosa | |
snapshot | Package snapshot implements Go snapshot testing by writing expected test results to files (a snapshot of the expected results) and comparing actual test output against those files. |
examples |