Commit 08b8d11
authored
Add support for switching distribution for all integration tests (#30874)
* remove left-over comment
* make sure of the property for plugins
* skip installing modules if these exist in the distribution
* Log the distrbution being ran
* Don't allow running with integ-tests-zip passed externally
* top level x-pack/qa can't run with oss distro
* Add support for matching objects in lists
Makes it possible to have a key that points to a list and assert that a
certain object is present in the list. All keys have to be present and
values have to match. The objects in the source list may have additional
fields.
example:
```
match: { 'nodes.$master.plugins': { name: ingest-attachment } }
```
* Update plugin and module tests to work with other distributions
Some of the tests expected that the integration tests will always be ran
with the `integ-test-zip` distribution so that there will be no other
plugins loaded.
With this change, we check for the presence of the plugin without
assuming exclusivity.
* Allow modules to run on other distros as well
To match the behavior of tets.distributions
* Add and use a new `contains` assertion
Replaces the previus changes that caused `match` to do a partial match.
* Implement PR review comments1 parent 544e473 commit 08b8d11
File tree
33 files changed
+174
-65
lines changed- buildSrc/src/main/groovy/org/elasticsearch/gradle
- plugin
- test
- modules
- aggs-matrix-stats/src/test/resources/rest-api-spec/test/stats
- analysis-common/src/test/resources/rest-api-spec/test/analysis-common
- ingest-common/src/test/resources/rest-api-spec/test/ingest
- lang-expression/src/test/resources/rest-api-spec/test/lang_expression
- lang-mustache/src/test/resources/rest-api-spec/test/lang_mustache
- lang-painless/src/test/resources/rest-api-spec/test/painless
- repository-url/src/test/resources/rest-api-spec/test/repository_url
- transport-netty4/src/test/resources/rest-api-spec/test
- plugins
- discovery-azure-classic/src/test/resources/rest-api-spec/test/discovery_azure_classic
- discovery-ec2/src/test/resources/rest-api-spec/test/discovery_ec2
- discovery-file
- discovery-gce/src/test/resources/rest-api-spec/test/discovery_gce
- examples
- painless-whitelist
- src/test/resources/rest-api-spec/test/painless_whitelist
- rescore/src/test/resources/rest-api-spec/test/example-rescore
- script-expert-scoring/src/test/resources/rest-api-spec/test/script_expert_scoring
- ingest-attachment/src/test/resources/rest-api-spec/test/ingest_attachment
- ingest-geoip/src/test/resources/rest-api-spec/test/ingest_geoip
- ingest-user-agent/src/test/resources/rest-api-spec/test/ingest-useragent
- repository-azure/src/test/resources/rest-api-spec/test/repository_azure
- repository-gcs/src/test/resources/rest-api-spec/test/repository_gcs
- repository-hdfs
- src/test/resources/rest-api-spec/test
- hdfs_repository
- secure_hdfs_repository
- repository-s3/src/test/resources/rest-api-spec/test/repository_s3
- store-smb/src/test/resources/rest-api-spec/test/store_smb
- test/framework/src
- main/java/org/elasticsearch/test/rest/yaml/section
- test/java/org/elasticsearch/test/rest/yaml/section
- x-pack/plugin
- src/test/resources/rest-api-spec/test/xpack
33 files changed
+174
-65
lines changedLines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
| |||
111 | 113 | | |
112 | 114 | | |
113 | 115 | | |
114 | | - | |
| 116 | + | |
115 | 117 | | |
116 | 118 | | |
117 | 119 | | |
| |||
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
| |||
533 | 536 | | |
534 | 537 | | |
535 | 538 | | |
536 | | - | |
| 539 | + | |
| 540 | + | |
537 | 541 | | |
538 | 542 | | |
539 | 543 | | |
| |||
643 | 647 | | |
644 | 648 | | |
645 | 649 | | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
646 | 653 | | |
647 | 654 | | |
648 | 655 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
Lines changed: 22 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments