Skip to content

Commit

Permalink
Add back mistakenly removed test
Browse files Browse the repository at this point in the history
  • Loading branch information
sambible committed May 3, 2024
1 parent 742f94d commit 64e2176
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion tests/foreman/api/test_contentview.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
CONTAINER_REGISTRY_HUB,
CUSTOM_RPM_SHA_512_FEED_COUNT,
DEFAULT_ARCHITECTURE,
FILTER_ERRATA_TYPE,
PERMISSIONS,
PRDS,
REPOS,
Expand Down Expand Up @@ -931,6 +930,31 @@ def initiate_testclass(
module_cv.update(['repository'])
request.cls.yumcv = module_cv.read()

@pytest.mark.tier2
def test_positive_add_rh_custom_spin(self, target_sat):
"""Associate Red Hat content in a view and filter it using rule
:id: 30c3103d-9503-4501-8117-1f2d25353215
:expectedresults: Filtered RH content is available and can be seen in a
view
:CaseImportance: High
"""
# content_view ← cv_filter
cv_filter = target_sat.api.RPMContentViewFilter(
content_view=self.yumcv,
inclusion='true',
name=gen_string('alphanumeric'),
).create()
assert self.yumcv.id == cv_filter.content_view.id

# content_view ← cv_filter ← cv_filter_rule
cv_filter_rule = target_sat.api.ContentViewFilterRule(
content_view_filter=cv_filter, name=gen_string('alphanumeric'), version='1.0'
).create()
assert cv_filter.id == cv_filter_rule.content_view_filter.id

@pytest.mark.tier2
def test_positive_publish_rh_custom_spin(self, module_org, content_view, module_target_sat):
"""Attempt to publish a content view containing Red Hat spin - i.e.,
Expand Down

0 comments on commit 64e2176

Please sign in to comment.