From a9e981db2bc593270f3d0cbefeab352a3089071c Mon Sep 17 00:00:00 2001 From: Daniela Plascencia Date: Wed, 4 Oct 2023 22:33:07 +0200 Subject: [PATCH] skip: fix lint --- charms/argo-controller/tests/integration/test_charm.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/charms/argo-controller/tests/integration/test_charm.py b/charms/argo-controller/tests/integration/test_charm.py index 62158a4..3c14c80 100644 --- a/charms/argo-controller/tests/integration/test_charm.py +++ b/charms/argo-controller/tests/integration/test_charm.py @@ -26,6 +26,7 @@ "secret-key": "minio-secret-key", } + @pytest.mark.abort_on_fail async def test_build_and_deploy_with_relations(ops_test: OpsTest): built_charm_path = await ops_test.build_charm(CHARM_ROOT) @@ -63,7 +64,7 @@ async def create_mlpipeline_minio_secret(ops_test: OpsTest): lightkube_client = lightkube.Client() secret_file = Path("./tests/integration/secret.yaml").read_text() secret_template = Template(secret_file) - context={ + context = { "access_key": b64encode(MINIO_CONFIG["access-key"].encode("utf-8")).decode("utf-8"), "secret_key": b64encode(MINIO_CONFIG["secret-key"].encode("utf-8")).decode("utf-8"), "namespace": ops_test.model_name, @@ -71,7 +72,7 @@ async def create_mlpipeline_minio_secret(ops_test: OpsTest): rendered_secret_template = secret_template.render(**context) for obj in codecs.load_all_yaml(rendered_secret_template): try: - lightkube_client.apply(obj, field_manager='test') + lightkube_client.apply(obj, field_manager="test") except ApiError as e: raise e @@ -157,6 +158,7 @@ async def test_workflow_using_artifacts(ops_test: OpsTest): # Submit argo workflow using artifacts and wait for it to finish await submit_workflow_using_artifact(ops_test) + async def test_prometheus_grafana_integration(ops_test: OpsTest): """Deploy prometheus, grafana and required relations, then test the metrics.""" prometheus = "prometheus-k8s"