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

Enable not wiping cluster settings after REST test #33575

Merged
merged 1 commit into from
Sep 10, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,16 @@ protected boolean preserveTemplatesUponCompletion() {
return false;
}

/**
* Controls whether or not to preserve cluster settings upon completion of the test. The default implementation is to remove all cluster
* settings.
*
* @return true if cluster settings should be preserved and otherwise false
*/
protected boolean preserveClusterSettings() {
return false;
}

/**
* Returns whether to preserve the repositories on completion of this test.
* Defaults to not preserving repos. See also
Expand Down Expand Up @@ -295,7 +305,11 @@ private void wipeCluster() throws IOException {
}

wipeSnapshots();
wipeClusterSettings();

// wipe cluster settings
if (preserveClusterSettings() == false) {
wipeClusterSettings();
}
}

/**
Expand Down