framework

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = &ConfigStruct{}
View Source
var ProxyBase = proxy.Factory(&proxyv1alpha2.Proxy{
	Spec: proxyv1alpha2.ProxySpec{
		Development: true,
		Domain:      "e2e.f110.dev",
		Replicas:    3,
		CertificateAuthority: &proxyv1alpha2.CertificateAuthoritySpec{
			Local: &proxyv1alpha2.LocalCertificateAuthoritySpec{
				Name: "e2e",
			},
		},
		BackendSelector: &proxyv1alpha2.LabelSelector{
			LabelSelector: metav1.LabelSelector{
				MatchLabels: map[string]string{"instance": "e2e"},
			},
		},
		RoleSelector: &proxyv1alpha2.LabelSelector{
			LabelSelector: metav1.LabelSelector{
				MatchLabels: map[string]string{"instance": "e2e"},
			},
		},
		IdentityProvider: proxyv1alpha2.IdentityProviderSpec{
			Provider: "google",
			ClientId: "e2e",
		},
		IssuerRef: certmanagermetav1.ObjectReference{
			Kind: "ClusterIssuer",
			Name: "self-signed",
		},
	},
}, k8sfactory.Name("e2e"), k8sfactory.Namespace(metav1.NamespaceDefault), proxy.EtcdDataStore, proxy.CookieSession)

Functions

func Flags

func Flags(fs *flag.FlagSet)

Types

type Agent added in v0.12.0

type Agent struct {
	// contains filtered or unexported fields
}

func (*Agent) Get added in v0.12.0

func (a *Agent) Get(m *btesting.Matcher, backend *proxyv1alpha2.Backend, body io.Reader) bool

func (*Agent) GetDashboard added in v0.12.0

func (a *Agent) GetDashboard(m *btesting.Matcher) bool

type ConfigStruct

type ConfigStruct struct {
	RandomSeed         int64
	ProxyVersion       string
	CRDDir             string
	ClusterVersion     string
	Verbose            bool
	KindFile           string
	OperatorImageFile  string
	ProxyImageFile     string
	RPCImageFile       string
	DashboardImageFile string
	SidecarImageFile   string
	BuildVersion       string
	AllInOneManifest   string
	Step               bool
	Retain             bool
}

type EtcdCluster added in v0.12.0

type EtcdCluster struct {
	*etcdv1alpha2.EtcdCluster
	// contains filtered or unexported fields
}

func (*EtcdCluster) Client added in v0.12.0

func (*EtcdCluster) Destroy added in v0.12.0

func (c *EtcdCluster) Destroy(client *client.Set)

func (*EtcdCluster) EqualVersion added in v0.12.0

func (c *EtcdCluster) EqualVersion(m *btesting.Matcher, version string)

func (*EtcdCluster) HaveEmptyDir added in v0.12.0

func (c *EtcdCluster) HaveEmptyDir(m *btesting.Matcher)

func (*EtcdCluster) HavePVC added in v0.12.0

func (c *EtcdCluster) HavePVC(m *btesting.Matcher)

func (*EtcdCluster) NumOfPods added in v0.12.0

func (c *EtcdCluster) NumOfPods(m *btesting.Matcher, length int)

func (*EtcdCluster) Ready added in v0.12.0

func (c *EtcdCluster) Ready(m *btesting.Matcher)

func (*EtcdCluster) Reload added in v0.12.0

func (c *EtcdCluster) Reload()

func (*EtcdCluster) Update added in v0.14.0

func (c *EtcdCluster) Update(m *btesting.Matcher, client *client.Set, traits ...k8sfactory.Trait)

func (*EtcdCluster) WaitBecome added in v0.14.0

func (c *EtcdCluster) WaitBecome(m *btesting.Matcher, client *client.Set, status etcdv1alpha2.EtcdClusterPhase)

type EtcdClusters added in v0.12.0

type EtcdClusters struct {
	// contains filtered or unexported fields
}

func (*EtcdClusters) EtcdCluster added in v0.12.0

func (e *EtcdClusters) EtcdCluster(name string) *EtcdCluster

func (*EtcdClusters) Reload added in v0.12.0

func (e *EtcdClusters) Reload(name string) error

func (*EtcdClusters) Setup added in v0.12.0

func (e *EtcdClusters) Setup(m *btesting.Matcher, traits ...k8sfactory.Trait) bool

type Framework added in v0.12.0

type Framework struct {
	*btesting.BehaviorDriven

	Proxy        *Proxy
	EtcdClusters *EtcdClusters
	// contains filtered or unexported fields
}

func New added in v0.12.0

func New(t *testing.T, conf *rest.Config) *Framework

func (*Framework) Client added in v0.12.0

func (f *Framework) Client() *client.Set

func (*Framework) CoreClient added in v0.12.0

func (f *Framework) CoreClient() *kubernetes.Clientset

func (*Framework) Execute added in v0.12.0

func (f *Framework) Execute()

type Proxy added in v0.12.0

type Proxy struct {
	Backend *proxyv1alpha2.Backend
	// contains filtered or unexported fields
}

func (*Proxy) Agent added in v0.12.0

func (p *Proxy) Agent(clientCert bool) *Agent

func (*Proxy) Setup added in v0.12.0

func (p *Proxy) Setup(m *btesting.Matcher, testUserId string) bool

Jump to

Keyboard shortcuts

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