@@ -4,23 +4,23 @@ default_to_workspace = false
44[env ]
55# Determines the version of Elasticsearch docker container used
66STACK_VERSION = " 7.x-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 "
99# Set publish flags to dry-run by default, to force user to explicitly define for publishing
1010CARGO_MAKE_CARGO_PUBLISH_FLAGS = " --dry-run"
1111
12- [tasks .set-oss -env ]
12+ [tasks .set-free -env ]
1313category = " 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"
1515private = true
16- condition = { env = { "TEST_SUITE" = " oss " }, env_not_set = [" ELASTICSEARCH_URL" ] }
16+ condition = { env = { "TEST_SUITE" = " free " }, env_not_set = [" ELASTICSEARCH_URL" ] }
1717env = { "ELASTICSEARCH_URL" = " http://localhost:9200" }
1818
19- [tasks .set-xpack -env ]
19+ [tasks .set-platinum -env ]
2020category = " 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"
2222private = true
23- condition = { env = { "TEST_SUITE" = " xpack " }, env_not_set = [" ELASTICSEARCH_URL" ] }
23+ condition = { env = { "TEST_SUITE" = " platinum " }, env_not_set = [" ELASTICSEARCH_URL" ] }
2424env = { "ELASTICSEARCH_URL" = " https://elastic:changeme@localhost:9200" }
2525
2626[tasks .run-yaml-test-runner ]
@@ -52,7 +52,7 @@ dependencies = ["generate-yaml-tests"]
5252[tasks .test-elasticsearch ]
5353category = " Elasticsearch"
5454private = true
55- condition = { env_set = [ " ELASTICSEARCH_URL" ], env = { "TEST_SUITE" = " xpack " } }
55+ condition = { env_set = [ " ELASTICSEARCH_URL" ], env = { "TEST_SUITE" = " platinum " } }
5656command = " cargo"
5757args = [" test" , " -p" , " elasticsearch" ]
5858dependencies = [" start-elasticsearch" ]
@@ -85,7 +85,7 @@ dependencies = ["install-cargo2junit"]
8585category = " Elasticsearch"
8686private = true
8787condition = { 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" ]
8989
9090[tasks .run-elasticsearch .linux ]
9191command = " ./.ci/run-elasticsearch.sh"
@@ -120,17 +120,19 @@ exec cargo publish %{CARGO_MAKE_CARGO_PUBLISH_FLAGS}
120120
121121[tasks .start-elasticsearch ]
122122extend = " run-elasticsearch"
123+ private = false
123124description = " Starts Elasticsearch docker container with the given version and distribution"
124125env = { "CLEANUP" = false , "DETACH" = true }
125126
126127[tasks .stop-elasticsearch ]
127128extend = " run-elasticsearch"
129+ private = false
128130description = " Stops Elasticsearch docker container, if running"
129131env = { "CLEANUP" = true , "DETACH" = false }
130132
131133[tasks .test-yaml ]
132134category = " 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"
134136condition = { env_set = [ " STACK_VERSION" , " TEST_SUITE" ] }
135137dependencies = [" generate-yaml-tests" , " create-test-results-dir" , " test-yaml-test-runner" , " test-yaml-test-runner-ci" , " convert-test-results-junit" ]
136138run_task = " stop-elasticsearch"
@@ -146,7 +148,7 @@ args = ["test", "-p", "api_generator"]
146148category = " Elasticsearch"
147149clear = true
148150description = " 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" ] } } }
150152dependencies = [" test-elasticsearch" ]
151153run_task = " stop-elasticsearch"
152154
@@ -217,7 +219,7 @@ script = ['''
217219 echo - start-elasticsearch: Starts Elasticsearch docker container with the given version and distribution
218220 echo - stop-elasticsearch: Stops Elasticsearch docker container, if running
219221 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
221223 echo - test-generator: Generates and runs api_generator package tests
222224 echo - test: Runs elasticsearch package tests against a given Elasticsearch version
223225 echo
@@ -230,7 +232,7 @@ script = ['''
230232 echo
231233 echo Most tasks use these environment variables:
232234 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
234236 echo - CI (default not set): set when running on CI to determine whether to start Elasticsearch and format test output as JSON
235237 echo
236238 echo Run 'cargo make --list-all-steps' for a complete list of available tasks.
0 commit comments