Documentation
¶
Index ¶
- Variables
- func RunTestCase(test VeleroBackupRestoreTest) error
- func TestFunc(test VeleroBackupRestoreTest) func()
- func TestFuncWithMultiIt(tests []VeleroBackupRestoreTest) func()
- type TestCase
- func (t *TestCase) Backup() error
- func (t *TestCase) Clean() error
- func (t *TestCase) CreateResources() error
- func (t *TestCase) Destroy() error
- func (t *TestCase) GetTestCase() *TestCase
- func (t *TestCase) GetTestMsg() *TestMSG
- func (t *TestCase) Init() error
- func (t *TestCase) Restore() error
- func (t *TestCase) StartRun() error
- func (t *TestCase) Verify() error
- type TestMSG
- type VeleroBackupRestoreTest
Constants ¶
This section is empty.
Variables ¶
View Source
var TestClientInstance TestClient
Functions ¶
func RunTestCase ¶
func RunTestCase(test VeleroBackupRestoreTest) error
func TestFunc ¶
func TestFunc(test VeleroBackupRestoreTest) func()
func TestFuncWithMultiIt ¶
func TestFuncWithMultiIt(tests []VeleroBackupRestoreTest) func()
Types ¶
type TestCase ¶
type TestCase struct { BackupName string RestoreName string NSBaseName string BackupArgs []string RestoreArgs []string NamespacesTotal int TestMsg *TestMSG Client TestClient Ctx context.Context NSIncluded *[]string UseVolumeSnapshots bool }
func (*TestCase) CreateResources ¶
func (*TestCase) GetTestCase ¶ added in v1.10.0
func (*TestCase) GetTestMsg ¶
type VeleroBackupRestoreTest ¶
type VeleroBackupRestoreTest interface { Init() error StartRun() error CreateResources() error Backup() error Destroy() error Restore() error Verify() error Clean() error GetTestMsg() *TestMSG GetTestCase() *TestCase }
The VeleroBackupRestoreTest interface is just could be suit for the cases that follow the test flow of create resources, backup, delete test resource, restore and verify. And the cases have similar execute function and similar data. it's both fine for you to use it or not which depends on your test patterns.
Click to show internal directories.
Click to hide internal directories.