mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-26 06:46:10 +00:00
add passing test that takes snapshot
This commit is contained in:
parent
75ef9da53f
commit
fbe3d64ea4
@ -10,7 +10,7 @@
|
|||||||
body:
|
body:
|
||||||
type: hdfs
|
type: hdfs
|
||||||
settings:
|
settings:
|
||||||
uri: "hdfs://localhost:8888"
|
uri: "hdfs://localhost:39226"
|
||||||
path: "foo/bar"
|
path: "foo/bar"
|
||||||
|
|
||||||
# Get repositry
|
# Get repositry
|
||||||
|
@ -0,0 +1,43 @@
|
|||||||
|
# Integration tests for HDFS Repository plugin
|
||||||
|
#
|
||||||
|
# Actually perform a snapshot to hdfs
|
||||||
|
#
|
||||||
|
---
|
||||||
|
setup:
|
||||||
|
|
||||||
|
- do:
|
||||||
|
snapshot.create_repository:
|
||||||
|
repository: test_repo_hdfs_snapshot
|
||||||
|
verify: false
|
||||||
|
body:
|
||||||
|
type: hdfs
|
||||||
|
settings:
|
||||||
|
uri: "hdfs://localhost:39226"
|
||||||
|
path: "foo/bar"
|
||||||
|
|
||||||
|
- do:
|
||||||
|
indices.create:
|
||||||
|
index: test_index
|
||||||
|
body:
|
||||||
|
settings:
|
||||||
|
number_of_shards: 1
|
||||||
|
number_of_replicas: 1
|
||||||
|
|
||||||
|
- do:
|
||||||
|
cluster.health:
|
||||||
|
wait_for_status: yellow
|
||||||
|
|
||||||
|
---
|
||||||
|
"Create a snapshot":
|
||||||
|
|
||||||
|
- do:
|
||||||
|
snapshot.create:
|
||||||
|
repository: test_repo_hdfs_snapshot
|
||||||
|
snapshot: test_snapshot
|
||||||
|
wait_for_completion: true
|
||||||
|
|
||||||
|
- match: { snapshot.snapshot: test_snapshot }
|
||||||
|
- match: { snapshot.state : SUCCESS }
|
||||||
|
- match: { snapshot.shards.successful: 1 }
|
||||||
|
- match: { snapshot.shards.failed : 0 }
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user