From 9af9a1c748b31dea31f1501efd432f4fa102b9ff Mon Sep 17 00:00:00 2001 From: Evgenia Badiyanova Date: Mon, 25 Feb 2019 11:24:01 -0500 Subject: [PATCH] Update unit tests to reflect changes in #605 --- tests/driver/runner_test.py | 2 +- tests/metrics_test.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/driver/runner_test.py b/tests/driver/runner_test.py index 016377924..0d2793133 100644 --- a/tests/driver/runner_test.py +++ b/tests/driver/runner_test.py @@ -192,7 +192,7 @@ def test_bulk_index_success_without_metadata_with_doc_type(self, es): "action-metadata-present": False, "bulk-size": 3, "index": "test-index", - "type": "test-type" + "type": "_doc" } result = bulk(es, bulk_params) diff --git a/tests/metrics_test.py b/tests/metrics_test.py index e93277900..b502d11d2 100644 --- a/tests/metrics_test.py +++ b/tests/metrics_test.py @@ -764,7 +764,7 @@ def test_store_race(self): ] t = track.Track(name="unittest", - indices=[track.Index(name="tests", types=["test-type"])], + indices=[track.Index(name="tests", types=["_doc"])], challenges=[track.Challenge(name="index", default=True, schedule=schedule)]) race = metrics.Race(rally_version="0.4.4", environment_name="unittest", trial_id=EsRaceStoreTests.TRIAL_ID, @@ -875,7 +875,7 @@ def test_store_results(self): ] t = track.Track(name="unittest-track", - indices=[track.Index(name="tests", types=["test-type"])], + indices=[track.Index(name="tests", types=["_doc"])], challenges=[track.Challenge(name="index", default=True, schedule=schedule)]) c = cluster.Cluster([], [], None) @@ -1218,7 +1218,7 @@ def test_store_race(self): ] t = track.Track(name="unittest", - indices=[track.Index(name="tests", types=["test-type"])], + indices=[track.Index(name="tests", types=["_doc"])], challenges=[track.Challenge(name="index", default=True, schedule=schedule)]) race = metrics.Race(rally_version="0.4.4", environment_name="unittest", trial_id=FileRaceStoreTests.TRIAL_ID,