Feature 10929: LCM saga, Milestone 1.
[osm/LCM.git] / osm_lcm / tests / test_lcm.py
index bdd9a8d..e05836a 100644 (file)
@@ -64,7 +64,7 @@ def check_file_content(health_check_file: str) -> str:
 
 class TestLcm(TestCase):
     def setUp(self):
-        self.config_file = os.getcwd() + "/osm_lcm/tests/test_lcm_config_file.yaml"
+        self.config_file = os.getcwd() + "/osm_lcm/tests/test_lcm_config_file_ini.cfg"
         self.config_file_without_storage_path = tempfile.mkstemp()[1]
         Database.instance = None
         self.db = Mock(Database({"database": {"driver": "memory"}}).instance.db)
@@ -80,10 +80,10 @@ class TestLcm(TestCase):
     def test_get_health_check_file_from_config_file(self):
         self.assertEqual(self.my_lcm.health_check_file, "/tmp/storage/time_last_ping")
 
-    def test_health_check_file_not_in_config_file(self):
-        create_lcm_config(self.config_file, self.config_file_without_storage_path, 38)
-        with self.assertRaises(LcmException):
-            Lcm(config_file=self.config_file_without_storage_path)
+    def test_health_check_file_not_in_config_file(self):
+        create_lcm_config(self.config_file, self.config_file_without_storage_path, 38)
+        with self.assertRaises(LcmException):
+            Lcm(config_file=self.config_file_without_storage_path)
 
     def test_kafka_admin_topic_ping_command(self):
         params = {