[SPEC] Renamed benchmark endpoints
benchmark.submit -> benchmark benchmark.list -> list_benchmarks benchmark.abort -> abort_benchmark And fixed the related tests
This commit is contained in:
parent
029b13cf68
commit
5d7263b69e
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"benchmark.abort" : {
|
"abort_benchmark" : {
|
||||||
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-benchmark.html",
|
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-benchmark.html",
|
||||||
"methods": ["POST"],
|
"methods": ["POST"],
|
||||||
"url": {
|
"url": {
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"benchmark.submit" : {
|
"benchmark" : {
|
||||||
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-benchmark.html",
|
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-benchmark.html",
|
||||||
"methods": ["PUT"],
|
"methods": ["PUT"],
|
||||||
"url": {
|
"url": {
|
||||||
|
@ -16,7 +16,6 @@
|
||||||
},
|
},
|
||||||
"type": {
|
"type": {
|
||||||
"type" : "string",
|
"type" : "string",
|
||||||
"required" : true,
|
|
||||||
"description" : "The name of the document type"
|
"description" : "The name of the document type"
|
||||||
}
|
}
|
||||||
},
|
},
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"benchmark.list" : {
|
"list_benchmarks" : {
|
||||||
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-benchmark.html",
|
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-benchmark.html",
|
||||||
"methods": ["GET"],
|
"methods": ["GET"],
|
||||||
"url": {
|
"url": {
|
||||||
|
@ -16,7 +16,6 @@
|
||||||
},
|
},
|
||||||
"type": {
|
"type": {
|
||||||
"type" : "string",
|
"type" : "string",
|
||||||
"required" : true,
|
|
||||||
"description" : "The name of the document type"
|
"description" : "The name of the document type"
|
||||||
}
|
}
|
||||||
},
|
},
|
|
@ -2,7 +2,7 @@
|
||||||
"Test benchmark abort":
|
"Test benchmark abort":
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
benchmark.abort:
|
abort_benchmark:
|
||||||
name: my_benchmark
|
name: my_benchmark
|
||||||
catch: request
|
catch: request
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
"Test benchmark list":
|
|
||||||
|
|
||||||
- do:
|
|
||||||
benchmark.list: {}
|
|
||||||
catch: request
|
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
---
|
|
||||||
"Test benchmark submit":
|
|
||||||
|
|
||||||
- do:
|
|
||||||
indices.create:
|
|
||||||
index: test_1
|
|
||||||
body:
|
|
||||||
settings:
|
|
||||||
index:
|
|
||||||
number_of_replicas: 0
|
|
||||||
|
|
||||||
- do:
|
|
||||||
cluster.health:
|
|
||||||
wait_for_status: yellow
|
|
||||||
|
|
||||||
- do:
|
|
||||||
benchmark.submit:
|
|
||||||
index: test_1
|
|
||||||
body: {
|
|
||||||
"name": "my_benchmark",
|
|
||||||
"competitors": [ {
|
|
||||||
"name": "my_competitor",
|
|
||||||
"requests": [ {
|
|
||||||
"query": {
|
|
||||||
"match": { "_all": "*" }
|
|
||||||
}
|
|
||||||
} ]
|
|
||||||
} ]
|
|
||||||
}
|
|
||||||
catch: request
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
---
|
||||||
|
"Test benchmark submit":
|
||||||
|
|
||||||
|
- do:
|
||||||
|
indices.create:
|
||||||
|
index: test_1
|
||||||
|
body:
|
||||||
|
settings:
|
||||||
|
index:
|
||||||
|
number_of_replicas: 0
|
||||||
|
|
||||||
|
- do:
|
||||||
|
cluster.health:
|
||||||
|
wait_for_status: yellow
|
||||||
|
|
||||||
|
- do:
|
||||||
|
benchmark:
|
||||||
|
index: test_1
|
||||||
|
body:
|
||||||
|
"name": "my_benchmark"
|
||||||
|
"competitors":
|
||||||
|
-
|
||||||
|
"name": "my_competitor"
|
||||||
|
"requests":
|
||||||
|
-
|
||||||
|
"query":
|
||||||
|
"match": { "_all": "*" }
|
||||||
|
|
||||||
|
- match: { status: complete }
|
||||||
|
|
Loading…
Reference in New Issue