[TEST] Fixed TTL tests for create, index, update

Were failing on faster boxes
This commit is contained in:
Clinton Gormley 2014-03-31 15:10:24 +02:00
parent 2e26dc328e
commit a809bfbcb2
3 changed files with 17 additions and 9 deletions

View File

@ -1,6 +1,9 @@
---
"TTL":
- skip:
features: gtelte
- do:
indices.create:
index: test_1
@ -30,7 +33,7 @@
id: 1
fields: _ttl
- lt: { fields._ttl: 10000}
- lte: { fields._ttl: 10000}
- gt: { fields._ttl: 0}
# milliseconds
@ -54,7 +57,7 @@
id: 1
fields: _ttl
- lt: { fields._ttl: 100000}
- lte: { fields._ttl: 100000}
- gt: { fields._ttl: 10000}
# duration
@ -79,7 +82,7 @@
id: 1
fields: _ttl
- lt: { fields._ttl: 20000}
- lte: { fields._ttl: 20000}
- gt: { fields._ttl: 10000}
# with timestamp

View File

@ -1,6 +1,8 @@
---
"TTL":
- skip:
features: gtelte
- do:
indices.create:
index: test_1
@ -30,7 +32,7 @@
id: 1
fields: _ttl
- lt: { fields._ttl: 10000}
- lte: { fields._ttl: 10000}
- gt: { fields._ttl: 0}
# milliseconds
@ -49,7 +51,7 @@
id: 1
fields: _ttl
- lt: { fields._ttl: 100000}
- lte: { fields._ttl: 100000}
- gt: { fields._ttl: 10000}
# duration
@ -69,7 +71,7 @@
id: 1
fields: _ttl
- lt: { fields._ttl: 20000}
- lte: { fields._ttl: 20000}
- gt: { fields._ttl: 10000}
# with timestamp

View File

@ -1,6 +1,9 @@
---
"TTL":
- skip:
features: gtelte
- do:
indices.create:
index: test_1
@ -32,7 +35,7 @@
id: 1
fields: _ttl
- lt: { fields._ttl: 10001}
- lte: { fields._ttl: 10000}
- gt: { fields._ttl: 0}
# milliseconds
@ -54,7 +57,7 @@
id: 1
fields: _ttl
- lt: { fields._ttl: 100001}
- lte: { fields._ttl: 100000}
- gt: { fields._ttl: 10000}
# duration
@ -76,7 +79,7 @@
id: 1
fields: _ttl
- lt: { fields._ttl: 20001}
- lte: { fields._ttl: 20000}
- gt: { fields._ttl: 10000}
# with timestamp