id to name

This commit is contained in:
Chris Earle 2016-09-08 17:27:01 -04:00
parent 07ccabbebc
commit 3713d7994d
1 changed files with 12 additions and 12 deletions

View File

@ -75,7 +75,7 @@
"Test Put Versioned Template": "Test Put Versioned Template":
- do: - do:
indices.put_template: indices.put_template:
id: "my_template" name: "my_template"
body: > body: >
{ {
"version": 10, "version": 10,
@ -86,13 +86,13 @@
- do: - do:
indices.get_template: indices.get_template:
id: "my_template" name: "my_template"
- match: { my_template.version: 10 } - match: { my_template.version: 10 }
# Lower version # Lower version
- do: - do:
indices.put_template: indices.put_template:
id: "my_template" name: "my_template"
body: > body: >
{ {
"version": 9, "version": 9,
@ -103,13 +103,13 @@
- do: - do:
indices.get_template: indices.get_template:
id: "my_template" name: "my_template"
- match: { my_template.version: 9 } - match: { my_template.version: 9 }
# Higher version # Higher version
- do: - do:
indices.put_template: indices.put_template:
id: "my_template" name: "my_template"
body: > body: >
{ {
"version": 6789, "version": 6789,
@ -120,13 +120,13 @@
- do: - do:
indices.get_template: indices.get_template:
id: "my_template" name: "my_template"
- match: { my_template.version: 6789 } - match: { my_template.version: 6789 }
# No version # No version
- do: - do:
indices.put_template: indices.put_template:
id: "my_template" name: "my_template"
body: > body: >
{ {
"template": "*", "template": "*",
@ -136,13 +136,13 @@
- do: - do:
indices.get_template: indices.get_template:
id: "my_template" name: "my_template"
- is_false: my_template.version - is_false: my_template.version
# Coming back with a version # Coming back with a version
- do: - do:
indices.put_template: indices.put_template:
id: "my_template" name: "my_template"
body: > body: >
{ {
"version": 5385, "version": 5385,
@ -153,16 +153,16 @@
- do: - do:
indices.get_template: indices.get_template:
id: "my_template" name: "my_template"
- match: { my_template.version: 5385 } - match: { my_template.version: 5385 }
# Able to delete the versioned template # Able to delete the versioned template
- do: - do:
indices.delete_template: indices.delete_template:
id: "my_template" name: "my_template"
- match: { acknowledged: true } - match: { acknowledged: true }
- do: - do:
catch: missing catch: missing
indices.get_template: indices.get_template:
id: "my_template" name: "my_template"