Skip to content

Commit

Permalink
Fix some REST tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtibshirani committed Feb 3, 2019
1 parent 93ec33f commit 82066cf
Show file tree
Hide file tree
Showing 9 changed files with 80 additions and 122 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,22 @@ setup:
settings:
number_of_shards: 2
mappings:
_doc:
properties:
dval:
type: double
properties:
dval:
type: double
- do:
index:
index: test
type: _doc
id: d1
body: {"dval": 10}
- do:
index:
index: test
type: _doc
id: d2
body: {"dval": 100}
- do:
index:
index: test
type: _doc
id: d3
body: {"dval": 1000}

Expand Down Expand Up @@ -225,10 +221,9 @@ setup:
settings:
number_of_shards: 1
mappings:
_doc:
properties:
date:
type: date
properties:
date:
type: date
- do:
index:
index: test
Expand Down Expand Up @@ -309,16 +304,15 @@ setup:
settings:
number_of_shards: 1
mappings:
_doc:
properties:
ival:
type: integer
lval:
type: long
fval:
type: float
dval:
type: double
properties:
ival:
type: integer
lval:
type: long
fval:
type: float
dval:
type: double

- do:
index:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@
index: test
body:
mappings:
_doc:
_source:
enabled: false
_source:
enabled: false
- do:
index:
index: test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ setup:
index: foo
body:
mappings:
_doc:
properties:
the_field:
type: date
value_field:
type: integer
properties:
the_field:
type: date
value_field:
type: integer

- do:
headers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ setup:
index: foo
body:
mappings:
_doc:
properties:
the_field:
type: date
value_field:
type: integer
properties:
the_field:
type: date
value_field:
type: integer

---
"Test basic get_jobs":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ setup:
index: foo
body:
mappings:
_doc:
properties:
the_field:
type: date
value_field:
type: integer
properties:
the_field:
type: date
value_field:
type: integer

---
"Test basic put_job":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ setup:
index: foo
body:
mappings:
_doc:
properties:
timestamp:
type: date
partition:
type: keyword
price:
type: integer
properties:
timestamp:
type: date
partition:
type: keyword
price:
type: integer

- do:
headers:
Expand Down Expand Up @@ -51,7 +50,6 @@ setup:
body:
- index:
_index: "foo_rollup"
_type: "_doc"
- timestamp.date_histogram.timestamp: "2017-01-01T05:00:00Z"
timestamp.date_histogram.interval: "1h"
timestamp.date_histogram.time_zone: "UTC"
Expand All @@ -67,7 +65,6 @@ setup:

- index:
_index: "foo_rollup"
_type: "_doc"
- timestamp.date_histogram.timestamp: "2017-01-01T06:00:00Z"
timestamp.date_histogram.interval: "1h"
timestamp.date_histogram.time_zone: "UTC"
Expand All @@ -83,7 +80,6 @@ setup:

- index:
_index: "foo_rollup"
_type: "_doc"
- timestamp.date_histogram.timestamp: "2017-01-01T07:00:00Z"
timestamp.date_histogram.interval: "1h"
timestamp.date_histogram.time_zone: "UTC"
Expand All @@ -99,7 +95,6 @@ setup:

- index:
_index: "foo_rollup"
_type: "_doc"
- timestamp.date_histogram.timestamp: "2017-01-01T08:00:00Z"
timestamp.date_histogram.interval: "1h"
timestamp.date_histogram.time_zone: "UTC"
Expand All @@ -115,7 +110,6 @@ setup:

- index:
_index: "foo_rollup"
_type: "_doc"
- timestamp.date_histogram.timestamp: "2017-01-01T08:00:00Z"
timestamp.date_histogram.interval: "1h"
timestamp.date_histogram.time_zone: "UTC"
Expand Down Expand Up @@ -319,7 +313,6 @@ setup:
body:
- index:
_index: "foo_rollup"
_type: "_doc"
- timestamp.date_histogram.timestamp: "2017-01-01T05:00:00Z"
timestamp.date_histogram.interval: "1h"
timestamp.date_histogram.time_zone: "UTC"
Expand All @@ -335,7 +328,6 @@ setup:

- index:
_index: "foo_rollup"
_type: "_doc"
- timestamp.date_histogram.timestamp: "2017-01-01T06:00:00Z"
timestamp.date_histogram.interval: "1h"
timestamp.date_histogram.time_zone: "UTC"
Expand All @@ -351,7 +343,6 @@ setup:

- index:
_index: "foo_rollup"
_type: "_doc"
- timestamp.date_histogram.timestamp: "2017-01-01T07:00:00Z"
timestamp.date_histogram.interval: "1h"
timestamp.date_histogram.time_zone: "UTC"
Expand All @@ -367,7 +358,6 @@ setup:

- index:
_index: "foo_rollup"
_type: "_doc"
- timestamp.date_histogram.timestamp: "2017-01-01T08:00:00Z"
timestamp.date_histogram.interval: "1h"
timestamp.date_histogram.time_zone: "UTC"
Expand All @@ -383,7 +373,6 @@ setup:

- index:
_index: "foo_rollup"
_type: "_doc"
- timestamp.date_histogram.timestamp: "2017-01-01T08:00:00Z"
timestamp.date_histogram.interval: "1h"
timestamp.date_histogram.time_zone: "UTC"
Expand Down Expand Up @@ -467,7 +456,6 @@ setup:
body:
- index:
_index: "foo_rollup"
_type: "_doc"
- timestamp.date_histogram.timestamp: "2017-01-01T05:00:00Z"
timestamp.date_histogram.interval: "1h"
timestamp.date_histogram.time_zone: "UTC"
Expand All @@ -483,7 +471,6 @@ setup:

- index:
_index: "foo_rollup"
_type: "_doc"
- timestamp.date_histogram.timestamp: "2017-01-01T06:00:00Z"
timestamp.date_histogram.interval: "1h"
timestamp.date_histogram.time_zone: "UTC"
Expand All @@ -499,7 +486,6 @@ setup:

- index:
_index: "foo_rollup"
_type: "_doc"
- timestamp.date_histogram.timestamp: "2017-01-01T07:00:00Z"
timestamp.date_histogram.interval: "1h"
timestamp.date_histogram.time_zone: "UTC"
Expand All @@ -515,7 +501,6 @@ setup:

- index:
_index: "foo_rollup"
_type: "_doc"
- timestamp.date_histogram.timestamp: "2017-01-01T08:00:00Z"
timestamp.date_histogram.interval: "1h"
timestamp.date_histogram.time_zone: "UTC"
Expand All @@ -531,7 +516,6 @@ setup:

- index:
_index: "foo_rollup"
_type: "_doc"
- timestamp.date_histogram.timestamp: "2017-01-01T08:00:00Z"
timestamp.date_histogram.interval: "1h"
timestamp.date_histogram.time_zone: "UTC"
Expand Down Expand Up @@ -617,7 +601,6 @@ setup:
body:
- index:
_index: "foo_rollup"
_type: "_doc"
- timestamp.date_histogram.timestamp: "2017-01-01T05:00:00Z"
timestamp.date_histogram.interval: "1h"
timestamp.date_histogram.time_zone: "UTC"
Expand All @@ -633,7 +616,6 @@ setup:

- index:
_index: "foo_rollup"
_type: "_doc"
- timestamp.date_histogram.timestamp: "2017-01-01T06:00:00Z"
timestamp.date_histogram.interval: "1h"
timestamp.date_histogram.time_zone: "UTC"
Expand All @@ -649,7 +631,6 @@ setup:

- index:
_index: "foo_rollup"
_type: "_doc"
- timestamp.date_histogram.timestamp: "2017-01-01T07:00:00Z"
timestamp.date_histogram.interval: "1h"
timestamp.date_histogram.time_zone: "UTC"
Expand All @@ -665,7 +646,6 @@ setup:

- index:
_index: "foo_rollup"
_type: "_doc"
- timestamp.date_histogram.timestamp: "2017-01-01T08:00:00Z"
timestamp.date_histogram.interval: "1h"
timestamp.date_histogram.time_zone: "UTC"
Expand All @@ -681,7 +661,6 @@ setup:

- index:
_index: "foo_rollup"
_type: "_doc"
- timestamp.date_histogram.timestamp: "2017-01-01T08:00:00Z"
timestamp.date_histogram.interval: "1h"
timestamp.date_histogram.time_zone: "UTC"
Expand Down Expand Up @@ -760,14 +739,13 @@ setup:
index: bar
body:
mappings:
_doc:
properties:
timestamp:
type: date
partition:
type: keyword
price:
type: integer
properties:
timestamp:
type: date
partition:
type: keyword
price:
type: integer

- do:
headers:
Expand Down Expand Up @@ -849,14 +827,13 @@ setup:
index: bar
body:
mappings:
_doc:
properties:
timestamp:
type: date
partition:
type: keyword
price:
type: integer
properties:
timestamp:
type: date
partition:
type: keyword
price:
type: integer

- do:
headers:
Expand Down
Loading

0 comments on commit 82066cf

Please sign in to comment.