From 7db6ab0bac59c93e5129a429a31450cdb900f105 Mon Sep 17 00:00:00 2001 From: vijaysawant Date: Tue, 27 Feb 2024 14:18:52 +0530 Subject: [PATCH] add test steps, refresh uploaded manifest file --- tests/foreman/api/test_repository.py | 16 ++++++++++++++-- tests/foreman/ui/test_eol_banner.py | 5 ----- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/tests/foreman/api/test_repository.py b/tests/foreman/api/test_repository.py index 367570f7ef7..737afec4317 100644 --- a/tests/foreman/api/test_repository.py +++ b/tests/foreman/api/test_repository.py @@ -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, function_entitlement_manifest_org, 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: Repo URL can be updated, repo can be deleted and manifest refresh works after repo delete :BZ:2032040 """ @@ -1546,6 +1554,10 @@ def test_missing_content_id(self, repo): repo.delete() with pytest.raises(HTTPError): repo.read() + output = target_sat.cli.Subscription.refresh_manifest( + {'organization-id': function_entitlement_manifest_org.id} + ) + assert 'Candlepin job status: SUCCESS' in output, 'Failed to refresh manifest' class TestDockerRepository: diff --git a/tests/foreman/ui/test_eol_banner.py b/tests/foreman/ui/test_eol_banner.py index ebb59c7329c..c19b19838e6 100644 --- a/tests/foreman/ui/test_eol_banner.py +++ b/tests/foreman/ui/test_eol_banner.py @@ -4,17 +4,12 @@ :CaseAutomation: Automated -:CaseLevel: Acceptance - :CaseComponent: Dashboard :Team: Endeavour -:TestType: Functional - :CaseImportance: High -:Upstream: No """ from datetime import datetime, timedelta