Add migration E2E test

Signed-off-by: danfengl <danfengl@vmware.com>
This commit is contained in:
danfengl
2022-08-09 08:31:39 +00:00
parent abe601042c
commit fb445b3c0d
28 changed files with 509 additions and 187 deletions
+3 -7
View File
@@ -73,9 +73,7 @@ var TestClientInstance TestClient
func TestFunc(test VeleroBackupRestoreTest) func() {
return func() {
By("Create test client instance", func() {
var err error
TestClientInstance, err = NewTestClient()
Expect(err).NotTo(HaveOccurred(), "Failed to instantiate cluster client for backup tests")
TestClientInstance = *VeleroCfg.ClientToInstallVelero
})
Expect(test.Init()).To(Succeed(), "Failed to instantiate test cases")
BeforeEach(func() {
@@ -99,13 +97,11 @@ func TestFunc(test VeleroBackupRestoreTest) func() {
func TestFuncWithMultiIt(tests []VeleroBackupRestoreTest) func() {
return func() {
var err error
var countIt int
By("Create test client instance", func() {
TestClientInstance, err = NewTestClient()
Expect(err).NotTo(HaveOccurred(), "Failed to instantiate cluster client for backup tests")
TestClientInstance = *VeleroCfg.ClientToInstallVelero
})
//Expect(err).To(Succeed(), "Failed to instantiate cluster client for backup tests")
for k := range tests {
Expect(tests[k].Init()).To(Succeed(), fmt.Sprintf("Failed to instantiate test %s case", tests[k].GetTestMsg().Desc))
}