From 0582f84a6f85227297fd1867613c22634cce5052 Mon Sep 17 00:00:00 2001 From: Jakub Smolar Date: Tue, 3 Dec 2024 10:33:55 +0100 Subject: [PATCH] Add authorization for reconciliation tests Signed-off-by: Jakub Smolar --- testsuite/tests/singlecluster/reconciliation/conftest.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/testsuite/tests/singlecluster/reconciliation/conftest.py b/testsuite/tests/singlecluster/reconciliation/conftest.py index 46bb469b..26d79f80 100644 --- a/testsuite/tests/singlecluster/reconciliation/conftest.py +++ b/testsuite/tests/singlecluster/reconciliation/conftest.py @@ -3,6 +3,13 @@ import pytest +@pytest.fixture(scope="module") +def authorization(authorization): + """Add anonymous identity. This is needed as we can't create authorization without any rule""" + authorization.identity.add_anonymous("anonymous") + return authorization + + @pytest.fixture(scope="module", autouse=True) def commit(request, authorization): """Only commit authorization"""