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

Updates for CV component eval #15043

Merged
merged 2 commits into from
May 30, 2024
Merged

Conversation

vsedmik
Copy link
Contributor

@vsedmik vsedmik commented May 13, 2024

Problem Statement

CV component eval proposes several changes to be done for content view tests.

Solution

This PR addresses some of them, mostly merges and some minor modifications. In particular:

  1. test_positive_remove_cv_version_from_env is merged with test_positive_remove_cv_version_from_multi_env
  2. test_positive_promote_with_docker_repo_composite is merged with test_positive_promote_multiple_with_docker_repo_composite
  3. test_positive_add_custom_repo_by_name is parametrized for adding repo by id and incorrect BZ reference is removed
  4. test_negative_update_with_name another test case where incorrect BZ reference is removed
  5. test_positive_arbitrary_file_sync_over_capsule is removed since it is already implemented in test_positive_sync_file_repo
  6. test_positive_restart_dynflow_publish and test_positive_restart_dynflow_promote are removed since they represent obsolete workflows nowadays

PRT test Cases example

trigger: test-robottelo
pytest: tests/foreman/cli/test_contentview.py -k 'test_positive_add_custom_repo_by or test_positive_remove_cv_version_from_multi_env and not capsule'

@vsedmik vsedmik 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 May 13, 2024
@vsedmik vsedmik requested a review from sambible May 13, 2024 12:23
@vsedmik vsedmik self-assigned this May 13, 2024
@vsedmik vsedmik requested a review from a team as a code owner May 13, 2024 12:23
@vsedmik
Copy link
Contributor Author

vsedmik commented May 13, 2024

trigger: test-robottelo
pytest: tests/foreman/cli/test_contentview.py -k 'test_positive_add_custom_repo_by or test_positive_remove_cv_version_from_multi_env'

@Satellite-QE
Copy link
Collaborator

PRT Result

Build Number: 6901
Build Status: UNSTABLE
PRT Comment: pytest tests/foreman/cli/test_contentview.py -k test_positive_add_custom_repo_by or test_positive_remove_cv_version_from_multi_env --external-logging
Test Result : ==== 1 failed, 3 passed, 109 deselected, 229 warnings in 1963.84s (0:32:43) ====

@Satellite-QE Satellite-QE added the PRT-Failed Indicates that latest PRT run is failed for the PR label May 13, 2024
@vsedmik
Copy link
Contributor Author

vsedmik commented May 13, 2024

trigger: test-robottelo
pytest: tests/foreman/cli/test_contentview.py -k 'test_positive_add_custom_repo_by or test_positive_remove_cv_version_from_multi_env and not capsule'

@Satellite-QE
Copy link
Collaborator

PRT Result

Build Number: 6903
Build Status: SUCCESS
PRT Comment: pytest tests/foreman/cli/test_contentview.py -k test_positive_add_custom_repo_by or test_positive_remove_cv_version_from_multi_env and not capsule --external-logging
Test Result : ========= 3 passed, 110 deselected, 143 warnings in 1001.13s (0:16:41) =========

@Satellite-QE Satellite-QE added PRT-Passed Indicates that latest PRT run is passed for the PR and removed PRT-Failed Indicates that latest PRT run is failed for the PR labels May 13, 2024
@vsedmik vsedmik requested a review from a team May 15, 2024 07:40
@pytest.mark.parametrize('add_by_name', [True, False], ids=['name', 'id'])
def test_positive_add_custom_repo_by(
self, module_org, module_product, module_target_sat, add_by_name
):
"""Associate custom content to a content view with name
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably want to update the docstring here, since I think reading this test can be a bit confusing now without a small amount of clarification. Really like the parametrization though, a nice way to clean up so much of the cruft in this test file :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I will update it.

@vsedmik vsedmik added the 6.16.z label May 30, 2024
@Satellite-QE Satellite-QE removed the PRT-Passed Indicates that latest PRT run is passed for the PR label May 30, 2024
@vsedmik vsedmik requested a review from sambible May 30, 2024 16:25
@sambible sambible merged commit 47b9906 into SatelliteQE:master May 30, 2024
9 checks passed
github-actions bot pushed a commit that referenced this pull request May 30, 2024
* Few updates for CV component eval

* Address comments

(cherry picked from commit 47b9906)
github-actions bot pushed a commit that referenced this pull request May 30, 2024
* Few updates for CV component eval

* Address comments

(cherry picked from commit 47b9906)
vsedmik added a commit that referenced this pull request May 30, 2024
Updates for CV component eval (#15043)

* Few updates for CV component eval

* Address comments

(cherry picked from commit 47b9906)

Co-authored-by: vsedmik <[email protected]>
vsedmik added a commit that referenced this pull request May 30, 2024
Updates for CV component eval (#15043)

* Few updates for CV component eval

* Address comments

(cherry picked from commit 47b9906)

Co-authored-by: vsedmik <[email protected]>
vsedmik added a commit to vsedmik/robottelo that referenced this pull request May 31, 2024
* Few updates for CV component eval

* Address comments
vsedmik added a commit that referenced this pull request May 31, 2024
Updates for CV component eval (#15043)

* Few updates for CV component eval

* Address comments
jyejare pushed a commit to jyejare/robottelo that referenced this pull request Oct 19, 2024
* Few updates for CV component eval

* Address comments
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.

4 participants