@@ -9,15 +9,16 @@ import (
99 "testing"
1010 "time"
1111
12- storkapi "github.com/libopenstorage/stork/pkg/apis/stork/v1alpha1"
13- "github.com/libopenstorage/stork/pkg/resourcecollector"
1412 "github.com/portworx/sched-ops/k8s/core"
1513 storkops "github.com/portworx/sched-ops/k8s/stork"
1614 "github.com/portworx/torpedo/pkg/asyncdr"
1715 "github.com/sirupsen/logrus"
1816 "github.com/stretchr/testify/require"
1917 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2018 "k8s.io/client-go/tools/clientcmd"
19+
20+ storkapi "github.com/libopenstorage/stork/pkg/apis/stork/v1alpha1"
21+ "github.com/libopenstorage/stork/pkg/resourcecollector"
2122)
2223
2324var (
@@ -92,7 +93,7 @@ func migrationStashStrategy(t *testing.T, appName string, appPath string) {
9293 err = setSourceKubeConfig ()
9394 require .NoError (t , err , "Error setting source kubeconfig" )
9495
95- err = scheduleBidirectionalClusterPair (clusterPairName , appData .Ns , "" , storkapi .BackupLocationType (backupLocation ), backupSecret )
96+ err = scheduleBidirectionalClusterPair (clusterPairName , appData .Ns , "" , storkapi .BackupLocationType (backupLocation ), backupSecret , nil )
9697 require .NoError (t , err , "Error creating cluster pair" )
9798
9899 err = setSourceKubeConfig ()
@@ -294,7 +295,7 @@ func testMigrationStashStrategyWithStartApplication(t *testing.T) {
294295 err = setSourceKubeConfig ()
295296 require .NoError (t , err , "Error setting source kubeconfig" )
296297
297- err = scheduleBidirectionalClusterPair (clusterPairName , appData .Ns , "" , storkapi .BackupLocationType (backupLocation ), backupSecret )
298+ err = scheduleBidirectionalClusterPair (clusterPairName , appData .Ns , "" , storkapi .BackupLocationType (backupLocation ), backupSecret , nil )
298299 require .NoError (t , err , "Error creating cluster pair" )
299300
300301 // set stashstrategy
@@ -393,7 +394,7 @@ func testMultipleTimesMigrationsWithStashStrategy(t *testing.T) {
393394 err = setSourceKubeConfig ()
394395 require .NoError (t , err , "Error setting source kubeconfig" )
395396
396- err = scheduleBidirectionalClusterPair (clusterPairName , appData .Ns , "" , storkapi .BackupLocationType (backupLocation ), backupSecret )
397+ err = scheduleBidirectionalClusterPair (clusterPairName , appData .Ns , "" , storkapi .BackupLocationType (backupLocation ), backupSecret , nil )
397398 require .NoError (t , err , "Error creating cluster pair" )
398399
399400 // set stashstrategy
@@ -535,7 +536,7 @@ func testFailbackWithStashStrategy(t *testing.T) {
535536
536537 // creating migration and clusterpair in kube-system namespace as we have to delete the ns in source for failback
537538 migrationNamespace := "kube-system"
538- err = scheduleBidirectionalClusterPair (clusterPairName , migrationNamespace , "" , storkapi .BackupLocationType (backupLocation ), backupSecret )
539+ err = scheduleBidirectionalClusterPair (clusterPairName , migrationNamespace , "" , storkapi .BackupLocationType (backupLocation ), backupSecret , nil )
539540 require .NoError (t , err , "Error creating cluster pair" )
540541
541542 // set stashstrategy
0 commit comments