Skip to content

Conversation

@asc5543
Copy link
Contributor

@asc5543 asc5543 commented Jan 19, 2026

Which issue(s) this PR fixes:

Issue #2376

What this PR does / why we need it:

test_9_rancher_integration.py::TestResourceQuota::test_create_namespace_on_project will encounter race condition during test, which cause KeyError when attempting to get data['metadata']['annotations']['field.cattle.io/resourceQuota']

Signed-off-by: asc5543 <asc5543@gmail.com>
Signed-off-by: asc5543 <asc5543@gmail.com>
Signed-off-by: asc5543 <asc5543@gmail.com>
@asc5543 asc5543 requested a review from a team January 19, 2026 10:00
@asc5543
Copy link
Contributor Author

asc5543 commented Jan 19, 2026

The CodeFactor fail because in test_9_rancher_integration, both rke1 and rke2 have test_create_pvc, and there are the same test steps.
I prefer to use other PR to fix the failure.
cc. @khushboo-rancher

Copy link
Member

@lanfon72 lanfon72 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@albinsun albinsun merged commit 2d12305 into harvester:main Jan 20, 2026
4 of 5 checks passed
@asc5543 asc5543 deleted the fix-2376 branch January 20, 2026 01:36
@irishgordo
Copy link
Contributor

thanks for this fix 😄 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants