From 91961413a085f1ec54976b5d4318a82262f473a3 Mon Sep 17 00:00:00 2001 From: Daniela Plascencia Date: Wed, 4 Oct 2023 16:40:50 +0200 Subject: [PATCH] skip: minor fixes --- charms/argo-controller/tests/integration/secret.yaml | 8 ++++++++ charms/argo-controller/tests/integration/test_charm.py | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 charms/argo-controller/tests/integration/secret.yaml diff --git a/charms/argo-controller/tests/integration/secret.yaml b/charms/argo-controller/tests/integration/secret.yaml new file mode 100644 index 0000000..3ab7204 --- /dev/null +++ b/charms/argo-controller/tests/integration/secret.yaml @@ -0,0 +1,8 @@ +apiVersion: v1 +kind: Secret +metadata: + name: mlpipeline-minio-artifact + namespace: {{ namespace }} +data: + accesskey: {{ access_key }} + secretkey: {{ secret_key }} diff --git a/charms/argo-controller/tests/integration/test_charm.py b/charms/argo-controller/tests/integration/test_charm.py index 2772469..1d51246 100644 --- a/charms/argo-controller/tests/integration/test_charm.py +++ b/charms/argo-controller/tests/integration/test_charm.py @@ -54,7 +54,7 @@ async def test_build_and_deploy_with_relations(ops_test: OpsTest): await ops_test.model.wait_for_idle(apps=[APP_NAME], status="active", timeout=1000) -async def create_mlpipeline_minio_secret(): +async def create_mlpipeline_minio_secret(ops_test: OpsTest): """Creates a Secret with name mlpipeline-minio-artifact. This simulates the behaviour of having the kfp-profile-controller @@ -68,6 +68,7 @@ async def create_mlpipeline_minio_secret(): context={ "access_key": b64encode(MINIO_CONFIG["access-key"].encode("utf-8")), "secret_key": b64encode(MINIO_CONFIG["secret-key"].encode("utf-8")), + "namespace": ops_test.model_name, } )