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] Fix upstream api permission tests #14800

Conversation

Satellite-QE
Copy link
Collaborator

Cherrypick of PR: #14475

Problem Statement

API permission tests failing for upstream

Solution

Relevant tests:

tests/foreman/cli/test_role.py
tests/foreman/api/test_role.py
tests/foreman/api/test_permission.py

* add more checks for installed rpm packages
* speedup by querying rpm -qa ony once
* some tests were not update with this commit
  6651dd6#diff-9a55ae74469aa91ad5efb2b9068f73174467cd0c00d45abf7d35f9f2277a7632

(cherry picked from commit 8476e50)
@Satellite-QE Satellite-QE requested review from a team as code owners April 17, 2024 09:42
@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 Apr 17, 2024
@Satellite-QE
Copy link
Collaborator Author

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

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

PRT Result

Build Number: 6553
Build Status: SUCCESS
PRT Comment: pytest tests/foreman/api/test_permission.py -k test_positive_search --external-logging
Test Result : ========== 3 passed, 13 deselected, 111 warnings in 709.13s (0:11:49) ==========

@Satellite-QE Satellite-QE added the PRT-Passed Indicates that latest PRT run is passed for the PR label Apr 17, 2024
@Satellite-QE Satellite-QE merged commit d64a631 into 6.15.z Apr 17, 2024
17 of 18 checks passed
@Satellite-QE Satellite-QE deleted the cherry-pick-6.15.z-8476e500a726387ce67394c1c3ad895df34b255f branch April 17, 2024 10:07
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