 Documentation
      ¶
      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 ¶
AfterTest stops the controllers and delete the entry from the test map
func (*BaseSuite) BeforeTest ¶
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 (*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
}
     Click to show internal directories. 
   Click to hide internal directories.