Skip to content

Commit

Permalink
add test steps, refresh uploaded manifest file
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaysawant committed Feb 27, 2024
1 parent d1d8472 commit 1d8c75c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
16 changes: 14 additions & 2 deletions tests/foreman/api/test_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -1521,14 +1521,22 @@ def test_positive_sync_kickstart_check_os(
),
indirect=True,
)
def test_missing_content_id(self, repo):
def test_missing_content_id(self, repo, module_sca_manifest_org, module_target_sat):
"""Handle several cases of missing content ID correctly
:id: f507790a-933b-4b3f-ac93-cade6967fbd2
:parametrized: yes
:expectedresults: Repository URL can be set to something new and the repo can be deleted
:setup:
1. Create product and repo, sync repo
:steps:
1. Try to update repo URL
2. Attempt to delete repo
3. Refresh manifest file
:expectedresults: Repository URL can be set to something new, repo can be deleted and manifest file refresh successfully
:BZ:2032040
"""
Expand All @@ -1546,6 +1554,10 @@ def test_missing_content_id(self, repo):
repo.delete()
with pytest.raises(HTTPError):
repo.read()
output = module_target_sat.cli.Subscription.refresh_manifest(
{'organization-id': module_sca_manifest_org.id}
)
assert "Candlepin job status: SUCCESS" in output, "Failed to refresh manifest"


class TestDockerRepository:
Expand Down
5 changes: 0 additions & 5 deletions tests/foreman/ui/test_eol_banner.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,12 @@
:CaseAutomation: Automated
:CaseLevel: Acceptance
:CaseComponent: Dashboard
:Team: Endeavour
:TestType: Functional
:CaseImportance: High
:Upstream: No
"""
from datetime import datetime, timedelta

Expand Down

0 comments on commit 1d8c75c

Please sign in to comment.