fixtures

package
v2.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Timeout is the default timeout for waiting for a condition to be met.
	Timeout = 5 * time.Second
	// Interval is the default interval for polling for a condition to be met.
	Interval = 250 * time.Millisecond
	BaseDir  = "templates"
)
View Source
const (
	TestNamespacePrefix = "test-ns"
	TestDomainFooCom    = "*.foo.com"
)
View Source
const KnativeServingCrd = `` /* 428-byte string literal not displayed */
View Source
const KnativeServingInstance = `apiVersion: operator.knative.dev/v1beta1
kind: KnativeServing
metadata:
  name: knative-serving-instance
spec: {}
`
View Source
const KnativeServingSubscription = `` /* 329-byte string literal not displayed */
View Source
const OpenshiftClusterIngress = `` /* 144-byte string literal not displayed */
View Source
const OssmSubscription = `` /* 327-byte string literal not displayed */
View Source
const ServiceMeshControlPlaneCRD = `` /* 976-byte string literal not displayed */

Variables

View Source
var TestEmbeddedFiles embed.FS

TestEmbeddedFiles is an embedded filesystem that contains templates used specifically in tests files

Functions

func CreateFile added in v2.10.0

func CreateFile(dir, filename, content string) error

CreateFile creates a file with the given content in the specified directory.

func CreateSecret added in v2.10.0

func CreateSecret(name, namespace string) func(f *feature.Feature) error

func CreateSubscription

func CreateSubscription(client client.Client, namespace, subscriptionYaml string) error

func GetFeatureTracker added in v2.10.0

func GetFeatureTracker(cli client.Client, appNamespace, featureName string) (*featurev1.FeatureTracker, error)

func GetNamespace added in v2.10.0

func GetNamespace(client client.Client, namespace string) (*v1.Namespace, error)

func GetService added in v2.10.0

func GetService(client client.Client, namespace, name string) (*v1.Service, error)

func NewDSCInitialization added in v2.10.0

func NewDSCInitialization(ns string) *dsciv1.DSCInitialization

func NewNamespace

func NewNamespace(name string) *v1.Namespace

Types

This section is empty.

Jump to

Keyboard shortcuts

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