diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/bulk/50_refresh.yaml b/rest-api-spec/src/main/resources/rest-api-spec/test/bulk/50_refresh.yaml index 4906975bfab..6326b9464ca 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/bulk/50_refresh.yaml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/bulk/50_refresh.yaml @@ -4,14 +4,14 @@ bulk: refresh: true body: | - {"index": {"_index": "test_index", "_type": "test_type", "_id": "test_id"}} + {"index": {"_index": "bulk_50_refresh_1", "_type": "test_type", "_id": "bulk_50_refresh_id1"}} {"f1": "v1", "f2": 42} - {"index": {"_index": "test_index", "_type": "test_type", "_id": "test_id2"}} + {"index": {"_index": "bulk_50_refresh_1", "_type": "test_type", "_id": "bulk_50_refresh_id2"}} {"f1": "v2", "f2": 47} - do: count: - index: test_index + index: bulk_50_refresh_1 - match: {count: 2} --- @@ -20,14 +20,14 @@ bulk: refresh: "" body: | - {"index": {"_index": "test_index", "_type": "test_type", "_id": "test_id"}} + {"index": {"_index": "bulk_50_refresh_2", "_type": "test_type", "_id": "bulk_50_refresh_id3"}} {"f1": "v1", "f2": 42} - {"index": {"_index": "test_index", "_type": "test_type", "_id": "test_id2"}} + {"index": {"_index": "bulk_50_refresh_2", "_type": "test_type", "_id": "bulk_50_refresh_id4"}} {"f1": "v2", "f2": 47} - do: count: - index: test_index + index: bulk_50_refresh_2 - match: {count: 2} @@ -37,12 +37,12 @@ bulk: refresh: wait_for body: | - {"index": {"_index": "test_index", "_type": "test_type", "_id": "test_id"}} + {"index": {"_index": "bulk_50_refresh_3", "_type": "test_type", "_id": "bulk_50_refresh_id5"}} {"f1": "v1", "f2": 42} - {"index": {"_index": "test_index", "_type": "test_type", "_id": "test_id2"}} + {"index": {"_index": "bulk_50_refresh_3", "_type": "test_type", "_id": "bulk_50_refresh_id6"}} {"f1": "v2", "f2": 47} - do: count: - index: test_index + index: bulk_50_refresh_3 - match: {count: 2} diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/create/60_refresh.yaml b/rest-api-spec/src/main/resources/rest-api-spec/test/create/60_refresh.yaml index 5cdc1a20583..deb5e1e6850 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/create/60_refresh.yaml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/create/60_refresh.yaml @@ -66,17 +66,17 @@ "refresh=wait_for waits until changes are visible in search": - do: index: - index: test_1 + index: create_60_refresh_1 type: test - id: 1 + id: create_60_refresh_id1 body: { foo: bar } refresh: wait_for - is_false: forced_refresh - do: search: - index: test_1 + index: create_60_refresh_1 type: test body: - query: { term: { _id: 1 }} + query: { term: { _id: create_60_refresh_id1 }} - match: { hits.total: 1 } diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/delete/50_refresh.yaml b/rest-api-spec/src/main/resources/rest-api-spec/test/delete/50_refresh.yaml index 9ea6bc033de..589d2cf77a3 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/delete/50_refresh.yaml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/delete/50_refresh.yaml @@ -115,33 +115,33 @@ "refresh=wait_for waits until changes are visible in search": - do: index: - index: test_1 + index: delete_50_refresh_1 type: test - id: 1 + id: delete_50_refresh_id1 body: { foo: bar } refresh: true - is_true: forced_refresh - do: search: - index: test_1 + index: delete_50_refresh_1 type: test body: - query: { term: { _id: 1 }} + query: { term: { _id: delete_50_refresh_id1 }} - match: { hits.total: 1 } - do: delete: - index: test_1 + index: delete_50_refresh_1 type: test - id: 1 + id: delete_50_refresh_id1 refresh: wait_for - is_false: forced_refresh - do: search: - index: test_1 + index: delete_50_refresh_1 type: test body: - query: { term: { _id: 1 }} + query: { term: { _id: delete_50_refresh_id1 }} - match: { hits.total: 0 } diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/index/60_refresh.yaml b/rest-api-spec/src/main/resources/rest-api-spec/test/index/60_refresh.yaml index 2175128debb..5d20406abee 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/index/60_refresh.yaml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/index/60_refresh.yaml @@ -67,17 +67,17 @@ "refresh=wait_for waits until changes are visible in search": - do: index: - index: test_1 + index: index_60_refresh_1 type: test - id: 1 + id: index_60_refresh_id1 body: { foo: bar } refresh: wait_for - is_false: forced_refresh - do: search: - index: test_1 + index: index_60_refresh_1 type: test body: - query: { term: { _id: 1 }} + query: { term: { _id: index_60_refresh_id1 }} - match: { hits.total: 1 } diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/update/60_refresh.yaml b/rest-api-spec/src/main/resources/rest-api-spec/test/update/60_refresh.yaml index c5fe68e26c9..62d8fd125ff 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/update/60_refresh.yaml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/update/60_refresh.yaml @@ -81,26 +81,26 @@ "refresh=wait_for waits until changes are visible in search": - do: index: - index: test_1 + index: update_60_refresh_1 type: test - id: 1 + id: update_60_refresh_id1 body: { foo: bar } refresh: true - is_true: forced_refresh - do: search: - index: test_1 + index: update_60_refresh_1 type: test body: - query: { term: { _id: 1 }} + query: { term: { _id: update_60_refresh_id1 }} - match: { hits.total: 1 } - do: update: - index: test_1 + index: update_60_refresh_1 type: test - id: 1 + id: update_60_refresh_id1 refresh: wait_for body: doc: { test: asdf } @@ -108,7 +108,7 @@ - do: search: - index: test_1 + index: update_60_refresh_1 type: test body: query: { match: { test: asdf } }