Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cherrypick of PR: #16267
Problem Statement
The
test_negative_multi_cv_registration
usesmodule_activation_key
which usesmodule_sca_manifest_org
which uploads a manifest to themodule_org
(which we don't actually need for the test case).And there is another test in this module,
test_syspurpose_end_to_end
, which usesdefault_subscription
fixture which uploads a manifest to themodule_org
too and here is where the interference happens since the second manifest upload fails withSolution
Use
module_ak_with_cv
instead ofmodule_activation_key
- it does not upload any manifest and thus can't interfere with the other test.PRT test Cases example
trigger: test-robottelo
pytest: tests/foreman/cli/test_host.py -k 'test_syspurpose_end_to_end or test_negative_multi_cv_registration'