From b6aedca7c7a3d6dbee3a71a048f65e062d5ed352 Mon Sep 17 00:00:00 2001 From: Jakub Smolar Date: Fri, 15 Nov 2024 13:31:01 +0100 Subject: [PATCH] Fix metadata tests Signed-off-by: Jakub Smolar --- .../tests/singlecluster/authorino/metadata/conftest.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/testsuite/tests/singlecluster/authorino/metadata/conftest.py b/testsuite/tests/singlecluster/authorino/metadata/conftest.py index 7a27377c..d2df569f 100644 --- a/testsuite/tests/singlecluster/authorino/metadata/conftest.py +++ b/testsuite/tests/singlecluster/authorino/metadata/conftest.py @@ -6,16 +6,14 @@ @pytest.fixture(scope="module") -def create_client_secret(request, cluster): +def create_client_secret(request, cluster, authorino): """Creates Client Secret, used by Authorino to start the authentication with the UMA registry""" def _create_secret(name, client_id, client_secret): model = { "apiVersion": "v1", "kind": "Secret", - "metadata": { - "name": name, - }, + "metadata": {"name": name, "namespace": authorino.namespace()}, "stringData": {"clientID": client_id, "clientSecret": client_secret}, "type": "Opaque", }