Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.15.z] host delete permissions test #14335

Conversation

Satellite-QE
Copy link
Collaborator

Cherrypick of PR: #14207

SAT-21619 (component evaluation).

Check for correct user permissions when deleting a host.

permissions: check user permissions for host delete

SAT-21619 (component evaluation).

Check for correct user permissions when deleting a host.

Because a host deletion action has defined multiple permissions,
following modifications have been done:

- function `_permission_name` renamed to `_permission_names` and returns list instead of string
- new method `TestUserRole.give_user_permissions` that works well with `_permission_names`

(cherry picked from commit dd8f113)
@Satellite-QE Satellite-QE requested a review from a team as a code owner March 11, 2024 08:54
@Satellite-QE Satellite-QE added 6.15.z Introduced in or relating directly to Satellite 6.15 Auto_Cherry_Picked Automatically cherrypicked PR using GHA No-CherryPick PR doesnt need CherryPick to previous branches labels Mar 11, 2024
@Satellite-QE
Copy link
Collaborator Author

trigger: test-robottelo
pytest: tests/foreman/api/test_permission.py -k TestUserRole

@Satellite-QE Satellite-QE added the AutoMerge_Cherry_Picked The cherrypicked PRs of master PR would be automerged if all checks passing label Mar 11, 2024
@Satellite-QE
Copy link
Collaborator Author

PRT Result

Build Number: 6013
Build Status: SUCCESS
PRT Comment: pytest tests/foreman/api/test_permission.py -k TestUserRole --external-logging
Test Result : ========== 13 passed, 3 deselected, 174 warnings in 719.77s (0:11:59) ==========

@Satellite-QE Satellite-QE added the PRT-Passed Indicates that latest PRT run is passed for the PR label Mar 11, 2024
@Satellite-QE Satellite-QE merged commit bbb1c12 into 6.15.z Mar 11, 2024
15 of 16 checks passed
@Satellite-QE Satellite-QE deleted the cherry-pick-6.15.z-dd8f11356f25d937a5fc88810127edaf4cd6ee6e branch March 11, 2024 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.15.z Introduced in or relating directly to Satellite 6.15 Auto_Cherry_Picked Automatically cherrypicked PR using GHA AutoMerge_Cherry_Picked The cherrypicked PRs of master PR would be automerged if all checks passing No-CherryPick PR doesnt need CherryPick to previous branches PRT-Passed Indicates that latest PRT run is passed for the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants