forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport spec_to_console script to work with new JSON file format. (e…
…lastic#43427) * Backport spec_to_console script to work with new JSON file format. * Updated test fixture to use new JSON file pattern * Fix if statement
- Loading branch information
1 parent
7a7d689
commit 9e23063
Showing
118 changed files
with
319 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
156 changes: 98 additions & 58 deletions
156
packages/kbn-spec-to-console/test/fixtures/cluster_health_spec.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,104 @@ | ||
{ | ||
"cluster.health": { | ||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html", | ||
"methods": ["GET"], | ||
"url": { | ||
"path": "/_cluster/health", | ||
"paths": ["/_cluster/health", "/_cluster/health/{index}"], | ||
"parts": { | ||
"index": { | ||
"type" : "list", | ||
"description" : "Limit the information returned to a specific index" | ||
} | ||
}, | ||
"params": { | ||
"level": { | ||
"type" : "enum", | ||
"options" : ["cluster","indices","shards"], | ||
"default" : "cluster", | ||
"description" : "Specify the level of detail for returned information" | ||
}, | ||
"local": { | ||
"type" : "boolean", | ||
"description" : "Return local information, do not retrieve the state from master node (default: false)" | ||
}, | ||
"master_timeout": { | ||
"type" : "time", | ||
"description" : "Explicit operation timeout for connection to master node" | ||
}, | ||
"timeout": { | ||
"type" : "time", | ||
"description" : "Explicit operation timeout" | ||
}, | ||
"wait_for_active_shards": { | ||
"type" : "string", | ||
"description" : "Wait until the specified number of shards is active" | ||
}, | ||
"wait_for_nodes": { | ||
"type" : "string", | ||
"description" : "Wait until the specified number of nodes is available" | ||
}, | ||
"wait_for_events": { | ||
"type" : "enum", | ||
"options" : ["immediate", "urgent", "high", "normal", "low", "languid"], | ||
"description" : "Wait until all currently queued events with the given priority are processed" | ||
}, | ||
"wait_for_no_relocating_shards": { | ||
"type" : "boolean", | ||
"description" : "Whether to wait until there are no relocating shards in the cluster" | ||
}, | ||
"wait_for_no_initializing_shards": { | ||
"type" : "boolean", | ||
"description" : "Whether to wait until there are no initializing shards in the cluster" | ||
"cluster.health":{ | ||
"documentation":{ | ||
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html", | ||
"description":"Returns basic information about the health of the cluster." | ||
}, | ||
"stability":"stable", | ||
"url":{ | ||
"paths":[ | ||
{ | ||
"path":"/_cluster/health", | ||
"methods":[ | ||
"GET" | ||
] | ||
}, | ||
"wait_for_status": { | ||
"type" : "enum", | ||
"options" : ["green","yellow","red"], | ||
"default" : null, | ||
"description" : "Wait until cluster is in a specific state" | ||
{ | ||
"path":"/_cluster/health/{index}", | ||
"methods":[ | ||
"GET" | ||
], | ||
"parts":{ | ||
"index":{ | ||
"type":"list", | ||
"description":"Limit the information returned to a specific index" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"body": null | ||
"params":{ | ||
"expand_wildcards":{ | ||
"type":"enum", | ||
"options":[ | ||
"open", | ||
"closed", | ||
"none", | ||
"all" | ||
], | ||
"default":"all", | ||
"description":"Whether to expand wildcard expression to concrete indices that are open, closed or both." | ||
}, | ||
"level":{ | ||
"type":"enum", | ||
"options":[ | ||
"cluster", | ||
"indices", | ||
"shards" | ||
], | ||
"default":"cluster", | ||
"description":"Specify the level of detail for returned information" | ||
}, | ||
"local":{ | ||
"type":"boolean", | ||
"description":"Return local information, do not retrieve the state from master node (default: false)" | ||
}, | ||
"master_timeout":{ | ||
"type":"time", | ||
"description":"Explicit operation timeout for connection to master node" | ||
}, | ||
"timeout":{ | ||
"type":"time", | ||
"description":"Explicit operation timeout" | ||
}, | ||
"wait_for_active_shards":{ | ||
"type":"string", | ||
"description":"Wait until the specified number of shards is active" | ||
}, | ||
"wait_for_nodes":{ | ||
"type":"string", | ||
"description":"Wait until the specified number of nodes is available" | ||
}, | ||
"wait_for_events":{ | ||
"type":"enum", | ||
"options":[ | ||
"immediate", | ||
"urgent", | ||
"high", | ||
"normal", | ||
"low", | ||
"languid" | ||
], | ||
"description":"Wait until all currently queued events with the given priority are processed" | ||
}, | ||
"wait_for_no_relocating_shards":{ | ||
"type":"boolean", | ||
"description":"Whether to wait until there are no relocating shards in the cluster" | ||
}, | ||
"wait_for_no_initializing_shards":{ | ||
"type":"boolean", | ||
"description":"Whether to wait until there are no initializing shards in the cluster" | ||
}, | ||
"wait_for_status":{ | ||
"type":"enum", | ||
"options":[ | ||
"green", | ||
"yellow", | ||
"red" | ||
], | ||
"default":null, | ||
"description":"Wait until cluster is in a specific state" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.