Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default include_type_name to false in the yml test harness. #38058

Merged
merged 15 commits into from
Feb 1, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ setup:
reason: Field aliases were introduced in 6.4.0.
- do:
indices.put_mapping:
include_type_name: false
colings86 marked this conversation as resolved.
Show resolved Hide resolved
index: test
body:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
search:
rest_total_hits_as_int: true
index: "search_index"
body: { "size" : 0, "query" : { "terms" : { "user" : { "index": "lookup_index", "id": "1", "path": "followers"} } } }
body: { "size" : 0, "query" : { "terms" : { "user" : { "index": "lookup_index", "type": "_doc", "id": "1", "path": "followers"} } } }
- do:
indices.create:
index: lookup_index
Expand All @@ -58,7 +58,7 @@
search:
rest_total_hits_as_int: true
index: "search_index"
body: { "size" : 0, "query" : { "terms" : { "user" : { "index": "lookup_index", "id": "1", "path": "followers"} } } }
body: { "size" : 0, "query" : { "terms" : { "user" : { "index": "lookup_index", "type": "_doc", "id": "1", "path": "followers"} } } }

- match: { _shards.total: 5 }
- match: { _shards.successful: 5 }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@
soft_deletes:
enabled: true
mappings:
doc:
properties:
field:
type: keyword
properties:
field:
type: keyword
- is_true: acknowledged

- do:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@
soft_deletes:
enabled: true
mappings:
doc:
properties:
field:
type: keyword
properties:
field:
type: keyword

- do:
ccr.follow:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@
soft_deletes:
enabled: true
mappings:
doc:
properties:
field:
type: keyword
properties:
field:
type: keyword
- is_true: acknowledged

- do:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,11 @@ teardown:
aliases:
the_alias : {}
mappings:
doc:
properties:
location:
properties:
city:
type: "keyword"
properties:
location:
properties:
city:
type: "keyword"
settings:
index:
number_of_shards: 1
Expand All @@ -100,9 +99,9 @@ teardown:
bulk:
refresh: true
body:
- '{"index": {"_index": "test_index", "_type": "doc"}}'
- '{"index": {"_index": "test_index"}}'
- '{"marker": "test_1", "location.city": "bos"}'
- '{"index": {"_index": "test_index", "_type": "doc"}}'
- '{"index": {"_index": "test_index"}}'
- '{"marker": "test_2", "location.city": "ams"}'

- do:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ setup:
number_of_shards: 1
number_of_replicas: 0
mappings:
test:
properties:
keys:
type : integer
properties:
keys:
type : integer

---
"Test basic graph explore":
Expand All @@ -22,14 +21,12 @@ setup:
- do:
index:
index: test_1
type: test
id: 1
body: { keys: [1,2,3] }

- do:
index:
index: test_1
type: test
id: 2
body: { keys: [4,5,6] }

Expand All @@ -44,7 +41,6 @@ setup:
- do:
xpack.graph.explore:
index: test_1
type: test
body: {"query": {"match": {"keys": 1}},"controls":{"use_significance":false},"vertices":[{"field": "keys","min_doc_count": 1}]}
- length: {failures: 0}
- length: {vertices: 3}
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ setup:
index:
number_of_replicas: 1
mappings:
type-1:
properties:
time:
type: date
properties:
time:
type: date

- do:
headers:
Expand All @@ -26,10 +25,9 @@ setup:
index:
number_of_replicas: 1
mappings:
type-2:
properties:
time:
type: date
properties:
time:
type: date

- do:
headers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,19 @@ setup:
index: airline-data
body:
mappings:
response:
properties:
time:
type: date
airline:
type: keyword
responsetime:
type: float
event_rate:
type: integer
properties:
time:
type: date
airline:
type: keyword
responsetime:
type: float
event_rate:
type: integer

- do:
index:
index: airline-data
type: response
id: 1
body: >
{
Expand All @@ -31,7 +29,6 @@ setup:
- do:
index:
index: airline-data
type: response
id: 2
body: >
{
Expand All @@ -44,7 +41,6 @@ setup:
- do:
index:
index: airline-data
type: response
id: 3
body: >
{
Expand All @@ -57,7 +53,6 @@ setup:
- do:
index:
index: airline-data
type: response
id: 4
body: >
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@ setup:
index: airline-data
body:
mappings:
response:
properties:
time:
type: date
airline:
type: keyword
airport:
type: text
responsetime:
type: float
properties:
time:
type: date
airline:
type: keyword
airport:
type: text
responsetime:
type: float
- do:
headers:
Authorization: "Basic eF9wYWNrX3Jlc3RfdXNlcjp4LXBhY2stdGVzdC1wYXNzd29yZA==" # run as x_pack_rest_user, i.e. the test setup superuser
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@ setup:
index: airline-data
body:
mappings:
response:
properties:
time:
type: date
airline:
type: keyword
airport:
type: text
responsetime:
type: float
properties:
time:
type: date
airline:
type: keyword
airport:
type: text
responsetime:
type: float

- do:
headers:
Expand Down
Loading