The get_mapping tests were the wrong way around

This commit is contained in:
Clinton Gormley 2013-09-23 13:53:32 +02:00
parent a78781cdc6
commit be8fad31cf

View File

@ -24,7 +24,7 @@ setup:
"Get type mapping - pre 0.90.2":
- skip:
version: "0.90.2 - 999"
version: "0.90.3 - 999"
reason: "for newer versions the index name is always returned"
- do:
@ -32,20 +32,20 @@ setup:
index: test_index
type: test_type
- match: {test_index.test_type.properties.text.type: string}
- match: {test_index.test_type.properties.text.analyzer: whitespace}
---
"Get type mapping - post 0.90.2":
- skip:
version: "0 - 0.90.1"
reason: "for older versions, just the type name is returned"
- do:
indices.get_mapping:
index: test_index
type: test_type
- match: {test_type.properties.text.type: string}
- match: {test_type.properties.text.analyzer: whitespace}
---
"Get type mapping - post 0.90.2":
- skip:
version: "0 - 0.90.2"
reason: "for older versions, just the type name is returned"
- do:
indices.get_mapping:
index: test_index
type: test_type
- match: {test_index.test_type.properties.text.type: string}
- match: {test_index.test_type.properties.text.analyzer: whitespace}