Add secret-management in Charmed OSM
[osm/devops.git] / installers / charm / lcm / tests / test_charm.py
index 1378e5c..776b384 100644 (file)
@@ -109,32 +109,32 @@ class TestCharm(unittest.TestCase):
         # Verifying status
         self.assertIsInstance(self.harness.charm.unit.status, BlockedStatus)
 
-    def test_build_pod_spec(
-        self,
-    ) -> NoReturn:
-        expected_config = {
-            "OSMLCM_GLOBAL_LOGLEVEL": self.config["log_level"],
-            "OSMLCM_DATABASE_COMMONKEY": self.config["database_commonkey"],
-        }
-        expected_config.update(
-            {
-                f"OSMLCM_{k.upper()}": v
-                for k, v in self.config.items()
-                if k.startswith("vca_")
-            }
-        )
-        self.harness.charm._check_missing_dependencies = mock.Mock()
-        pod_spec = self.harness.charm.build_pod_spec(
-            {"imageDetails": {"imagePath": "lcm-image"}}
-        )
-        actual_config = pod_spec["containers"][0]["envConfig"]
-
-        self.assertDictContainsSubset(
-            expected_config,
-            actual_config,
-        )
-        for config_key in actual_config:
-            self.assertNotIn("VCA_MODEL_CONFIG", config_key)
+    def test_build_pod_spec(
+        self,
+    ) -> NoReturn:
+        expected_config = {
+            "OSMLCM_GLOBAL_LOGLEVEL": self.config["log_level"],
+            "OSMLCM_DATABASE_COMMONKEY": self.config["database_commonkey"],
+        }
+        expected_config.update(
+            {
+                f"OSMLCM_{k.upper()}": v
+                for k, v in self.config.items()
+                if k.startswith("vca_")
+            }
+        )
+        self.harness.charm._check_missing_dependencies = mock.Mock()
+        pod_spec = self.harness.charm.build_pod_spec(
+            {"imageDetails": {"imagePath": "lcm-image"}}
+        )
+        actual_config = pod_spec["containers"][0]["envConfig"]
+
+        self.assertDictContainsSubset(
+            expected_config,
+            actual_config,
+        )
+        for config_key in actual_config:
+            self.assertNotIn("VCA_MODEL_CONFIG", config_key)
 
     def test_build_pod_spec_with_model_config(
         self,