[TEST] re-enable and merge cluster settings REST tests

We used to have a disabled test around cluster put settings as it left cluster settings behind without a way to remove them. That has been in fixed in the cluster put settings api, so the test can be re-enabled.
This commit is contained in:
javanna 2016-01-27 15:11:41 +01:00 committed by Luca Cavanna
parent 783c1608f3
commit 8006e5cd15
2 changed files with 48 additions and 37 deletions

View File

@ -1,10 +1,5 @@
---
setup:
- skip:
version: "all"
reason: leaves transient metadata behind, need to fix it
---
"Test put settings":
"Test put and reset transient settings":
- do:
cluster.put_settings:
body:
@ -19,3 +14,50 @@ setup:
flat_settings: true
- match: {transient: {discovery.zen.minimum_master_nodes: "1"}}
- do:
cluster.put_settings:
body:
transient:
discovery.zen.minimum_master_nodes: null
flat_settings: true
- match: {transient: {}}
- do:
cluster.get_settings:
flat_settings: true
- match: {transient: {}}
---
"Test put and reset persistent settings":
- do:
cluster.put_settings:
body:
persistent:
cluster.routing.allocation.disk.threshold_enabled: false
flat_settings: true
- match: {persistent: {cluster.routing.allocation.disk.threshold_enabled: "false"}}
- do:
cluster.get_settings:
flat_settings: true
- match: {persistent: {cluster.routing.allocation.disk.threshold_enabled: "false"}}
- do:
cluster.put_settings:
body:
persistent:
cluster.routing.allocation.disk.threshold_enabled: null
flat_settings: true
- match: {persistent: {}}
- do:
cluster.get_settings:
flat_settings: true
- match: {persistent: {}}

View File

@ -1,31 +0,0 @@
---
"Test reset cluster settings":
- do:
cluster.put_settings:
body:
persistent:
cluster.routing.allocation.disk.threshold_enabled: false
flat_settings: true
- match: {persistent: {cluster.routing.allocation.disk.threshold_enabled: "false"}}
- do:
cluster.get_settings:
flat_settings: true
- match: {persistent: {cluster.routing.allocation.disk.threshold_enabled: "false"}}
- do:
cluster.put_settings:
body:
persistent:
cluster.routing.allocation.disk.threshold_enabled: null
flat_settings: true
- match: {persistent: {}}
- do:
cluster.get_settings:
flat_settings: true
- match: {persistent: {}}