Skip to content
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