summaryrefslogtreecommitdiff
path: root/rest-api-spec/test/get_source/10_basic.yaml
blob: b20357cdf99a602b53d4ff71a84684a1122f09f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
"Basic":
  - do:
      index:
        index: test_1
        type:  test
        id:    1
        body:  { "foo": "bar" }

  - do:
      get_source:
        index: test_1
        type:  test
        id:    1

  - match: { '':  { foo: bar } }

  - do:
      get_source:
        index: test_1
        type: _all
        id:    1

  - match: { '':  { foo: bar } }