projects
/
osm
/
devops.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removing charm promotion
[osm/devops.git]
/
installers
/
charm
/
mysqld-exporter
/
tests
/
test_pod_spec.py
diff --git
a/installers/charm/mysqld-exporter/tests/test_pod_spec.py
b/installers/charm/mysqld-exporter/tests/test_pod_spec.py
index
c2dd1e2
..
a9c29ef
100644
(file)
--- a/
installers/charm/mysqld-exporter/tests/test_pod_spec.py
+++ b/
installers/charm/mysqld-exporter/tests/test_pod_spec.py
@@
-68,7
+68,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 = "mysqld-exporter"
port = 9104
app_name = "mysqld-exporter"
port = 9104
@@
-82,6
+85,7
@@
class TestPodSpec(unittest.TestCase):
"""Testing make pod ingress resources."""
config = {
"site_url": "http://mysqld-exporter",
"""Testing make pod ingress resources."""
config = {
"site_url": "http://mysqld-exporter",
+ "cluster_issuer": "",
"ingress_whitelist_source_range": "",
}
app_name = "mysqld-exporter"
"ingress_whitelist_source_range": "",
}
app_name = "mysqld-exporter"
@@
-124,6
+128,7
@@
class TestPodSpec(unittest.TestCase):
"""Testing make pod ingress resources with whitelist_source_range."""
config = {
"site_url": "http://mysqld-exporter",
"""Testing make pod ingress resources with whitelist_source_range."""
config = {
"site_url": "http://mysqld-exporter",
+ "cluster_issuer": "",
"ingress_whitelist_source_range": "0.0.0.0/0",
}
app_name = "mysqld-exporter"
"ingress_whitelist_source_range": "0.0.0.0/0",
}
app_name = "mysqld-exporter"
@@
-169,6
+174,7
@@
class TestPodSpec(unittest.TestCase):
"""Testing make pod ingress resources with HTTPs."""
config = {
"site_url": "https://mysqld-exporter",
"""Testing make pod ingress resources with HTTPs."""
config = {
"site_url": "https://mysqld-exporter",
+ "cluster_issuer": "",
"ingress_whitelist_source_range": "",
"tls_secret_name": "",
}
"ingress_whitelist_source_range": "",
"tls_secret_name": "",
}
@@
-211,6
+217,7
@@
class TestPodSpec(unittest.TestCase):
"""Testing make pod ingress resources with HTTPs and TLS secret name."""
config = {
"site_url": "https://mysqld-exporter",
"""Testing make pod ingress resources with HTTPs and TLS secret name."""
config = {
"site_url": "https://mysqld-exporter",
+ "cluster_issuer": "",
"ingress_whitelist_source_range": "",
"tls_secret_name": "secret_name",
}
"ingress_whitelist_source_range": "",
"tls_secret_name": "secret_name",
}
@@
-294,6
+301,7
@@
class TestPodSpec(unittest.TestCase):
image_info = {"upstream-source": "bitnami/mysqld-exporter:latest"}
config = {
"site_url": "",
image_info = {"upstream-source": "bitnami/mysqld-exporter:latest"}
config = {
"site_url": "",
+ "cluster_issuer": "",
}
relation_state = {
"mysql_host": "mysql",
}
relation_state = {
"mysql_host": "mysql",
@@
-362,6
+370,7
@@
class TestPodSpec(unittest.TestCase):
image_info = {"upstream-source": "bitnami/mysqld-exporter:latest"}
config = {
"site_url": "https://mysqld-exporter",
image_info = {"upstream-source": "bitnami/mysqld-exporter:latest"}
config = {
"site_url": "https://mysqld-exporter",
+ "cluster_issuer": "",
"tls_secret_name": "mysqld-exporter",
"ingress_whitelist_source_range": "0.0.0.0/0",
}
"tls_secret_name": "mysqld-exporter",
"ingress_whitelist_source_range": "0.0.0.0/0",
}
@@
-467,6
+476,7
@@
class TestPodSpec(unittest.TestCase):
image_info = None
config = {
"site_url": "",
image_info = None
config = {
"site_url": "",
+ "cluster_issuer": "",
}
relation_state = {
"mysql_host": "mysql",
}
relation_state = {
"mysql_host": "mysql",
@@
-489,6
+499,7
@@
class TestPodSpec(unittest.TestCase):
image_info = {"upstream-source": "bitnami/mysqld-exporter:latest"}
config = {
"site_url": "",
image_info = {"upstream-source": "bitnami/mysqld-exporter:latest"}
config = {
"site_url": "",
+ "cluster_issuer": "",
}
relation_state = {}
app_name = "mysqld-exporter"
}
relation_state = {}
app_name = "mysqld-exporter"