Skip to content

Commit 5f28a1e

Browse files
authored
Storage: Replace unprivileged_client with admin_client in storage checkups test (RedHatQE#2764)
##### Short description: Replaced unprivileged_client with admin_client. Storage checkups test fails with unprivileged-user https://jenkins-csb-cnvqe-main.dno.corp.redhat.com/view/Test%20Jobs/view/4.21/job/test-pytest-cnv-4.21-storage-ocs/1/testReport/tests.storage.checkups.test_checkups/TestCheckupPositive/test_overriden_storage_profile_claim_propertyset_checkup_job0_/ ##### More details: ##### What this PR does / why we need it: ##### Which issue(s) this PR fixes: ##### Special notes for reviewer: ##### jira-ticket: <!-- full-ticket-url needs to be provided. This would add a link to the pull request to the jira and close it when the pull request is merged If the task is not tracked by a Jira ticket, just write "NONE". --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Tests** * Updated test fixture configuration for improved client handling in storage checkup tests. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent cd34a0b commit 5f28a1e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/storage/checkups/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def checkup_configmap(checkups_namespace):
111111

112112
@pytest.fixture(scope="function")
113113
def checkup_job(
114-
unprivileged_client,
114+
admin_client,
115115
request,
116116
checkups_namespace,
117117
checkup_image_url,
@@ -140,7 +140,7 @@ def checkup_job(
140140
restart_policy="Never",
141141
backoff_limit=0,
142142
containers=containers,
143-
client=unprivileged_client,
143+
client=admin_client,
144144
) as job:
145145
try:
146146
job.wait_for_condition(
@@ -150,7 +150,7 @@ def checkup_job(
150150
)
151151
except TimeoutExpiredError:
152152
job_pods = get_pods(
153-
dyn_client=unprivileged_client,
153+
dyn_client=admin_client,
154154
namespace=checkups_namespace,
155155
label=f"job-name={job.name}",
156156
)

0 commit comments

Comments
 (0)