From dc6e78a62cdac88208abde158405063498abee10 Mon Sep 17 00:00:00 2001 From: Karel Minarik Date: Mon, 11 Jul 2016 14:43:37 +0200 Subject: [PATCH] Graph: Moved the index creation to a `setup` section in the REST test Closes elastic/elasticsearch#2679 Original commit: elastic/x-pack-elasticsearch@51a4a5e53093458d3b6a11e66752a715454f53b0 --- .../rest-api-spec/test/graph/10_basic.yaml | 30 ++++++++++--------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/elasticsearch/x-pack/graph/src/test/resources/rest-api-spec/test/graph/10_basic.yaml b/elasticsearch/x-pack/graph/src/test/resources/rest-api-spec/test/graph/10_basic.yaml index 15c3e279b9c..0ef7a255472 100644 --- a/elasticsearch/x-pack/graph/src/test/resources/rest-api-spec/test/graph/10_basic.yaml +++ b/elasticsearch/x-pack/graph/src/test/resources/rest-api-spec/test/graph/10_basic.yaml @@ -1,19 +1,21 @@ +--- +setup: +- do: + indices.create: + index: test_1 + body: + settings: + index: + number_of_shards: 1 + number_of_replicas: 0 + mappings: + test: + properties: + keys: + type : integer + --- "Test basic graph explore": - - do: - indices.create: - index: test_1 - body: - settings: - index: - number_of_replicas: 0 - number_of_shards: 1 - mappings: - test: - properties: - keys: - type : "integer" - - do: index: index: test_1