Revert "Always test against default distribution when in a FIPS JVM (#51273)"
This reverts commit0169498711
. This reverts commitc5a032b594
.
This commit is contained in:
parent
0169498711
commit
c08c282c0e
|
@ -34,8 +34,6 @@ import org.elasticsearch.gradle.precommit.PrecommitTasks
|
|||
import org.elasticsearch.gradle.test.ErrorReportingTestListener
|
||||
import org.elasticsearch.gradle.testclusters.ElasticsearchCluster
|
||||
import org.elasticsearch.gradle.testclusters.TestClustersPlugin
|
||||
import org.elasticsearch.gradle.testclusters.TestDistribution
|
||||
import org.elasticsearch.gradle.tool.Boilerplate
|
||||
import org.gradle.api.Action
|
||||
import org.gradle.api.GradleException
|
||||
import org.gradle.api.InvalidUserDataException
|
||||
|
@ -160,7 +158,6 @@ class BuildPlugin implements Plugin<Project> {
|
|||
NamedDomainObjectContainer<ElasticsearchCluster> testClusters = project.extensions.findByName(TestClustersPlugin.EXTENSION_NAME) as NamedDomainObjectContainer<ElasticsearchCluster>
|
||||
if (testClusters != null) {
|
||||
testClusters.all { ElasticsearchCluster cluster ->
|
||||
cluster.setTestDistribution(TestDistribution.DEFAULT)
|
||||
cluster.systemProperty 'javax.net.ssl.trustStorePassword', 'password'
|
||||
cluster.systemProperty 'javax.net.ssl.keyStorePassword', 'password'
|
||||
// Can't use our DiagnosticTrustManager with SunJSSE in FIPS mode
|
||||
|
|
|
@ -232,8 +232,7 @@ public class ElasticsearchNode implements TestClusterConfiguration {
|
|||
@Override
|
||||
public void setTestDistribution(TestDistribution testDistribution) {
|
||||
requireNonNull(testDistribution, "null distribution passed when configuring test cluster `" + this + "`");
|
||||
// TODO: Uncomment this workaround once we remove all the globalInfo.ready { } stuff
|
||||
// checkFrozen();
|
||||
checkFrozen();
|
||||
this.testDistribution = testDistribution;
|
||||
for (ElasticsearchDistribution distribution : distributions) {
|
||||
setDistributionType(distribution, testDistribution);
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
import org.elasticsearch.gradle.info.BuildParams
|
||||
|
||||
apply plugin: 'elasticsearch.testclusters'
|
||||
apply plugin: 'elasticsearch.esplugin'
|
||||
|
||||
|
@ -35,9 +33,7 @@ dependencies {
|
|||
}
|
||||
|
||||
testClusters.integTest {
|
||||
rootProject.globalInfo.ready {
|
||||
testDistribution = BuildParams.inFipsJvm ? 'DEFAULT' : 'OSS'
|
||||
}
|
||||
testDistribution = 'oss'
|
||||
}
|
||||
|
||||
test.enabled = false
|
||||
|
|
Loading…
Reference in New Issue