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

code coverage bug2063218 #14308

Merged
merged 16 commits into from
May 14, 2024
Merged

Conversation

yanpliu
Copy link
Contributor

@yanpliu yanpliu commented Mar 8, 2024

Code coverage bug2063218, it is a new [RFE]
Test case : PASS

(robottelo_vv_615) [root@dell-per740-68-vm-05 robottelo]# pytest ./tests/foreman/virtwho/cli/test_esx_sca.py -k test_positive_rhsm_username_option --disable-pytest-warnings -q
.                                                                                                                                                                                                                                      [100%]
1 passed, 39 deselected, 23 warnings in 450.60s (0:07:30)

@yanpliu yanpliu added CherryPick PR needs CherryPick to previous branches 6.15.z Introduced in or relating directly to Satellite 6.15 labels Mar 8, 2024
@yanpliu yanpliu self-assigned this Mar 8, 2024
@yanpliu yanpliu requested a review from a team as a code owner March 8, 2024 06:41
tests/foreman/virtwho/cli/test_esx_sca.py Show resolved Hide resolved
tests/foreman/virtwho/cli/test_esx_sca.py Outdated Show resolved Hide resolved
tests/foreman/virtwho/cli/test_esx_sca.py Outdated Show resolved Hide resolved
tests/foreman/virtwho/cli/test_esx_sca.py Outdated Show resolved Hide resolved
tests/foreman/virtwho/cli/test_esx_sca.py Outdated Show resolved Hide resolved
tests/foreman/virtwho/cli/test_esx_sca.py Outdated Show resolved Hide resolved
tests/foreman/virtwho/cli/test_esx_sca.py Outdated Show resolved Hide resolved
tests/foreman/virtwho/cli/test_esx_sca.py Outdated Show resolved Hide resolved
tests/foreman/virtwho/cli/test_esx_sca.py Outdated Show resolved Hide resolved
tests/foreman/virtwho/cli/test_esx_sca.py Outdated Show resolved Hide resolved
@yanpliu yanpliu requested a review from a team as a code owner March 14, 2024 05:49
@yanpliu yanpliu requested a review from lhellebr March 20, 2024 02:24
Copy link
Contributor

@lhellebr lhellebr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to rephrase the comments and docstring because I had a hard time understanding them. Please correct me if my edits are factually incorrect.

tests/foreman/virtwho/cli/test_esx_sca.py Outdated Show resolved Hide resolved
tests/foreman/virtwho/cli/test_esx_sca.py Outdated Show resolved Hide resolved
tests/foreman/virtwho/cli/test_esx_sca.py Outdated Show resolved Hide resolved
tests/foreman/virtwho/cli/test_esx_sca.py Outdated Show resolved Hide resolved
tests/foreman/virtwho/cli/test_esx_sca.py Outdated Show resolved Hide resolved
tests/foreman/virtwho/cli/test_esx_sca.py Outdated Show resolved Hide resolved
tests/foreman/virtwho/cli/test_esx_sca.py Outdated Show resolved Hide resolved
tests/foreman/virtwho/cli/test_esx_sca.py Outdated Show resolved Hide resolved
@yanpliu
Copy link
Contributor Author

yanpliu commented Mar 29, 2024

tried to rephrase the comments and docstring because I had a hard time understanding them. Please correct me if my edits are factually incorrect.
Thank you very much for your comments and suggestions ,have already submit the suggestions

Copy link
Contributor

@lhellebr lhellebr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks much better now, thanks!

tests/foreman/virtwho/cli/test_esx_sca.py Show resolved Hide resolved
Comment on lines +575 to +577
f"Authenticating with RHSM username {rhsm_username[0]}",
f"Authenticating with RHSM username {rhsm_username[2]}",
f"Host-to-guest mapping being sent to '{module_sca_manifest_org.name}'",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use single quotes wherever possible, to ensure consistency :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Gauravtalreja1 Thank you very much for your suggestion, this used double quotes , it is because there is single quotes in the string, so used double quotes.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yanpliu yes, but we can switch it with single quotes with double quotes inside, but I wouldn't block this PR merge for it

@lhellebr lhellebr requested review from a team and Gauravtalreja1 April 29, 2024 14:26
@yanpliu yanpliu requested review from mshriver and jyejare May 6, 2024 00:59
Copy link
Member

@jyejare jyejare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am good with framework changes.

@Gauravtalreja1 Gauravtalreja1 merged commit cc3c119 into SatelliteQE:master May 14, 2024
8 checks passed
github-actions bot pushed a commit that referenced this pull request May 14, 2024
* code coverage bug2063218

* update loop&check message&duplicated code etc

* Update the descriptions for expectresults

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Lukáš Hellebrandt <[email protected]>

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Lukáš Hellebrandt <[email protected]>

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Lukáš Hellebrandt <[email protected]>

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Lukáš Hellebrandt <[email protected]>

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Lukáš Hellebrandt <[email protected]>

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Lukáš Hellebrandt <[email protected]>

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Lukáš Hellebrandt <[email protected]>

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Lukáš Hellebrandt <[email protected]>

* update code to fix repeating anti-pattern

* Update the comments

* Update robottelo/utils/virtwho.py

Co-authored-by: Gaurav Talreja <[email protected]>

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Gaurav Talreja <[email protected]>

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Gaurav Talreja <[email protected]>

---------

Co-authored-by: Lukáš Hellebrandt <[email protected]>
Co-authored-by: Gaurav Talreja <[email protected]>
(cherry picked from commit cc3c119)
Gauravtalreja1 pushed a commit that referenced this pull request May 14, 2024
code coverage bug2063218 (#14308)

* code coverage bug2063218

* update loop&check message&duplicated code etc

* Update the descriptions for expectresults

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Lukáš Hellebrandt <[email protected]>

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Lukáš Hellebrandt <[email protected]>

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Lukáš Hellebrandt <[email protected]>

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Lukáš Hellebrandt <[email protected]>

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Lukáš Hellebrandt <[email protected]>

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Lukáš Hellebrandt <[email protected]>

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Lukáš Hellebrandt <[email protected]>

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Lukáš Hellebrandt <[email protected]>

* update code to fix repeating anti-pattern

* Update the comments

* Update robottelo/utils/virtwho.py

Co-authored-by: Gaurav Talreja <[email protected]>

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Gaurav Talreja <[email protected]>

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Gaurav Talreja <[email protected]>

---------

Co-authored-by: Lukáš Hellebrandt <[email protected]>
Co-authored-by: Gaurav Talreja <[email protected]>
(cherry picked from commit cc3c119)

Co-authored-by: yanpliu <[email protected]>
@yanpliu yanpliu deleted the codecoverage_2063218 branch May 15, 2024 03:04
jyejare pushed a commit to jyejare/robottelo that referenced this pull request Oct 19, 2024
* code coverage bug2063218

* update loop&check message&duplicated code etc

* Update the descriptions for expectresults

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Lukáš Hellebrandt <[email protected]>

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Lukáš Hellebrandt <[email protected]>

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Lukáš Hellebrandt <[email protected]>

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Lukáš Hellebrandt <[email protected]>

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Lukáš Hellebrandt <[email protected]>

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Lukáš Hellebrandt <[email protected]>

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Lukáš Hellebrandt <[email protected]>

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Lukáš Hellebrandt <[email protected]>

* update code to fix repeating anti-pattern

* Update the comments

* Update robottelo/utils/virtwho.py

Co-authored-by: Gaurav Talreja <[email protected]>

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Gaurav Talreja <[email protected]>

* Update tests/foreman/virtwho/cli/test_esx_sca.py

Co-authored-by: Gaurav Talreja <[email protected]>

---------

Co-authored-by: Lukáš Hellebrandt <[email protected]>
Co-authored-by: Gaurav Talreja <[email protected]>
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 CherryPick PR needs CherryPick to previous branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants