X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Fcharm%2Fmongodb-exporter%2Ftests%2Ftest_pod_spec.py;h=94ab6fb5e7774815c3a96482a799e342204ae803;hb=3cc0316794cc75ecffdf2b969b4ad98d0dd7e826;hp=3e312f487be979e32cd31771de38d40f04c506d5;hpb=021b307297a6ab8dfe9ee3af03154989bcd9e0e8;p=osm%2Fdevops.git diff --git a/installers/charm/mongodb-exporter/tests/test_pod_spec.py b/installers/charm/mongodb-exporter/tests/test_pod_spec.py index 3e312f48..94ab6fb5 100644 --- a/installers/charm/mongodb-exporter/tests/test_pod_spec.py +++ b/installers/charm/mongodb-exporter/tests/test_pod_spec.py @@ -60,7 +60,10 @@ class TestPodSpec(unittest.TestCase): def test_make_pod_ingress_resources_without_site_url(self) -> NoReturn: """Testing make pod ingress resources without site_url.""" - config = {"site_url": ""} + config = { + "site_url": "", + "cluster_issuer": "", + } app_name = "mongodb-exporter" port = 9216 @@ -74,6 +77,7 @@ class TestPodSpec(unittest.TestCase): """Testing make pod ingress resources.""" config = { "site_url": "http://mongodb-exporter", + "cluster_issuer": "", "ingress_whitelist_source_range": "", } app_name = "mongodb-exporter" @@ -116,6 +120,7 @@ class TestPodSpec(unittest.TestCase): """Testing make pod ingress resources with whitelist_source_range.""" config = { "site_url": "http://mongodb-exporter", + "cluster_issuer": "", "ingress_whitelist_source_range": "0.0.0.0/0", } app_name = "mongodb-exporter" @@ -161,6 +166,7 @@ class TestPodSpec(unittest.TestCase): """Testing make pod ingress resources with HTTPs.""" config = { "site_url": "https://mongodb-exporter", + "cluster_issuer": "", "ingress_whitelist_source_range": "", "tls_secret_name": "", } @@ -203,6 +209,7 @@ class TestPodSpec(unittest.TestCase): """Testing make pod ingress resources with HTTPs and TLS secret name.""" config = { "site_url": "https://mongodb-exporter", + "cluster_issuer": "", "ingress_whitelist_source_range": "", "tls_secret_name": "secret_name", } @@ -286,6 +293,7 @@ class TestPodSpec(unittest.TestCase): image_info = {"upstream-source": "bitnami/mongodb-exporter:latest"} config = { "site_url": "", + "cluster_issuer": "", } relation_state = { "mongodb_connection_string": "mongodb://mongo", @@ -348,6 +356,7 @@ class TestPodSpec(unittest.TestCase): image_info = {"upstream-source": "bitnami/mongodb-exporter:latest"} config = { "site_url": "https://mongodb-exporter", + "cluster_issuer": "", "tls_secret_name": "mongodb-exporter", "ingress_whitelist_source_range": "0.0.0.0/0", } @@ -447,6 +456,7 @@ class TestPodSpec(unittest.TestCase): image_info = None config = { "site_url": "", + "cluster_issuer": "", } relation_state = { "mongodb_connection_string": "mongodb://mongo", @@ -465,6 +475,7 @@ class TestPodSpec(unittest.TestCase): image_info = {"upstream-source": "bitnami/mongodb-exporter:latest"} config = { "site_url": "", + "cluster_issuer": "", } relation_state = {} app_name = "mongodb-exporter"