Documentation
¶
Index ¶
- Constants
- func OpenSourceTestCases() []runner.TestCase
- type AppUptimeTestCase
- func (tc *AppUptimeTestCase) AfterBackup(config Config)
- func (tc *AppUptimeTestCase) AfterRestore(config Config)
- func (tc *AppUptimeTestCase) BeforeBackup(config Config)
- func (tc *AppUptimeTestCase) CheckDeployment(config Config)
- func (tc *AppUptimeTestCase) Cleanup(config Config)
- func (tc *AppUptimeTestCase) EnsureAfterSelectiveRestore(config Config)
- func (tc *AppUptimeTestCase) Name() string
- type CfAppTestCase
- func (tc *CfAppTestCase) AfterBackup(config Config)
- func (tc *CfAppTestCase) AfterRestore(config Config)
- func (tc *CfAppTestCase) BeforeBackup(config Config)
- func (tc *CfAppTestCase) CheckDeployment(config Config)
- func (tc *CfAppTestCase) Cleanup(config Config)
- func (tc *CfAppTestCase) EnsureAfterSelectiveRestore(config Config)
- func (tc *CfAppTestCase) Name() string
- type CfCredhubSSITestCase
- func (tc *CfCredhubSSITestCase) AfterBackup(config Config)
- func (tc *CfCredhubSSITestCase) AfterRestore(config Config)
- func (tc *CfCredhubSSITestCase) BeforeBackup(config Config)
- func (tc *CfCredhubSSITestCase) CheckDeployment(config Config)
- func (tc *CfCredhubSSITestCase) Cleanup(config Config)
- func (tc *CfCredhubSSITestCase) EnsureAfterSelectiveRestore(config Config)
- func (tc *CfCredhubSSITestCase) GetGoVersionFromGoModFile() string
- func (tc *CfCredhubSSITestCase) Name() string
- type CfNetworkingTestCase
- func (tc *CfNetworkingTestCase) AfterBackup(config Config)
- func (tc *CfNetworkingTestCase) AfterRestore(config Config)
- func (tc *CfNetworkingTestCase) BeforeBackup(config Config)
- func (tc *CfNetworkingTestCase) CheckDeployment(config Config)
- func (tc *CfNetworkingTestCase) Cleanup(config Config)
- func (tc *CfNetworkingTestCase) EnsureAfterSelectiveRestore(config Config)
- func (tc *CfNetworkingTestCase) Name() string
- type CfRouterGroupTestCase
- func (tc *CfRouterGroupTestCase) AfterBackup(config Config)
- func (tc *CfRouterGroupTestCase) AfterRestore(config Config)
- func (tc *CfRouterGroupTestCase) BeforeBackup(config Config)
- func (tc *CfRouterGroupTestCase) CheckDeployment(config Config)
- func (tc *CfRouterGroupTestCase) Cleanup(config Config)
- func (tc *CfRouterGroupTestCase) EnsureAfterSelectiveRestore(config Config)
- func (tc *CfRouterGroupTestCase) Name() string
- type CfUaaTestCase
- func (tc *CfUaaTestCase) AfterBackup(config Config)
- func (tc *CfUaaTestCase) AfterRestore(config Config)
- func (tc *CfUaaTestCase) BeforeBackup(config Config)
- func (tc *CfUaaTestCase) CheckDeployment(config Config)
- func (tc *CfUaaTestCase) Cleanup(config Config)
- func (tc *CfUaaTestCase) EnsureAfterSelectiveRestore(config Config)
- func (tc *CfUaaTestCase) Name() string
- type NFSTestCase
- func (tc *NFSTestCase) AfterBackup(config Config)
- func (tc *NFSTestCase) AfterRestore(config Config)
- func (tc *NFSTestCase) BeforeBackup(config Config)
- func (tc *NFSTestCase) CheckDeployment(config Config)
- func (tc *NFSTestCase) Cleanup(config Config)
- func (tc *NFSTestCase) EnsureAfterSelectiveRestore(config Config)
- func (tc *NFSTestCase) Name() string
- type SMBTestCase
- func (tc *SMBTestCase) AfterBackup(config Config)
- func (tc *SMBTestCase) AfterRestore(config Config)
- func (tc *SMBTestCase) BeforeBackup(config Config)
- func (tc *SMBTestCase) CheckDeployment(config Config)
- func (tc *SMBTestCase) Cleanup(config Config)
- func (tc *SMBTestCase) EnsureAfterSelectiveRestore(config Config)
- func (tc *SMBTestCase) Name() string
Constants ¶
const CURL_ERROR_FOR_404 = 22
Variables ¶
This section is empty.
Functions ¶
func OpenSourceTestCases ¶
Types ¶
type AppUptimeTestCase ¶
type AppUptimeTestCase struct {
// contains filtered or unexported fields
}
func NewAppUptimeTestCase ¶
func NewAppUptimeTestCase() *AppUptimeTestCase
func (*AppUptimeTestCase) AfterBackup ¶
func (tc *AppUptimeTestCase) AfterBackup(config Config)
func (*AppUptimeTestCase) AfterRestore ¶
func (tc *AppUptimeTestCase) AfterRestore(config Config)
func (*AppUptimeTestCase) BeforeBackup ¶
func (tc *AppUptimeTestCase) BeforeBackup(config Config)
func (*AppUptimeTestCase) CheckDeployment ¶
func (tc *AppUptimeTestCase) CheckDeployment(config Config)
func (*AppUptimeTestCase) Cleanup ¶
func (tc *AppUptimeTestCase) Cleanup(config Config)
func (*AppUptimeTestCase) EnsureAfterSelectiveRestore ¶
func (tc *AppUptimeTestCase) EnsureAfterSelectiveRestore(config Config)
func (*AppUptimeTestCase) Name ¶
func (tc *AppUptimeTestCase) Name() string
type CfAppTestCase ¶
type CfAppTestCase struct {
// contains filtered or unexported fields
}
func NewCfAppTestCase ¶
func NewCfAppTestCase() *CfAppTestCase
func (*CfAppTestCase) AfterBackup ¶
func (tc *CfAppTestCase) AfterBackup(config Config)
func (*CfAppTestCase) AfterRestore ¶
func (tc *CfAppTestCase) AfterRestore(config Config)
func (*CfAppTestCase) BeforeBackup ¶
func (tc *CfAppTestCase) BeforeBackup(config Config)
func (*CfAppTestCase) CheckDeployment ¶
func (tc *CfAppTestCase) CheckDeployment(config Config)
func (*CfAppTestCase) Cleanup ¶
func (tc *CfAppTestCase) Cleanup(config Config)
func (*CfAppTestCase) EnsureAfterSelectiveRestore ¶
func (tc *CfAppTestCase) EnsureAfterSelectiveRestore(config Config)
func (*CfAppTestCase) Name ¶
func (tc *CfAppTestCase) Name() string
type CfCredhubSSITestCase ¶
type CfCredhubSSITestCase struct {
// contains filtered or unexported fields
}
func NewCfCredhubSSITestCase ¶
func NewCfCredhubSSITestCase() *CfCredhubSSITestCase
func (*CfCredhubSSITestCase) AfterBackup ¶
func (tc *CfCredhubSSITestCase) AfterBackup(config Config)
func (*CfCredhubSSITestCase) AfterRestore ¶
func (tc *CfCredhubSSITestCase) AfterRestore(config Config)
func (*CfCredhubSSITestCase) BeforeBackup ¶
func (tc *CfCredhubSSITestCase) BeforeBackup(config Config)
func (*CfCredhubSSITestCase) CheckDeployment ¶
func (tc *CfCredhubSSITestCase) CheckDeployment(config Config)
func (*CfCredhubSSITestCase) Cleanup ¶
func (tc *CfCredhubSSITestCase) Cleanup(config Config)
func (*CfCredhubSSITestCase) EnsureAfterSelectiveRestore ¶
func (tc *CfCredhubSSITestCase) EnsureAfterSelectiveRestore(config Config)
func (*CfCredhubSSITestCase) GetGoVersionFromGoModFile ¶
func (tc *CfCredhubSSITestCase) GetGoVersionFromGoModFile() string
func (*CfCredhubSSITestCase) Name ¶
func (tc *CfCredhubSSITestCase) Name() string
type CfNetworkingTestCase ¶
type CfNetworkingTestCase struct {
// contains filtered or unexported fields
}
func NewCfNetworkingTestCase ¶
func NewCfNetworkingTestCase() *CfNetworkingTestCase
func (*CfNetworkingTestCase) AfterBackup ¶
func (tc *CfNetworkingTestCase) AfterBackup(config Config)
func (*CfNetworkingTestCase) AfterRestore ¶
func (tc *CfNetworkingTestCase) AfterRestore(config Config)
func (*CfNetworkingTestCase) BeforeBackup ¶
func (tc *CfNetworkingTestCase) BeforeBackup(config Config)
func (*CfNetworkingTestCase) CheckDeployment ¶
func (tc *CfNetworkingTestCase) CheckDeployment(config Config)
func (*CfNetworkingTestCase) Cleanup ¶
func (tc *CfNetworkingTestCase) Cleanup(config Config)
func (*CfNetworkingTestCase) EnsureAfterSelectiveRestore ¶
func (tc *CfNetworkingTestCase) EnsureAfterSelectiveRestore(config Config)
func (*CfNetworkingTestCase) Name ¶
func (tc *CfNetworkingTestCase) Name() string
type CfRouterGroupTestCase ¶
type CfRouterGroupTestCase struct {
// contains filtered or unexported fields
}
CfRouterGroupTestCase holds common variables across roter group testcases.
func NewRouterGroupTestCase ¶
func NewRouterGroupTestCase() *CfRouterGroupTestCase
NewRouterGroupTestCase creates an instance with random id.
func (*CfRouterGroupTestCase) AfterBackup ¶
func (tc *CfRouterGroupTestCase) AfterBackup(config Config)
AfterBackup is run after the bbr is done backing up the database. The function inserts a dummy entry into router group table. This entry should not exist once restore is performed later.
It verifies that the goroutine spawned in BeforeBackup verified that reads were always available during the backup.
It also spawns a goroutine to check that reads are not available during the restore operation after AfterBackup is called.
func (*CfRouterGroupTestCase) AfterRestore ¶
func (tc *CfRouterGroupTestCase) AfterRestore(config Config)
AfterRestore is run after the bbr is done restoring the database. The function compares the post restore router group table with pre restore router group table.
It verifies that the goroutine spawned in AfterBackup verified that reads were not always available during the restore.
func (*CfRouterGroupTestCase) BeforeBackup ¶
func (tc *CfRouterGroupTestCase) BeforeBackup(config Config)
BeforeBackup is run before the bbr backs up the router_group table. The function fetches and stores a snapshot of router_group table for later verification.
It also spawns a goroutine to check that reads are always available during the backup.
func (*CfRouterGroupTestCase) CheckDeployment ¶
func (tc *CfRouterGroupTestCase) CheckDeployment(config Config)
func (*CfRouterGroupTestCase) Cleanup ¶
func (tc *CfRouterGroupTestCase) Cleanup(config Config)
Cleanup is called at the end to remove the test artifacts left behind.
func (*CfRouterGroupTestCase) EnsureAfterSelectiveRestore ¶
func (tc *CfRouterGroupTestCase) EnsureAfterSelectiveRestore(config Config)
func (*CfRouterGroupTestCase) Name ¶
func (tc *CfRouterGroupTestCase) Name() string
type CfUaaTestCase ¶
type CfUaaTestCase struct {
// contains filtered or unexported fields
}
func NewCfUaaTestCase ¶
func NewCfUaaTestCase() *CfUaaTestCase
func (*CfUaaTestCase) AfterBackup ¶
func (tc *CfUaaTestCase) AfterBackup(config Config)
func (*CfUaaTestCase) AfterRestore ¶
func (tc *CfUaaTestCase) AfterRestore(config Config)
func (*CfUaaTestCase) BeforeBackup ¶
func (tc *CfUaaTestCase) BeforeBackup(config Config)
func (*CfUaaTestCase) CheckDeployment ¶
func (tc *CfUaaTestCase) CheckDeployment(config Config)
func (*CfUaaTestCase) Cleanup ¶
func (tc *CfUaaTestCase) Cleanup(config Config)
func (*CfUaaTestCase) EnsureAfterSelectiveRestore ¶
func (tc *CfUaaTestCase) EnsureAfterSelectiveRestore(config Config)
func (*CfUaaTestCase) Name ¶
func (tc *CfUaaTestCase) Name() string
type NFSTestCase ¶
type NFSTestCase struct {
// contains filtered or unexported fields
}
func NewNFSTestCases ¶
func NewNFSTestCases() *NFSTestCase
func (*NFSTestCase) AfterBackup ¶
func (tc *NFSTestCase) AfterBackup(config Config)
func (*NFSTestCase) AfterRestore ¶
func (tc *NFSTestCase) AfterRestore(config Config)
func (*NFSTestCase) BeforeBackup ¶
func (tc *NFSTestCase) BeforeBackup(config Config)
func (*NFSTestCase) CheckDeployment ¶
func (tc *NFSTestCase) CheckDeployment(config Config)
func (*NFSTestCase) Cleanup ¶
func (tc *NFSTestCase) Cleanup(config Config)
func (*NFSTestCase) EnsureAfterSelectiveRestore ¶
func (tc *NFSTestCase) EnsureAfterSelectiveRestore(config Config)
func (*NFSTestCase) Name ¶
func (tc *NFSTestCase) Name() string
type SMBTestCase ¶
type SMBTestCase struct {
// contains filtered or unexported fields
}
func NewSMBTestCases ¶
func NewSMBTestCases() *SMBTestCase
func (*SMBTestCase) AfterBackup ¶
func (tc *SMBTestCase) AfterBackup(config Config)
func (*SMBTestCase) AfterRestore ¶
func (tc *SMBTestCase) AfterRestore(config Config)
func (*SMBTestCase) BeforeBackup ¶
func (tc *SMBTestCase) BeforeBackup(config Config)
func (*SMBTestCase) CheckDeployment ¶
func (tc *SMBTestCase) CheckDeployment(config Config)
func (*SMBTestCase) Cleanup ¶
func (tc *SMBTestCase) Cleanup(config Config)
func (*SMBTestCase) EnsureAfterSelectiveRestore ¶
func (tc *SMBTestCase) EnsureAfterSelectiveRestore(config Config)
func (*SMBTestCase) Name ¶
func (tc *SMBTestCase) Name() string