Skip to content

Commit

Permalink
PWX-33339: Stashstrategy tests with multiple migrations and checking …
Browse files Browse the repository at this point in the history
…for the resource getting reused. (#1522)

Added test for failback with stash strategy.
  • Loading branch information
diptiranjanpx authored Oct 11, 2023
1 parent 4114dd8 commit 9c01d43
Show file tree
Hide file tree
Showing 2 changed files with 341 additions and 4 deletions.
3 changes: 1 addition & 2 deletions test/integration_test/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1069,8 +1069,8 @@ func deactivateAppUsingStorkctl(namespace string, runInSource bool) error {
cmd := storkctl.NewCommand(factory, os.Stdin, os.Stdout, os.Stderr)
cmdArgs := []string{"deactivate", "migrations", "-n", namespace}

err := setSourceKubeConfig()
if runInSource {
err := setSourceKubeConfig()
if err != nil {
return fmt.Errorf("setting kubeconfig to source failed during deactivate migrations %v", err)
}
Expand All @@ -1093,7 +1093,6 @@ func deactivateAppUsingStorkctl(namespace string, runInSource bool) error {
}
cmdArgs = append(cmdArgs, []string{"--kubeconfig", srcKubeconfigPath}...)
} else {
err := setDestinationKubeConfig()
if err != nil {
return fmt.Errorf("setting kubeconfig to destination failed during deactivate migrations %v", err)
}
Expand Down
Loading

0 comments on commit 9c01d43

Please sign in to comment.