-
Notifications
You must be signed in to change notification settings - Fork 114
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
[CV Eval] add test for customer case bz #15268
base: master
Are you sure you want to change the base?
Conversation
trigger: test-robottelo |
PRT Result
|
…to republish-metadata
trigger: test-robottelo |
PRT Result
|
PRT Result
|
trigger: test-robottelo |
PRT Result
|
trigger: test-robottelo |
PRT Result
|
trigger: test-robottelo |
PRT Result
|
trigger: test-robottelo |
PRT Result
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Easy requested changes
target_sat.cli.ContentView.version_republish_repositories( | ||
{'id': version.id, 'force': 'false'} | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
target_sat.cli.ContentView.version_republish_repositories( | |
{'id': version.id, 'force': 'false'} | |
) | |
target_sat.cli.ContentView.version_republish_repositories( | |
{'id': version.id} | |
) |
Passing 'force': 'false'
is optional I guess, could you please check it locally and update here
) | ||
rh_repo = target_sat.api.Repository(id=rh_repo_id).read() | ||
cv = target_sat.api.ContentView(organization=function_sca_manifest_org).create() | ||
cv = target_sat.api.ContentView(id=cv.id, repository=[rh_repo]).update(["repository"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cv = target_sat.api.ContentView(id=cv.id, repository=[rh_repo]).update(["repository"]) | |
cv = target_sat.api.ContentView(id=cv.id, repository=[rh_repo]).update(['repository']) |
5. Verify that you can't click the "republish metadata" option from the UI | ||
6. Verify that you can't republish metadata from the cli without the force option | ||
7. Verify that you can republish metadata from the CLI using the --force option |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5. Verify that you can't click the "republish metadata" option from the UI | |
6. Verify that you can't republish metadata from the cli without the force option | |
7. Verify that you can republish metadata from the CLI using the --force option | |
5. Verify that the "republish metadata" option from the UI doesn't work | |
6. Verify that the "republish metadata" from the CLI without the force option doesn't work | |
7. Verify that the "republish metadata" from the CLI using the --force = true/yes/1 does work |
@@ -110,6 +113,53 @@ def test_no_blank_page_on_language_switch(session, target_sat, module_org): | |||
assert session.contentview_new.read_french_lang_cv() | |||
|
|||
|
|||
def test_republish_metadata(session, function_sca_manifest_org, target_sat): | |||
"""Verify that you can't republish metadata from the UI, and you can from the CLI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"""Verify that you can't republish metadata from the UI, and you can from the CLI | |
"""Verify that republish metadata from the UI doesn't work and from the CLI it does work with --force true/yes/1 option |
6. Verify that you can't republish metadata from the cli without the force option | ||
7. Verify that you can republish metadata from the CLI using the --force option | ||
|
||
:expectedresults: You can't republish RH Repo metadata from the UI, and can from the CLI with --force |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:expectedresults: You can't republish RH Repo metadata from the UI, and can from the CLI with --force | |
:expectedresults: "republish RH Repo metadata" from UI not worked and it worked from the CLI with --force true/yes/1 option |
@sambible I'm converting this pr to draft for now, please mark it ready for review once you're done with changes/addressing the comments. |
trigger: test-robottelo |
PRT Result
|
@sambible if you rebase the Airgun PR with changes we merged yesterday, prt may pass for you now as-is. |
Problem Statement
Adding BZ coverage for https://bugzilla.redhat.com/show_bug.cgi?id=2227271
Requires: SatelliteQE/airgun#1411
trigger: test-robottelo
pytest: tests/foreman/ui/test_contentview.py -k 'test_republish_metadata'
airgun: 1411