OpenSearch/rest-api-spec/test/get/15_default_values.yaml
Britta Weber 216c814a7f remove default _all for type and index if these are missing in REST tests
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
2014-01-09 10:17:42 +01:00

22 lines
351 B
YAML

---
"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" } }