Skip to content

Commit

Permalink
Address comments and add class_sca_manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
LadislavVasina1 authored and ogajduse committed Oct 20, 2023
1 parent 1cbdb34 commit af1e9ec
Show file tree
Hide file tree
Showing 2 changed files with 201 additions and 220 deletions.
15 changes: 15 additions & 0 deletions pytest_fixtures/component/taxonomy.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,13 @@ def module_sca_manifest_org(module_org, module_sca_manifest, module_target_sat):
return module_org


@pytest.fixture(scope='class')
def class_sca_manifest_org(class_org, class_sca_manifest, class_target_sat):
"""Creates an organization and uploads an SCA mode manifest generated with manifester"""
class_target_sat.upload_manifest(class_org.id, class_sca_manifest.content)
return class_org


@pytest.fixture(scope='module')
def module_extra_rhel_entitlement_manifest_org(
module_target_sat,
Expand Down Expand Up @@ -197,6 +204,14 @@ def module_sca_manifest():
yield manifest


@pytest.fixture(scope='class')
def class_sca_manifest():
"""Yields a manifest in Simple Content Access mode with subscriptions determined by the
`manifest_category.golden_ticket` setting in conf/manifest.yaml."""
with Manifester(manifest_category=settings.manifest.golden_ticket) as manifest:
yield manifest


@pytest.fixture(scope='function')
def function_entitlement_manifest():
"""Yields a manifest in entitlement mode with subscriptions determined by the
Expand Down
Loading

0 comments on commit af1e9ec

Please sign in to comment.