[importer] Enable all File formats when running indexer tests
@@ -26,9 +26,10 @@ from desktop.lib.django_test_util import make_logged_in_client
from desktop.lib.test_utils import grant_access, add_to_group
from hadoop.pseudo_hdfs4 import is_live_cluster, shared_cluster
+from indexer.conf import ENABLE_NEW_INDEXER
+from indexer.controller import CollectionManagerController
from indexer.file_format import ApacheCombinedFormat, RubyLogFormat, HueLogFormat
from indexer.fields import Field
-from indexer.controller import CollectionManagerController
from indexer.operations import get_operator
from indexer.smart_indexer import Indexer
@@ -117,6 +118,11 @@ class TestIndexer():
grant_access("test", "test", "indexer")
add_to_group("test")
+ self.finish = ENABLE_NEW_INDEXER.set_for_testing(True)
+
+ def tearDown(self):
+ self.finish()
+
def test_guess_csv_format(self):
stream = StringIO.StringIO(TestIndexer.simpleCSVString)
indexer = Indexer("test")
