remove timestamp from reindex tests since it's deprecated in 2.0

This commit is contained in:
Honza Král
2015-09-21 19:42:33 +02:00
parent 324599dd03
commit b994d1d934
@@ -255,7 +255,6 @@ class TestParentChildReindex(ElasticsearchTestCase):
'settings': {"number_of_shards": 1, "number_of_replicas": 0}, 'settings': {"number_of_shards": 1, "number_of_replicas": 0},
'mappings': { 'mappings': {
'question': { 'question': {
'_timestamp': {'enabled': True},
}, },
'answer': { 'answer': {
'_parent': {'type': 'question'}, '_parent': {'type': 'question'},
@@ -270,7 +269,6 @@ class TestParentChildReindex(ElasticsearchTestCase):
doc_type='question', doc_type='question',
id=42, id=42,
body={}, body={},
timestamp=datetime(2015, 1, 1)
) )
self.client.index( self.client.index(
index='test-index', index='test-index',
@@ -288,7 +286,7 @@ class TestParentChildReindex(ElasticsearchTestCase):
index='real-index', index='real-index',
doc_type='question', doc_type='question',
id=42, id=42,
fields=['_source', '_timestamp'] fields=['_source']
) )
if 'fields' in q: if 'fields' in q:
q.update(q.pop('fields')) q.update(q.pop('fields'))
@@ -299,7 +297,6 @@ class TestParentChildReindex(ElasticsearchTestCase):
'_source': {}, '_source': {},
'_type': 'question', '_type': 'question',
'_version': 1, '_version': 1,
'_timestamp': 1420070400000,
'found': True 'found': True
}, q }, q
) )