projects
/
osm
/
devops.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Jenkins refresh
[osm/devops.git]
/
installers
/
charm
/
mongodb-exporter
/
tests
/
test_pod_spec.py
diff --git
a/installers/charm/mongodb-exporter/tests/test_pod_spec.py
b/installers/charm/mongodb-exporter/tests/test_pod_spec.py
index
3e312f4
..
94ab6fb
100644
(file)
--- 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."""
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
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",
"""Testing make pod ingress resources."""
config = {
"site_url": "http://mongodb-exporter",
+ "cluster_issuer": "",
"ingress_whitelist_source_range": "",
}
app_name = "mongodb-exporter"
"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",
"""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"
"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",
"""Testing make pod ingress resources with HTTPs."""
config = {
"site_url": "https://mongodb-exporter",
+ "cluster_issuer": "",
"ingress_whitelist_source_range": "",
"tls_secret_name": "",
}
"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",
"""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",
}
"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": "",
image_info = {"upstream-source": "bitnami/mongodb-exporter:latest"}
config = {
"site_url": "",
+ "cluster_issuer": "",
}
relation_state = {
"mongodb_connection_string": "mongodb://mongo",
}
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",
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",
}
"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": "",
image_info = None
config = {
"site_url": "",
+ "cluster_issuer": "",
}
relation_state = {
"mongodb_connection_string": "mongodb://mongo",
}
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": "",
image_info = {"upstream-source": "bitnami/mongodb-exporter:latest"}
config = {
"site_url": "",
+ "cluster_issuer": "",
}
relation_state = {}
app_name = "mongodb-exporter"
}
relation_state = {}
app_name = "mongodb-exporter"