add passing test that takes snapshot

This commit is contained in:
Robert Muir 2015-12-18 22:55:15 -05:00
parent 75ef9da53f
commit fbe3d64ea4
2 changed files with 44 additions and 1 deletions

View File

@ -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

View File

@ -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 }