|
|
|
@ -42,12 +42,11 @@ def test_validate_with_reason():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_c4k_build_should_update_fqdn(tmp_path):
|
|
|
|
|
name = "should_update_fqdn"
|
|
|
|
|
project = Project(str(tmp_path), name=name)
|
|
|
|
|
project = Project(str(tmp_path), name='test-project')
|
|
|
|
|
project_config = {
|
|
|
|
|
"stage": "test",
|
|
|
|
|
"project_root_path": str(tmp_path),
|
|
|
|
|
"module": name,
|
|
|
|
|
"module": 'module',
|
|
|
|
|
"build_dir_name": "target",
|
|
|
|
|
}
|
|
|
|
|
config = {"issuer": "staging"}
|
|
|
|
@ -58,7 +57,6 @@ def test_c4k_build_should_update_fqdn(tmp_path):
|
|
|
|
|
}
|
|
|
|
|
add_c4k_mixin_config(
|
|
|
|
|
project_config,
|
|
|
|
|
name,
|
|
|
|
|
config,
|
|
|
|
|
auth,
|
|
|
|
|
grafana_cloud_user="user",
|
|
|
|
@ -69,7 +67,7 @@ def test_c4k_build_should_update_fqdn(tmp_path):
|
|
|
|
|
assert {
|
|
|
|
|
"issuer": "staging",
|
|
|
|
|
"mon-cfg": {
|
|
|
|
|
"cluster-name": "should_update_fqdn",
|
|
|
|
|
"cluster-name": "module",
|
|
|
|
|
"cluster-stage": "test",
|
|
|
|
|
"grafana-cloud-url": "https://prometheus-prod-01-eu-west-0.grafana.net/api/prom/push",
|
|
|
|
|
},
|
|
|
|
|