Documentation ¶
Index ¶
- Constants
- Variables
- func ConditionReason[T conditions.GenericConditionType](conditionType T) func(any) string
- func ConditionStatus[T conditions.GenericConditionType](conditionType T) func(any) corev1.ConditionStatus
- func CustomResourceDefinition(t Test, name string) func(g gomega.Gomega) (*apiextv1.CustomResourceDefinition, error)
- func Deployment(t Test, name string, namespace string) func(g gomega.Gomega) (*appsv1.Deployment, error)
- func Deployments(t Test, namespace string, selector labels.Selector) func(g gomega.Gomega) ([]appsv1.Deployment, error)
- func ExtractFirstLoadBalancerIngressHostname() func(*netv1.Ingress) string
- func Ingress(t Test, name string, namespace string) func(g gomega.Gomega) (*netv1.Ingress, error)
- func Pod(t Test, name string, namespace string) func(g gomega.Gomega) (*corev1.Pod, error)
- func PodList(t Test, selector string, namespace string) func(g gomega.Gomega) (*corev1.PodList, error)
- func Resource(t Test, ri dynamic.ResourceInterface, un *unstructured.Unstructured) func(g gomega.Gomega) (*unstructured.Unstructured, error)
- func Service(t Test, name string, namespace string) func(g gomega.Gomega) (*corev1.Service, error)
- type Option
- type T
- func (t *T) Cleanup(f func() []runtime.Object)
- func (t *T) Client() *supportclient.Client
- func (t *T) Ctx() context.Context
- func (t *T) HTTPClient() *http.Client
- func (t *T) Helm() *helmsupport.Helm
- func (t *T) ID() string
- func (t *T) NewTestNamespace(options ...Option[*corev1.Namespace]) *corev1.Namespace
- func (t *T) T() *testing.T
- type Test
Constants ¶
Variables ¶
View Source
var ( TestTimeoutMini = durationFromEnvOrDefault("E2E_TEST_TIMEOUT_MINI", DefaultTestTimeoutMini) TestTimeoutShort = durationFromEnvOrDefault("E2E_TEST_TIMEOUT_SHORT", DefaultTestTimeoutShort) TestTimeoutMedium = durationFromEnvOrDefault("E2E_TEST_TIMEOUT_MEDIUM", DefaultTestTimeoutMedium) TestTimeoutLong = durationFromEnvOrDefault("E2E_TEST_TIMEOUT_LONG", DefaultTestTimeoutLong) DefaultEventuallyPollingInterval = 500 * time.Millisecond DefaultEventuallyTimeout = TestTimeoutLong DefaultConsistentlyDuration = 500 * time.Millisecond DefaultConsistentlyPollingInterval = 500 * time.Millisecond )
Functions ¶
func ConditionReason ¶
func ConditionReason[T conditions.GenericConditionType](conditionType T) func(any) string
func ConditionStatus ¶
func ConditionStatus[T conditions.GenericConditionType](conditionType T) func(any) corev1.ConditionStatus
func Deployment ¶
func Deployments ¶
func Resource ¶
func Resource(t Test, ri dynamic.ResourceInterface, un *unstructured.Unstructured) func(g gomega.Gomega) (*unstructured.Unstructured, error)
Types ¶
type T ¶
func (*T) Client ¶
func (t *T) Client() *supportclient.Client
func (*T) HTTPClient ¶
func (*T) Helm ¶
func (t *T) Helm() *helmsupport.Helm
func (*T) NewTestNamespace ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.