mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-05 20:48:22 +00:00
If a type or path is missing in the REST test yaml file, it is automatically replaced with _all. This makes it hard to test changes in the api, for example adding the possibility to leave the index blank in addition to _all and * in the uri. closes #4657
32 lines
612 B
YAML
32 lines
612 B
YAML
---
|
|
"Basic":
|
|
|
|
- do:
|
|
index:
|
|
index: test_1
|
|
type: test
|
|
id: 中文
|
|
body: { "foo": "Hello: 中文" }
|
|
|
|
- do:
|
|
get:
|
|
index: test_1
|
|
type: test
|
|
id: 中文
|
|
|
|
- match: { _index: test_1 }
|
|
- match: { _type: test }
|
|
- match: { _id: 中文 }
|
|
- match: { _source: { foo: "Hello: 中文" } }
|
|
|
|
- do:
|
|
get:
|
|
index: test_1
|
|
type: _all
|
|
id: 中文
|
|
|
|
- match: { _index: test_1 }
|
|
- match: { _type: test }
|
|
- match: { _id: 中文 }
|
|
- match: { _source: { foo: "Hello: 中文" } }
|