Skip to content

[yaml-tests] Fix yaml test runtime cluster cleanup #166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 4 additions & 2 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ STACK_VERSION = { value = "7.x-SNAPSHOT", condition = { env_not_set = ["STACK_VE
TEST_SUITE = { value = "free", condition = { env_not_set = ["TEST_SUITE"] }}
# Set publish flags to dry-run by default, to force user to explicitly define for publishing
CARGO_MAKE_CARGO_PUBLISH_FLAGS = "--dry-run"
# RUST_BACKTRACE is set to "full" in cargo make's builtin makefiles/stable.toml
RUST_BACKTRACE = { value = "0", condition = { env_not_set = ["RUST_BACKTRACE"]}}

[tasks.set-free-env]
category = "Elasticsearch"
Expand Down Expand Up @@ -39,14 +41,14 @@ category = "Elasticsearch"
private = true
condition = { env_set = [ "ELASTICSEARCH_URL" ], env_false = ["CARGO_MAKE_CI"] }
command = "cargo"
args = ["test", "-p", "yaml_test_runner", "--", "--test-threads=1"]
args = ["test", "-p", "yaml_test_runner", "--", "--test-threads", "1"]
dependencies = ["generate-yaml-tests"]

[tasks.test-yaml-test-runner-ci]
category = "Elasticsearch"
private = true
condition = { env_set = [ "ELASTICSEARCH_URL" ], env_true = ["CARGO_MAKE_CI"] }
script = ["cargo test -p yaml_test_runner -- --test-threads=1 -Z unstable-options --format json | tee test_results/results.json"]
script = ["cargo test -p yaml_test_runner -- --test-threads 1 -Z unstable-options --format json | tee test_results/results.json"]
dependencies = ["generate-yaml-tests"]

[tasks.test-elasticsearch]
Expand Down
4 changes: 4 additions & 0 deletions api_generator/rest_specs/async_search.delete.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"description": "Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{
Expand Down
4 changes: 4 additions & 0 deletions api_generator/rest_specs/async_search.get.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"description": "Retrieves the results of a previously submitted async search request given its ID."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{
Expand Down
29 changes: 29 additions & 0 deletions api_generator/rest_specs/async_search.status.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"async_search.status":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html",
"description": "Retrieves the status of a previously submitted async search request given its ID."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{
"path":"/_async_search/status/{id}",
"methods":[
"GET"
],
"parts":{
"id":{
"type":"string",
"description":"The async search ID"
}
}
}
]
}
}
}
5 changes: 5 additions & 0 deletions api_generator/rest_specs/async_search.submit.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
"description": "Executes a search request asynchronously."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
"autoscaling.delete_autoscaling_policy":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-delete-autoscaling-policy.html",
"description":"Deletes an autoscaling policy."
"description":"Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
},
"stability":"experimental",
"url":{
"paths":[
{
Expand Down
23 changes: 23 additions & 0 deletions api_generator/rest_specs/autoscaling.get_autoscaling_capacity.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"autoscaling.get_autoscaling_capacity":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-capacity.html",
"description": "Gets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{
"path":"/_autoscaling/capacity",
"methods":[
"GET"
]
}
]
}
}
}
19 changes: 0 additions & 19 deletions api_generator/rest_specs/autoscaling.get_autoscaling_decision.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
"autoscaling.get_autoscaling_policy":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-policy.html",
"description": "Retrieves an autoscaling policy."
"description": "Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
},
"stability":"experimental",
"url":{
"paths":[
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@
"autoscaling.put_autoscaling_policy":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-put-autoscaling-policy.html",
"description": "Creates a new autoscaling policy."
"description": "Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"stability":"experimental",
"url":{
"paths":[
{
Expand Down
5 changes: 5 additions & 0 deletions api_generator/rest_specs/bulk.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
"description":"Allows to perform multiple index/update/delete operations in a single request."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/x-ndjson"]
},
"url":{
"paths":[
{
Expand Down
4 changes: 4 additions & 0 deletions api_generator/rest_specs/cat.aliases.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"description":"Shows information about currently configured aliases to indices including filter and routing infos."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{
Expand Down
4 changes: 4 additions & 0 deletions api_generator/rest_specs/cat.allocation.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"description":"Provides a snapshot of how many shards are allocated to each data node and how much disk space they are using."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{
Expand Down
4 changes: 4 additions & 0 deletions api_generator/rest_specs/cat.count.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"description":"Provides quick access to the document count of the entire cluster, or individual indices."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{
Expand Down
4 changes: 4 additions & 0 deletions api_generator/rest_specs/cat.fielddata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"description":"Shows how much heap memory is currently being used by fielddata on every data node in the cluster."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{
Expand Down
4 changes: 4 additions & 0 deletions api_generator/rest_specs/cat.health.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"description":"Returns a concise representation of the cluster health."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{
Expand Down
4 changes: 4 additions & 0 deletions api_generator/rest_specs/cat.help.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"description":"Returns help for the Cat APIs."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "text/plain" ]
},
"url":{
"paths":[
{
Expand Down
10 changes: 9 additions & 1 deletion api_generator/rest_specs/cat.indices.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"description":"Returns information about indices: number of primaries and replicas, document counts, disk size, ..."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{
Expand Down Expand Up @@ -51,7 +55,11 @@
},
"local":{
"type":"boolean",
"description":"Return local information, do not retrieve the state from master node (default: false)"
"description":"Return local information, do not retrieve the state from master node (default: false)",
"deprecated":{
"version":"7.11.0",
"description":"This parameter does not affect the request. It will be removed in a future release."
}
},
"master_timeout":{
"type":"time",
Expand Down
4 changes: 4 additions & 0 deletions api_generator/rest_specs/cat.master.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"description":"Returns information about the master node."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{
Expand Down
4 changes: 4 additions & 0 deletions api_generator/rest_specs/cat.ml_data_frame_analytics.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"description": "Gets configuration and usage information about data frame analytics jobs."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{
Expand Down
4 changes: 4 additions & 0 deletions api_generator/rest_specs/cat.ml_datafeeds.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"description": "Gets configuration and usage information about datafeeds."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{
Expand Down
4 changes: 4 additions & 0 deletions api_generator/rest_specs/cat.ml_jobs.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"description": "Gets configuration and usage information about anomaly detection jobs."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{
Expand Down
4 changes: 4 additions & 0 deletions api_generator/rest_specs/cat.ml_trained_models.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"description": "Gets configuration and usage information about inference trained models."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{
Expand Down
4 changes: 4 additions & 0 deletions api_generator/rest_specs/cat.nodeattrs.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"description":"Returns information about custom node attributes."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{
Expand Down
4 changes: 4 additions & 0 deletions api_generator/rest_specs/cat.nodes.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"description":"Returns basic statistics about performance of cluster nodes."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{
Expand Down
4 changes: 4 additions & 0 deletions api_generator/rest_specs/cat.pending_tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"description":"Returns a concise representation of the cluster pending tasks."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{
Expand Down
9 changes: 9 additions & 0 deletions api_generator/rest_specs/cat.plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"description":"Returns information about installed plugins across nodes node."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{
Expand Down Expand Up @@ -37,6 +41,11 @@
"description":"Return help information",
"default":false
},
"include_bootstrap":{
"type":"boolean",
"description":"Include bootstrap plugins in the response",
"default":false
},
"s":{
"type":"list",
"description":"Comma-separated list of column names or column aliases to sort by"
Expand Down
Loading