@@ -4,23 +4,23 @@ default_to_workspace = false
4
4
[env ]
5
5
# Determines the version of Elasticsearch docker container used
6
6
STACK_VERSION = " 8.0.0-SNAPSHOT"
7
- # Determines the distribution of docker container used. Either xpack or oss
8
- TEST_SUITE = " xpack "
7
+ # Determines the distribution of docker container used. Either platinum or free
8
+ TEST_SUITE = " platinum "
9
9
# Set publish flags to dry-run by default, to force user to explicitly define for publishing
10
10
CARGO_MAKE_CARGO_PUBLISH_FLAGS = " --dry-run"
11
11
12
- [tasks .set-oss -env ]
12
+ [tasks .set-free -env ]
13
13
category = " Elasticsearch"
14
- description = " Sets ELASTICSEARCH_URL environment variable if not already set for later tasks when oss test suite used"
14
+ description = " Sets ELASTICSEARCH_URL environment variable if not already set for later tasks when free test suite used"
15
15
private = true
16
- condition = { env = { "TEST_SUITE" = " oss " }, env_not_set = [" ELASTICSEARCH_URL" ] }
16
+ condition = { env = { "TEST_SUITE" = " free " }, env_not_set = [" ELASTICSEARCH_URL" ] }
17
17
env = { "ELASTICSEARCH_URL" = " http://localhost:9200" }
18
18
19
- [tasks .set-xpack -env ]
19
+ [tasks .set-platinum -env ]
20
20
category = " Elasticsearch"
21
- description = " Sets ELASTICSEARCH_URL environment variable if not already set for later tasks when xpack test suite used"
21
+ description = " Sets ELASTICSEARCH_URL environment variable if not already set for later tasks when platinum test suite used"
22
22
private = true
23
- condition = { env = { "TEST_SUITE" = " xpack " }, env_not_set = [" ELASTICSEARCH_URL" ] }
23
+ condition = { env = { "TEST_SUITE" = " platinum " }, env_not_set = [" ELASTICSEARCH_URL" ] }
24
24
env = { "ELASTICSEARCH_URL" = " https://elastic:changeme@localhost:9200" }
25
25
26
26
[tasks .run-yaml-test-runner ]
@@ -52,7 +52,7 @@ dependencies = ["generate-yaml-tests"]
52
52
[tasks .test-elasticsearch ]
53
53
category = " Elasticsearch"
54
54
private = true
55
- condition = { env_set = [ " ELASTICSEARCH_URL" ], env = { "TEST_SUITE" = " xpack " } }
55
+ condition = { env_set = [ " ELASTICSEARCH_URL" ], env = { "TEST_SUITE" = " platinum " } }
56
56
command = " cargo"
57
57
args = [" test" , " -p" , " elasticsearch" ]
58
58
dependencies = [" start-elasticsearch" ]
@@ -85,7 +85,7 @@ dependencies = ["install-cargo2junit"]
85
85
category = " Elasticsearch"
86
86
private = true
87
87
condition = { env_set = [ " STACK_VERSION" , " TEST_SUITE" ], env_false = [" CARGO_MAKE_CI" ] }
88
- dependencies = [" set-oss -env" , " set-xpack -env" ]
88
+ dependencies = [" set-free -env" , " set-platinum -env" ]
89
89
90
90
[tasks .run-elasticsearch .linux ]
91
91
command = " ./.ci/run-elasticsearch.sh"
@@ -120,17 +120,19 @@ exec cargo publish %{CARGO_MAKE_CARGO_PUBLISH_FLAGS}
120
120
121
121
[tasks .start-elasticsearch ]
122
122
extend = " run-elasticsearch"
123
+ private = false
123
124
description = " Starts Elasticsearch docker container with the given version and distribution"
124
125
env = { "CLEANUP" = false , "DETACH" = true }
125
126
126
127
[tasks .stop-elasticsearch ]
127
128
extend = " run-elasticsearch"
129
+ private = false
128
130
description = " Stops Elasticsearch docker container, if running"
129
131
env = { "CLEANUP" = true , "DETACH" = false }
130
132
131
133
[tasks .test-yaml ]
132
134
category = " Elasticsearch"
133
- description = " Generates and runs yaml_test_runner package xpack/oss tests against a given Elasticsearch version"
135
+ description = " Generates and runs yaml_test_runner package platinum/free tests against a given Elasticsearch version"
134
136
condition = { env_set = [ " STACK_VERSION" , " TEST_SUITE" ] }
135
137
dependencies = [" generate-yaml-tests" , " create-test-results-dir" , " test-yaml-test-runner" , " test-yaml-test-runner-ci" , " convert-test-results-junit" ]
136
138
run_task = " stop-elasticsearch"
@@ -146,7 +148,7 @@ args = ["test", "-p", "api_generator"]
146
148
category = " Elasticsearch"
147
149
clear = true
148
150
description = " Runs elasticsearch package tests against a given Elasticsearch version"
149
- env = { "TEST_SUITE" = { value = " xpack " , condition = { env_set = [" TEST_SUITE" ] } } }
151
+ env = { "TEST_SUITE" = { value = " platinum " , condition = { env_set = [" TEST_SUITE" ] } } }
150
152
dependencies = [" test-elasticsearch" ]
151
153
run_task = " stop-elasticsearch"
152
154
@@ -217,7 +219,7 @@ script = ['''
217
219
echo - start-elasticsearch: Starts Elasticsearch docker container with the given version and distribution
218
220
echo - stop-elasticsearch: Stops Elasticsearch docker container, if running
219
221
echo
220
- echo - test-yaml: Generates and runs yaml_test_runner package xpack/oss tests against a given Elasticsearch version
222
+ echo - test-yaml: Generates and runs yaml_test_runner package platinum/free tests against a given Elasticsearch version
221
223
echo - test-generator: Generates and runs api_generator package tests
222
224
echo - test: Runs elasticsearch package tests against a given Elasticsearch version
223
225
echo
@@ -230,7 +232,7 @@ script = ['''
230
232
echo
231
233
echo Most tasks use these environment variables:
232
234
echo - STACK_VERSION (default '${STACK_VERSION}'): the version of Elasticsearch
233
- echo - TEST_SUITE ('oss ' or 'xpack ', default '${TEST_SUITE}'): the distribution of Elasticsearch
235
+ echo - TEST_SUITE ('free ' or 'platinum ', default '${TEST_SUITE}'): the distribution of Elasticsearch
234
236
echo - CI (default not set): set when running on CI to determine whether to start Elasticsearch and format test output as JSON
235
237
echo
236
238
echo Run 'cargo make --list-all-steps' for a complete list of available tasks.
0 commit comments