Skip to content

Commit

Permalink
skip: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DnPlas committed Oct 4, 2023
1 parent 1fd278b commit a9e981d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions charms/argo-controller/tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -63,15 +64,15 @@ 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,
}
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

Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit a9e981d

Please sign in to comment.