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
"""Testing make pod ingress resources."""
config = {
"site_url": "http://mongodb-exporter",
+ "cluster_issuer": "",
"ingress_whitelist_source_range": "",
}
app_name = "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"
"""Testing make pod ingress resources with HTTPs."""
config = {
"site_url": "https://mongodb-exporter",
+ "cluster_issuer": "",
"ingress_whitelist_source_range": "",
"tls_secret_name": "",
}
"""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",
}
image_info = {"upstream-source": "bitnami/mongodb-exporter:latest"}
config = {
"site_url": "",
+ "cluster_issuer": "",
}
relation_state = {
"mongodb_connection_string": "mongodb://mongo",
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",
}
image_info = None
config = {
"site_url": "",
+ "cluster_issuer": "",
}
relation_state = {
"mongodb_connection_string": "mongodb://mongo",
image_info = {"upstream-source": "bitnami/mongodb-exporter:latest"}
config = {
"site_url": "",
+ "cluster_issuer": "",
}
relation_state = {}
app_name = "mongodb-exporter"