Commit graph

20 commits

Author SHA1 Message Date
Rene Groeschke
5afd06ae57
[7.17] Update Gradle Wrapper to 8.2 (#96686) (#97484)
* Update Gradle Wrapper to 8.2 (#96686)

- Convention usage has been deprecated and was fixed in our build files
- Fix test dependencies and deprecation
2023-09-27 08:46:44 +02:00
Mark Vieira
a79da4fc55
Support providing test cluster keystore settings via lazy evaluation (#93765) (#93766)
This adds a `keystore` method to `LocalSpecBuilder` to provide secure
keystore settings via a `Supplier<String>` to allow for lazy-evaluated
settings, such as a secure setting that resolves to the address of
dependent cluster.
2023-02-14 03:44:03 -05:00
Mark Vieira
cf10666952
[7.17] Use absolute paths for logs locations in JVM options for test clusters (#93672) (#93675)
* Use absolute paths for logs locations in JVM options for test clusters (#93672)

# Conflicts:
#	test/test-clusters/src/main/java/org/elasticsearch/test/cluster/local/LocalClusterFactory.java

* Spotless
2023-02-09 18:57:01 -05:00
Mark Vieira
f647ce3390
Use shorter paths for test cluster working directories to avoid issues on Windows (#93570) (#93609)
# Conflicts:
#	test/test-clusters/src/main/java/org/elasticsearch/test/cluster/local/LocalClusterFactory.java
2023-02-08 18:32:38 -05:00
Mark Vieira
cdb0c6b892
Avoid copying test cluster distributions when possible (#93486) (#93601) 2023-02-08 14:29:06 -05:00
Mark Vieira
18a5be3c30
[7.17] Convert full cluster restart tests to new rest testing framework (#93422) (#93432)
* Convert full cluster restart tests to new rest testing framework (#93422)

# Conflicts:
#	qa/full-cluster-restart/build.gradle
#	qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/upgrades/FullClusterRestartIT.java
#	qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/upgrades/FullClusterRestartSettingsUpgradeIT.java
#	qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/upgrades/QueryBuilderBWCIT.java
#	x-pack/plugin/shutdown/qa/full-cluster-restart/build.gradle
#	x-pack/plugin/shutdown/qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/xpack/restart/FullClusterRestartIT.java
#	x-pack/qa/full-cluster-restart/build.gradle
#	x-pack/qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/xpack/restart/FullClusterRestartIT.java
#	x-pack/qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/xpack/restart/FullClusterRestartSettingsUpgradeIT.java
#	x-pack/qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/xpack/restart/MLModelDeploymentFullClusterRestartIT.java
#	x-pack/qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/xpack/restart/MlConfigIndexMappingsFullClusterRestartIT.java
#	x-pack/qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/xpack/restart/MlHiddenIndicesFullClusterRestartIT.java
#	x-pack/qa/full-cluster-restart/src/javaRestTest/resources/system_key

* Fixes

* Fix warning failures

* Fix heap dump path

* More fixes

* Fix test cluster security setup on Windows

* Use relative path for script execution

* More, more fixes

* Fix warning error

* More fixes

* Fix security warning
2023-02-02 17:58:30 -05:00
Mark Vieira
bfd8cd84c3
Make --debug-server-jvm work with new test framework (#93355) (#93361) 2023-01-31 10:49:07 -08:00
Mark Vieira
ef48222227
Fix MapperSizeClientYamlTestSuiteIT when FIPS is enabled (#93357) (#93365)
The issue with this test failure is actually that we were silently
failing to install the plugin under test into the cluster. The root
cause here was the FIPS security policy file was not copied into cluster
config directory before we attempting to run the plugin installer. Since
we pass the FIPS JVM arguments to all CLI tools as well this caused
plugin installation to fail. We now ensure that these files are copied
before we attempt to run _any_ ES tools.

Closes https://github.com/elastic/elasticsearch/issues/93303
2023-01-30 19:25:04 -05:00
Mark Vieira
1ef47c0d39
Additional fixes to FIPS testing using junit test clusters (#93248) (#93251) 2023-01-25 18:08:39 -05:00
Mark Vieira
78e5eb3d2f
Ensure initial_master_nodes includes only master-eligible nodes (#93212) (#93217) 2023-01-24 19:47:37 -05:00
Mark Vieira
90eb2db9c3
Convert ServiceAccountIT to new test clusters framework (#92604) (#92887) 2023-01-24 15:55:56 -08:00
Mark Vieira
e9af78c799
Add FIPS support to new junit-rule test clusters framework (#93021) (#93111) 2023-01-24 15:55:20 -08:00
Mark Vieira
b8af0f016b
Used a shared repo path for all nodes of a given cluster (#93006) (#93012)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2023-01-17 18:41:10 -05:00
Mark Vieira
689a2b3baf
[7.17] Convert smoke test multinode (#92774) (#92794)
* Convert smoke test multinode (#92774)

# Conflicts:
#	qa/smoke-test-multinode/build.gradle
#	qa/smoke-test-multinode/src/yamlRestTest/java/org/elasticsearch/smoketest/SmokeTestMultiNodeClientYamlTestSuiteIT.java

* Remove unknown roles from test cluster
2023-01-10 12:46:16 -05:00
Mark Vieira
9e1ec97dcf
[7.17] Migrate core rest tests with security to new testing framework (#92575) (#92686)
* Migrate core rest tests with security to new testing framework (#92575)

# Conflicts:
#	x-pack/qa/core-rest-tests-with-security/build.gradle

* Fixes

* More fixes

* More fixes

* More more fixes
2023-01-04 19:17:57 -05:00
Mark Vieira
0f28d1fcd4
[7.17] Add support for addition configuration files to test clusters framework (#92579) (#92603)
* Add support for addition configuration files to test clusters framework (#92579)

This adds the ability to supply arbitrary files to the config directory
of cluster nodes. Typically, this is used for security use cases, such
as providing for SSL certificates and trust stores.

This commit adds a few other features to enable more testing ues cases
as well, such as the ability to restart a cluster, as well as explicit
ordering of test cases withing a test class. This is needed for test
suites that need to execute some tests, restart the cluster, then
execute more in a particular order.
# Conflicts:
#	test/test-clusters/src/main/java/org/elasticsearch/test/cluster/local/LocalClusterHandle.java
#	x-pack/plugin/security/qa/basic-enable-security/build.gradle
#	x-pack/plugin/security/qa/basic-enable-security/src/javaRestTest/java/org/elasticsearch/xpack/security/EnableSecurityOnBasicLicenseIT.java
#	x-pack/qa/multi-node/src/javaRestTest/java/org/elasticsearch/multi_node/GlobalCheckpointSyncActionIT.java

* Fix static initialization of random value

* Remove unused imports

* Spotless
2022-12-29 15:02:07 -05:00
Mark Vieira
223786c051
[7.17] Fixes for module projects in new tests clusters and auto security config (#92533) (#92582)
* Fixes for module projects in new tests clusters and auto security config (#92533)

Fix an issue where the build cannot resolve a module dependency for the
current module project. Also add partial support for security auto-
configuration in test clusters.
# Conflicts:
#	build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/RestTestBasePlugin.java
#	modules/aggregations/build.gradle
#	modules/aggs-matrix-stats/src/yamlRestTest/java/org/elasticsearch/search/aggregations/matrix/MatrixStatsClientYamlTestSuiteIT.java
#	test/test-clusters/src/main/java/org/elasticsearch/test/cluster/local/LocalClusterHandle.java

* Post-merge fixes

* Spotless
2022-12-27 20:57:29 -05:00
Mark Vieira
b5c0d05ee6
Add support for keystore secure settings to test clusters (#92554) (#92557)
Adds support for adding secure settings to node keystore using the new
junit test clusters framework.
2022-12-23 13:24:33 -05:00
Mark Vieira
f1f937a2ce
Convert ccs-common-rest QA project to new test clusters framework (#92516) (#92538) 2022-12-22 22:03:55 -05:00
Mark Vieira
47c6fd34da
[7.17] Add JUnit rule based integration test cluster orchestration framework… (#92517)
This commit adds a new test framework for configuring and orchestrating
test clusters for both Java and YAML REST testing. This will eventually
replace the existing "test-clusters" Gradle plugin and the build-time
cluster orchestration.
2022-12-22 17:48:07 -08:00