Skip to content

Commit

Permalink
sca for api e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
pondrejk committed Apr 17, 2024
1 parent 8476e50 commit 9c9e6ba
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions tests/foreman/endtoend/test_api_endtoend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,7 @@ def test_positive_find_admin_user(self):
@pytest.mark.skipif(
(not settings.robottelo.REPOS_HOSTING_URL), reason='Missing repos_hosting_url'
)
def test_positive_end_to_end(self, function_entitlement_manifest, target_sat, rhel_contenthost):
def test_positive_end_to_end(self, function_sca_manifest, target_sat, rhel_contenthost):
"""Perform end to end smoke tests using RH and custom repos.
1. Create a new user with admin permissions
Expand Down Expand Up @@ -1091,10 +1091,9 @@ def test_positive_end_to_end(self, function_entitlement_manifest, target_sat, rh
# step 2.1: Create a new organization
user_cfg = user_nailgun_config(login, password)
org = target_sat.api.Organization(server_config=user_cfg).create()
org.sca_disable()

# step 2.2: Upload manifest
target_sat.upload_manifest(org.id, function_entitlement_manifest.content)
target_sat.upload_manifest(org.id, function_sca_manifest.content)

# step 2.3: Create a new lifecycle environment
le1 = target_sat.api.LifecycleEnvironment(server_config=user_cfg, organization=org).create()
Expand Down Expand Up @@ -1152,12 +1151,7 @@ def test_positive_end_to_end(self, function_entitlement_manifest, target_sat, rh
name=activation_key_name, environment=le1, organization=org, content_view=content_view
).create()

# step 2.13: Add the products to the activation key
for sub in target_sat.api.Subscription(organization=org).search():
if sub.name == constants.DEFAULT_SUBSCRIPTION_NAME:
activation_key.add_subscriptions(data={'quantity': 1, 'subscription_id': sub.id})
break
# step 2.13.1: Enable product content
# step 2.13: Enable product content
activation_key.content_override(
data={
'content_overrides': [
Expand Down

0 comments on commit 9c9e6ba

Please sign in to comment.