Verifies the Create, Read, Update, and Delete operations for the OCPV… - #20978
Merged
shubhamsg199 merged 1 commit intoMar 11, 2026
Merged
Conversation
… compute resource.
Contributor
Reviewer's GuideAdds an end-to-end UI test that verifies full CRUD (Create, Read, Update, Delete) behavior for the OpenShift Virtualization (OCP-V) compute resource, including provider configuration and organization/location assignments. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- In the UPDATE step you pass only
[new_org.name]/[new_loc.name]toorganizations.resources.assignedandlocations.resources.assignedbut then assert that both the original and new org/location are assigned; if the UI/API behavior is to replace rather than merge, this test will be brittle—either explicitly include both in the payload or adjust the assertions to match the intended semantics. - The test creates additional organizations/locations via
module_ocpv_sat.api.Organization().create()and.Location().create()without any explicit cleanup, which can leave persistent test data behind; consider using a fixture or context that ensures these resources are deleted after the test.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- In the UPDATE step you pass only `[new_org.name]`/`[new_loc.name]` to `organizations.resources.assigned` and `locations.resources.assigned` but then assert that both the original and new org/location are assigned; if the UI/API behavior is to replace rather than merge, this test will be brittle—either explicitly include both in the payload or adjust the assertions to match the intended semantics.
- The test creates additional organizations/locations via `module_ocpv_sat.api.Organization().create()` and `.Location().create()` without any explicit cleanup, which can leave persistent test data behind; consider using a fixture or context that ensures these resources are deleted after the test.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Contributor
Author
|
Collaborator
|
PRT Result |
amolpati30
requested review from
a team,
Satellite-QE,
sambible and
shubhamsg199
and removed request for
Satellite-QE
March 10, 2026 09:15
LadislavVasina1
approved these changes
Mar 10, 2026
evgeni
approved these changes
Mar 10, 2026
shubhamsg199
approved these changes
Mar 11, 2026
ShimShtein
reviewed
Mar 11, 2026
| 'organizations.resources.assigned': [module_org.name], | ||
| 'locations.resources.assigned': [module_location.name], | ||
| } | ||
| ) |
Contributor
There was a problem hiding this comment.
I am missing the "test connection" button here. I didn't see it being invoked in the airgun too.
Contributor
Author
There was a problem hiding this comment.
We are not checking the test connection here, as it only ensures that the connection has been established correctly. Therefore, I did not use it while creating the compute resource.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OCPV Compute Resource CRUD Operation verifies the Create, Read, Update, and Delete operations for the OCPV compute resource.
It ensures that the compute resource can be properly managed and validated through the system using UI interface.
Dependent: SatelliteQE/airgun#2327
Summary by Sourcery
Tests: