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

codecoverage bug2173870 #14273

Merged
merged 16 commits into from
May 16, 2024
Merged

Conversation

yanpliu
Copy link
Contributor

@yanpliu yanpliu commented Mar 7, 2024

Code coverage Bug2173870
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_post_hypervisors_with_fake_different_org_simultaneous --disable-pytest-warnings -q
.                                                                                                                                                                                                                                      [100%]
1 passed, 39 deselected, 23 warnings in 421.21s (0:07:01)
2024-03-06 23:04:35 - robottelo - WARNING - missing grid_url or session_id. unable to clean video files.

@yanpliu yanpliu added CherryPick PR needs CherryPick to previous branches 6.14.z Introduced in or relating directly to Satellite 6.14 6.15.z Introduced in or relating directly to Satellite 6.15 labels Mar 7, 2024
@yanpliu yanpliu self-assigned this Mar 7, 2024
@yanpliu yanpliu requested review from a team as code owners March 7, 2024 06:21
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 good, needs some fixes

robottelo/utils/virtwho.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 Show resolved Hide resolved
robottelo/utils/virtwho.py Show resolved Hide resolved
tests/foreman/virtwho/cli/test_esx_sca.py Show resolved Hide resolved
@yanpliu yanpliu force-pushed the codecoverage_2173870 branch from 7cb9861 to a749141 Compare March 12, 2024 01:52
@yanpliu yanpliu force-pushed the codecoverage_2173870 branch from 8d035be to 28a6326 Compare March 12, 2024 04:42
@yanpliu yanpliu force-pushed the codecoverage_2173870 branch from 92b3a20 to d4173cd Compare April 25, 2024 03:38
Comment on lines 594 to 596
runcmd("systemctl stop virt-who")
runcmd("pkill -9 virt-who")
runcmd(f"virt-who -{option}")
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, have already updated

@lhellebr lhellebr requested review from Gauravtalreja1 and a team April 29, 2024 14:27
@yanpliu yanpliu requested review from jyejare and ogajduse May 6, 2024 06:14
@yanpliu yanpliu requested a review from a team as a code owner May 16, 2024 03:06
@yanpliu
Copy link
Contributor Author

yanpliu commented May 16, 2024

pre-commit.ci autofix

@Gauravtalreja1 Gauravtalreja1 merged commit c58fe8e into SatelliteQE:master May 16, 2024
8 checks passed
github-actions bot pushed a commit that referenced this pull request May 16, 2024
* codecoverage bug2173870

* update the code for f-format and comments

* fix conflict and format issue

* update to fix conflict

* update to fix conflict

* use nested list comprehensions to replace loop

* replace double quotes with single quotes

* remove the duplicated \n

* Add the description of the methods

* Update the pre-commit for description

* Update robottelo/utils/virtwho.py

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

* resolve conflict

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: Gaurav Talreja <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
(cherry picked from commit c58fe8e)
Gauravtalreja1 pushed a commit that referenced this pull request May 16, 2024
codecoverage bug2173870 (#14273)

* codecoverage bug2173870

* update the code for f-format and comments

* fix conflict and format issue

* update to fix conflict

* update to fix conflict

* use nested list comprehensions to replace loop

* replace double quotes with single quotes

* remove the duplicated \n

* Add the description of the methods

* Update the pre-commit for description

* Update robottelo/utils/virtwho.py

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

* resolve conflict

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: Gaurav Talreja <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
(cherry picked from commit c58fe8e)

Co-authored-by: yanpliu <[email protected]>
@yanpliu yanpliu deleted the codecoverage_2173870 branch June 4, 2024 04:07
jyejare pushed a commit to jyejare/robottelo that referenced this pull request Oct 19, 2024
* codecoverage bug2173870

* update the code for f-format and comments

* fix conflict and format issue

* update to fix conflict

* update to fix conflict

* use nested list comprehensions to replace loop

* replace double quotes with single quotes

* remove the duplicated \n

* Add the description of the methods

* Update the pre-commit for description

* Update robottelo/utils/virtwho.py

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

* resolve conflict

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: Gaurav Talreja <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.14.z Introduced in or relating directly to Satellite 6.14 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.

3 participants