summaryrefslogtreecommitdiff
path: root/rest-api-spec/test/get/15_default_values.yaml
blob: 5e08112253ef09a7658c69ff91d2b25cc0d8e097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
"Default values":

  - do:
      index:
        index: test_1
        type:  test
        id:    1
        body:  { "foo": "bar" }

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

  - match: { _index:   test_1 }
  - match: { _type:    test   }
  - match: { _id:      '1'    }
  - match: { _source:  { foo: "bar" } }