Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration test for clusterpairing using backuplocation #1039

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ram-infrac
Copy link
Contributor

What type of PR is this?

integration-test

What this PR does / why we need it:
Integration test for using backuplocation for clusterpair

Does this PR change a user-facing CRD or CLI?:
no

Is a release note needed?:
no

Does this change need to be cherry-picked to a release branch?:
yes, 2.9

@ram-infrac ram-infrac added the integration-test The change adds or updates an integration test label Feb 10, 2022
@ram-infrac ram-infrac self-assigned this Feb 10, 2022
func scheduleClusterPair(ctx *scheduler.Context, skipStorage, resetConfig bool, clusterPairDir string, reverse bool) error {
func scheduleClusterPair(t *testing.T, ctx *scheduler.Context, skipStorage, resetConfig bool, clusterPairDir string, reverse bool) error {
info := make(map[string]string)
enabled, err := strconv.ParseBool(os.Getenv(enableClusterPairBackupLocation))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: enabled is a vague variable name

@@ -558,12 +569,11 @@ func scheduleClusterPair(ctx *scheduler.Context, skipStorage, resetConfig bool,
}
}

info, err := volumeDriver.GetClusterPairingInfo()
info, err = volumeDriver.GetClusterPairingInfo()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will overwrite the info we modified above?

Copy link
Contributor

@Rohit-PX Rohit-PX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good as long as @lpitstickpstg 's comments are addressed.

@cnbu-jenkins
Copy link
Collaborator

Can one of the admins verify this patch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration-test The change adds or updates an integration test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants