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, } )