From e051c8a6637b03e8eb0081f6e9880457d7d63e58 Mon Sep 17 00:00:00 2001 From: Karel Minarik Date: Tue, 5 Nov 2013 11:24:31 +0100 Subject: [PATCH] [TEST] Create the index with `number_of_replicas: 0` for "Realtime Refresh" tests --- rest-api-spec/test/exists/60_realtime_refresh.yaml | 12 +++++++----- rest-api-spec/test/get/60_realtime_refresh.yaml | 13 ++++++++----- rest-api-spec/test/mget/60_realtime_refresh.yaml | 13 ++++++++----- 3 files changed, 23 insertions(+), 15 deletions(-) diff --git a/rest-api-spec/test/exists/60_realtime_refresh.yaml b/rest-api-spec/test/exists/60_realtime_refresh.yaml index daf27971842..debdd3b2d16 100644 --- a/rest-api-spec/test/exists/60_realtime_refresh.yaml +++ b/rest-api-spec/test/exists/60_realtime_refresh.yaml @@ -2,11 +2,13 @@ "Realtime Refresh": - do: - indices.create: - index: test_1 - body: - settings: - index.refresh_interval: -1 + indices.create: + index: test_1 + body: + settings: + index: + refresh_interval: -1 + number_of_replicas: 0 - do: cluster.health: wait_for_status: yellow diff --git a/rest-api-spec/test/get/60_realtime_refresh.yaml b/rest-api-spec/test/get/60_realtime_refresh.yaml index a197734e7fc..ab112966d8f 100644 --- a/rest-api-spec/test/get/60_realtime_refresh.yaml +++ b/rest-api-spec/test/get/60_realtime_refresh.yaml @@ -1,12 +1,15 @@ --- "Realtime Refresh": - - do: + - do: indices.create: - index: test_1 - body: - settings: - index.refresh_interval: -1 + index: test_1 + body: + settings: + index: + refresh_interval: -1 + number_of_replicas: 0 + - do: cluster.health: wait_for_status: yellow diff --git a/rest-api-spec/test/mget/60_realtime_refresh.yaml b/rest-api-spec/test/mget/60_realtime_refresh.yaml index 2ee8142fdff..11b9cea3935 100644 --- a/rest-api-spec/test/mget/60_realtime_refresh.yaml +++ b/rest-api-spec/test/mget/60_realtime_refresh.yaml @@ -1,12 +1,15 @@ --- "Realtime Refresh": - - do: + - do: indices.create: - index: test_1 - body: - settings: - index.refresh_interval: -1 + index: test_1 + body: + settings: + index: + refresh_interval: -1 + number_of_replicas: 0 + - do: cluster.health: wait_for_status: yellow