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.14.z] update entity object with parametrized server_config rather default #1109

Merged

Conversation

Satellite-QE
Copy link
Contributor

Cherrypick of PR: #1106

Description of changes

Currently server_config was not getting set while reading the entity API call using target_sat

        dom = target_sat.api.Domain(server_config=sc, id=dom.id).read()
        dom.organization = [filter_taxonomies['org']]
        with pytest.raises(HTTPError):
            dom.update(['organization']) 

After this PR the dom object or any other api component object can access the API calls using the custom server_config set by parameter .

@Satellite-QE Satellite-QE added 6.14.z Auto_Cherry_Picked GHA has automatically cherrypicked this PR No-CherryPick PR doesnt need CherryPick to previous branches labels Mar 7, 2024
@Satellite-QE
Copy link
Contributor Author

trigger: test-robottelo
pytest: -k test_negative_assign_taxonomies_by_org_admin tests/foreman/api/test_role.py

Copy link

codecov bot commented Mar 7, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 lines in your changes are missing coverage. Please review.

❗ No coverage uploaded for pull request base (6.14.z@9f57024). Click here to learn what that means.

Files Patch % Lines
nailgun/entity_mixins.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             6.14.z    #1109   +/-   ##
=========================================
  Coverage          ?   92.12%           
=========================================
  Files             ?        6           
  Lines             ?     3048           
  Branches          ?        0           
=========================================
  Hits              ?     2808           
  Misses            ?      240           
  Partials          ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pondrejk pondrejk merged commit 8ca2de2 into 6.14.z Mar 13, 2024
21 checks passed
@pondrejk pondrejk deleted the cherry-pick-6.14.z-42f30208f429258134bc204090b230e722cdca0b branch March 13, 2024 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.14.z Auto_Cherry_Picked GHA has automatically cherrypicked this PR No-CherryPick PR doesnt need CherryPick to previous branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants