x_refresh.yaml tests should use unique index names and doc ids to ease debugging
This is to make it easier to grep the node logs
This commit is contained in:
parent
e298180a39
commit
6249f1092f
|
@ -4,14 +4,14 @@
|
||||||
bulk:
|
bulk:
|
||||||
refresh: true
|
refresh: true
|
||||||
body: |
|
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}
|
{"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}
|
{"f1": "v2", "f2": 47}
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
count:
|
count:
|
||||||
index: test_index
|
index: bulk_50_refresh_1
|
||||||
- match: {count: 2}
|
- match: {count: 2}
|
||||||
|
|
||||||
---
|
---
|
||||||
|
@ -20,14 +20,14 @@
|
||||||
bulk:
|
bulk:
|
||||||
refresh: ""
|
refresh: ""
|
||||||
body: |
|
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}
|
{"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}
|
{"f1": "v2", "f2": 47}
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
count:
|
count:
|
||||||
index: test_index
|
index: bulk_50_refresh_2
|
||||||
- match: {count: 2}
|
- match: {count: 2}
|
||||||
|
|
||||||
|
|
||||||
|
@ -37,12 +37,12 @@
|
||||||
bulk:
|
bulk:
|
||||||
refresh: wait_for
|
refresh: wait_for
|
||||||
body: |
|
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}
|
{"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}
|
{"f1": "v2", "f2": 47}
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
count:
|
count:
|
||||||
index: test_index
|
index: bulk_50_refresh_3
|
||||||
- match: {count: 2}
|
- match: {count: 2}
|
||||||
|
|
|
@ -66,17 +66,17 @@
|
||||||
"refresh=wait_for waits until changes are visible in search":
|
"refresh=wait_for waits until changes are visible in search":
|
||||||
- do:
|
- do:
|
||||||
index:
|
index:
|
||||||
index: test_1
|
index: create_60_refresh_1
|
||||||
type: test
|
type: test
|
||||||
id: 1
|
id: create_60_refresh_id1
|
||||||
body: { foo: bar }
|
body: { foo: bar }
|
||||||
refresh: wait_for
|
refresh: wait_for
|
||||||
- is_false: forced_refresh
|
- is_false: forced_refresh
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
search:
|
search:
|
||||||
index: test_1
|
index: create_60_refresh_1
|
||||||
type: test
|
type: test
|
||||||
body:
|
body:
|
||||||
query: { term: { _id: 1 }}
|
query: { term: { _id: create_60_refresh_id1 }}
|
||||||
- match: { hits.total: 1 }
|
- match: { hits.total: 1 }
|
||||||
|
|
|
@ -115,33 +115,33 @@
|
||||||
"refresh=wait_for waits until changes are visible in search":
|
"refresh=wait_for waits until changes are visible in search":
|
||||||
- do:
|
- do:
|
||||||
index:
|
index:
|
||||||
index: test_1
|
index: delete_50_refresh_1
|
||||||
type: test
|
type: test
|
||||||
id: 1
|
id: delete_50_refresh_id1
|
||||||
body: { foo: bar }
|
body: { foo: bar }
|
||||||
refresh: true
|
refresh: true
|
||||||
- is_true: forced_refresh
|
- is_true: forced_refresh
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
search:
|
search:
|
||||||
index: test_1
|
index: delete_50_refresh_1
|
||||||
type: test
|
type: test
|
||||||
body:
|
body:
|
||||||
query: { term: { _id: 1 }}
|
query: { term: { _id: delete_50_refresh_id1 }}
|
||||||
- match: { hits.total: 1 }
|
- match: { hits.total: 1 }
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
delete:
|
delete:
|
||||||
index: test_1
|
index: delete_50_refresh_1
|
||||||
type: test
|
type: test
|
||||||
id: 1
|
id: delete_50_refresh_id1
|
||||||
refresh: wait_for
|
refresh: wait_for
|
||||||
- is_false: forced_refresh
|
- is_false: forced_refresh
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
search:
|
search:
|
||||||
index: test_1
|
index: delete_50_refresh_1
|
||||||
type: test
|
type: test
|
||||||
body:
|
body:
|
||||||
query: { term: { _id: 1 }}
|
query: { term: { _id: delete_50_refresh_id1 }}
|
||||||
- match: { hits.total: 0 }
|
- match: { hits.total: 0 }
|
||||||
|
|
|
@ -67,17 +67,17 @@
|
||||||
"refresh=wait_for waits until changes are visible in search":
|
"refresh=wait_for waits until changes are visible in search":
|
||||||
- do:
|
- do:
|
||||||
index:
|
index:
|
||||||
index: test_1
|
index: index_60_refresh_1
|
||||||
type: test
|
type: test
|
||||||
id: 1
|
id: index_60_refresh_id1
|
||||||
body: { foo: bar }
|
body: { foo: bar }
|
||||||
refresh: wait_for
|
refresh: wait_for
|
||||||
- is_false: forced_refresh
|
- is_false: forced_refresh
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
search:
|
search:
|
||||||
index: test_1
|
index: index_60_refresh_1
|
||||||
type: test
|
type: test
|
||||||
body:
|
body:
|
||||||
query: { term: { _id: 1 }}
|
query: { term: { _id: index_60_refresh_id1 }}
|
||||||
- match: { hits.total: 1 }
|
- match: { hits.total: 1 }
|
||||||
|
|
|
@ -81,26 +81,26 @@
|
||||||
"refresh=wait_for waits until changes are visible in search":
|
"refresh=wait_for waits until changes are visible in search":
|
||||||
- do:
|
- do:
|
||||||
index:
|
index:
|
||||||
index: test_1
|
index: update_60_refresh_1
|
||||||
type: test
|
type: test
|
||||||
id: 1
|
id: update_60_refresh_id1
|
||||||
body: { foo: bar }
|
body: { foo: bar }
|
||||||
refresh: true
|
refresh: true
|
||||||
- is_true: forced_refresh
|
- is_true: forced_refresh
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
search:
|
search:
|
||||||
index: test_1
|
index: update_60_refresh_1
|
||||||
type: test
|
type: test
|
||||||
body:
|
body:
|
||||||
query: { term: { _id: 1 }}
|
query: { term: { _id: update_60_refresh_id1 }}
|
||||||
- match: { hits.total: 1 }
|
- match: { hits.total: 1 }
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
update:
|
update:
|
||||||
index: test_1
|
index: update_60_refresh_1
|
||||||
type: test
|
type: test
|
||||||
id: 1
|
id: update_60_refresh_id1
|
||||||
refresh: wait_for
|
refresh: wait_for
|
||||||
body:
|
body:
|
||||||
doc: { test: asdf }
|
doc: { test: asdf }
|
||||||
|
@ -108,7 +108,7 @@
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
search:
|
search:
|
||||||
index: test_1
|
index: update_60_refresh_1
|
||||||
type: test
|
type: test
|
||||||
body:
|
body:
|
||||||
query: { match: { test: asdf } }
|
query: { match: { test: asdf } }
|
||||||
|
|
Loading…
Reference in New Issue