|
@@ -49,7 +49,7 @@ setup:
|
|
|
snapshot: test_nonexistent_snapshot
|
|
|
|
|
|
---
|
|
|
-"Get missing snapshot info succeeds when ignoreUnavailable is true":
|
|
|
+"Get missing snapshot info succeeds when ignore_unavailable is true":
|
|
|
|
|
|
- do:
|
|
|
snapshot.get:
|
|
@@ -96,3 +96,63 @@ setup:
|
|
|
snapshot.delete:
|
|
|
repository: test_repo_get_1
|
|
|
snapshot: test_snapshot
|
|
|
+
|
|
|
+---
|
|
|
+"Get snapshot info contains include_global_state":
|
|
|
+ - skip:
|
|
|
+ version: " - 6.1.99"
|
|
|
+ reason: "include_global_state field has been added in the response in 6.2.0"
|
|
|
+
|
|
|
+ - do:
|
|
|
+ indices.create:
|
|
|
+ index: test_index
|
|
|
+ body:
|
|
|
+ settings:
|
|
|
+ number_of_shards: 1
|
|
|
+ number_of_replicas: 0
|
|
|
+
|
|
|
+ - do:
|
|
|
+ snapshot.create:
|
|
|
+ repository: test_repo_get_1
|
|
|
+ snapshot: test_snapshot_with_include_global_state
|
|
|
+ wait_for_completion: true
|
|
|
+ body: |
|
|
|
+ { "include_global_state": true }
|
|
|
+
|
|
|
+ - do:
|
|
|
+ snapshot.get:
|
|
|
+ repository: test_repo_get_1
|
|
|
+ snapshot: test_snapshot_with_include_global_state
|
|
|
+
|
|
|
+ - is_true: snapshots
|
|
|
+ - match: { snapshots.0.snapshot: test_snapshot_with_include_global_state }
|
|
|
+ - match: { snapshots.0.state: SUCCESS }
|
|
|
+ - match: { snapshots.0.include_global_state: true }
|
|
|
+
|
|
|
+ - do:
|
|
|
+ snapshot.delete:
|
|
|
+ repository: test_repo_get_1
|
|
|
+ snapshot: test_snapshot_with_include_global_state
|
|
|
+
|
|
|
+ - do:
|
|
|
+ snapshot.create:
|
|
|
+ repository: test_repo_get_1
|
|
|
+ snapshot: test_snapshot_without_include_global_state
|
|
|
+ wait_for_completion: true
|
|
|
+ body: |
|
|
|
+ { "include_global_state": false }
|
|
|
+
|
|
|
+ - do:
|
|
|
+ snapshot.get:
|
|
|
+ repository: test_repo_get_1
|
|
|
+ snapshot: test_snapshot_without_include_global_state
|
|
|
+
|
|
|
+ - is_true: snapshots
|
|
|
+ - match: { snapshots.0.snapshot: test_snapshot_without_include_global_state }
|
|
|
+ - match: { snapshots.0.state: SUCCESS }
|
|
|
+ - match: { snapshots.0.include_global_state: false }
|
|
|
+
|
|
|
+ - do:
|
|
|
+ snapshot.delete:
|
|
|
+ repository: test_repo_get_1
|
|
|
+ snapshot: test_snapshot_without_include_global_state
|