integration

package
v1.11.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseSuite

type BaseSuite struct {
	suite.Suite
	TestControllers map[string]*TestController
}

func (*BaseSuite) AfterTest

func (suite *BaseSuite) AfterTest(suiteName, testName string)

AfterTest stops the controllers and delete the entry from the test map

func (*BaseSuite) BeforeTest

func (suite *BaseSuite) BeforeTest(suiteName, testName string)

BeforeTest: - create a tempDir for haproxy config + maps + .... - prepares and sets some common default start parameters for haproxy controller :

  • "-e", "-t" and "--config-dir"

To customize the controller start parameters, refer (as example) to

func (suite *DisableConfigSnippetSuite) BeforeTest(suiteName, testName string) {

func (*BaseSuite) ExpectHaproxyConfigContains

func (suite *BaseSuite) ExpectHaproxyConfigContains(s string, count int)

func (*BaseSuite) StartController

func (suite *BaseSuite) StartController()

StartController starts a controller It is not started in BeforeTest() or SetupSubTest() but must be called when desired in the test/subtest.

func (*BaseSuite) StopController

func (suite *BaseSuite) StopController()

type TestController

type TestController struct {
	TempDir    string
	Controller *c.HAProxyController
	Store      store.K8s
	EventChan  chan k8s.SyncDataEvent
	OSArgs     utils.OSArgs
}

Jump to

Keyboard shortcuts

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