From b994d1d9340e49aad9da7922a4de080d6149800c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Mon, 21 Sep 2015 19:42:33 +0200 Subject: [PATCH] remove timestamp from reindex tests since it's deprecated in 2.0 --- test_elasticsearch/test_server/test_helpers.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test_elasticsearch/test_server/test_helpers.py b/test_elasticsearch/test_server/test_helpers.py index 2ff670eb..3e370bce 100644 --- a/test_elasticsearch/test_server/test_helpers.py +++ b/test_elasticsearch/test_server/test_helpers.py @@ -255,7 +255,6 @@ class TestParentChildReindex(ElasticsearchTestCase): 'settings': {"number_of_shards": 1, "number_of_replicas": 0}, 'mappings': { 'question': { - '_timestamp': {'enabled': True}, }, 'answer': { '_parent': {'type': 'question'}, @@ -270,7 +269,6 @@ class TestParentChildReindex(ElasticsearchTestCase): doc_type='question', id=42, body={}, - timestamp=datetime(2015, 1, 1) ) self.client.index( index='test-index', @@ -288,7 +286,7 @@ class TestParentChildReindex(ElasticsearchTestCase): index='real-index', doc_type='question', id=42, - fields=['_source', '_timestamp'] + fields=['_source'] ) if 'fields' in q: q.update(q.pop('fields')) @@ -299,7 +297,6 @@ class TestParentChildReindex(ElasticsearchTestCase): '_source': {}, '_type': 'question', '_version': 1, - '_timestamp': 1420070400000, 'found': True }, q )