Added tests for default document type in `get` and `get_source` APIs
This commit is contained in:
parent
e784cff1b0
commit
cb4b04e49f
|
@ -0,0 +1,20 @@
|
||||||
|
---
|
||||||
|
"Default values":
|
||||||
|
|
||||||
|
- do:
|
||||||
|
index:
|
||||||
|
index: test_1
|
||||||
|
type: test
|
||||||
|
id: 1
|
||||||
|
body: { "foo": "bar" }
|
||||||
|
|
||||||
|
- do:
|
||||||
|
get:
|
||||||
|
index: test_1
|
||||||
|
id: 1
|
||||||
|
|
||||||
|
- match: { _index: test_1 }
|
||||||
|
- match: { _type: test }
|
||||||
|
- match: { _id: '1' }
|
||||||
|
- match: { _source: { foo: "bar" } }
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
- match: { _index: test_1 }
|
- match: { _index: test_1 }
|
||||||
- match: { _type: test }
|
- match: { _type: test }
|
||||||
- match: { _id: "1" }
|
- match: { _id: '1' }
|
||||||
- match: { fields.foo: bar }
|
- match: { fields.foo: bar }
|
||||||
- is_false: _source
|
- is_false: _source
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
---
|
||||||
|
"Default values":
|
||||||
|
|
||||||
|
- do:
|
||||||
|
index:
|
||||||
|
index: test_1
|
||||||
|
type: test
|
||||||
|
id: 1
|
||||||
|
body: { "foo": "bar" }
|
||||||
|
|
||||||
|
- do:
|
||||||
|
get_source:
|
||||||
|
index: test_1
|
||||||
|
id: 1
|
||||||
|
|
||||||
|
- match: { '': { foo: bar } }
|
Loading…
Reference in New Issue