k8s

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestSuite

type TestSuite struct {
	suite.Suite
	// contains filtered or unexported fields
}

TestSuite is a suite for e2e testing on k8s clusters.

func (*TestSuite) AfterTest

func (s *TestSuite) AfterTest(_, _ string)

AfterTest exports logs after each test.

func (*TestSuite) BeforeTest

func (s *TestSuite) BeforeTest(_, testName string)

BeforeTest creates the test namespace before each test, and removes the previous test namespace.

func (*TestSuite) RunOnAllDataplaneTypes

func (s *TestSuite) RunOnAllDataplaneTypes(test func(cfg *util.PeerConfig))

RunOnAllDataplaneTypes runs the given test function on all dataplane types (envoy / go).

func (*TestSuite) RunSubTest

func (s *TestSuite) RunSubTest(subTestName string, subtest func()) bool

RunSubTest creates the test namespace before each subtest, runs the subtest, and finally export logs.

func (*TestSuite) SetupSuite

func (s *TestSuite) SetupSuite()

SetupSuite creates the k8s kind clusters and the clusterlink certificates.

func (*TestSuite) TearDownSuite

func (s *TestSuite) TearDownSuite()

TearDownSuite deletes the k8s kind clusters.

func (*TestSuite) TestConnectivity

func (s *TestSuite) TestConnectivity()

func (*TestSuite) TestDynamicPeerCertificates added in v0.3.0

func (s *TestSuite) TestDynamicPeerCertificates()

func (*TestSuite) TestExportHost added in v0.1.0

func (s *TestSuite) TestExportHost()

func (*TestSuite) TestExportServiceNotExist added in v0.1.0

func (s *TestSuite) TestExportServiceNotExist()

func (*TestSuite) TestImportConflictingService added in v0.1.0

func (s *TestSuite) TestImportConflictingService()

func (*TestSuite) TestImportConflictingTargetPort added in v0.1.0

func (s *TestSuite) TestImportConflictingTargetPort()

func (*TestSuite) TestImportDelete added in v0.1.0

func (s *TestSuite) TestImportDelete()

func (*TestSuite) TestImportInvalidName added in v0.2.0

func (s *TestSuite) TestImportInvalidName()

this test requires K8s 1.29+, as it relies on x-kubernetes-validations.

func (*TestSuite) TestImportMerge added in v0.2.0

func (s *TestSuite) TestImportMerge()

func (*TestSuite) TestImportUnprivilegedNamespace added in v0.1.0

func (s *TestSuite) TestImportUnprivilegedNamespace()

func (*TestSuite) TestLoadBalancingRandom added in v0.2.1

func (s *TestSuite) TestLoadBalancingRandom()

func (*TestSuite) TestLoadBalancingRoundRobin added in v0.2.1

func (s *TestSuite) TestLoadBalancingRoundRobin()

func (*TestSuite) TestLoadBalancingStatic added in v0.2.1

func (s *TestSuite) TestLoadBalancingStatic()

func (*TestSuite) TestOperator

func (s *TestSuite) TestOperator()

TestOperator test the operator functionality.

func (*TestSuite) TestPeerMultipleGateways added in v0.1.0

func (s *TestSuite) TestPeerMultipleGateways()

func (*TestSuite) TestPeerStatus added in v0.1.0

func (s *TestSuite) TestPeerStatus()

func (*TestSuite) TestPerformance

func (s *TestSuite) TestPerformance()

func (*TestSuite) TestPodAttributes added in v0.4.0

func (s *TestSuite) TestPodAttributes()

func (*TestSuite) TestPolicyLabels added in v0.2.0

func (s *TestSuite) TestPolicyLabels()

func (*TestSuite) TestPrivilegedPolicies added in v0.2.0

func (s *TestSuite) TestPrivilegedPolicies()

func (*TestSuite) TestRedundancy added in v0.4.0

func (s *TestSuite) TestRedundancy()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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