From 34183b4deee8b40c1a627b5fba9b58b60bd69679 Mon Sep 17 00:00:00 2001 From: Honza Kral Date: Sat, 20 Jul 2013 21:12:27 +0200 Subject: [PATCH] Template APIs tests --- .../test/indices.put_template/10_basic.yaml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 rest-api-spec/test/indices.put_template/10_basic.yaml diff --git a/rest-api-spec/test/indices.put_template/10_basic.yaml b/rest-api-spec/test/indices.put_template/10_basic.yaml new file mode 100644 index 00000000000..435c0aed14f --- /dev/null +++ b/rest-api-spec/test/indices.put_template/10_basic.yaml @@ -0,0 +1,29 @@ +--- +"Basic tests for templates": + - do: + indices.put_template: + name: test + body: + template: test-* + settings: + number_of_shards: 1 + number_of_replicas: 0 + + - is_true: ok + + - do: + indices.get_template: + name: test + + - match: {test.template: "test-*"} + - match: {test.settings: {index.number_of_shards: '1', index.number_of_replicas: '0'}} + + - do: + indices.delete_template: + name: test + + - do: + indices.get_template: + name: test + + - match: {'': {}}