Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #9990 from niyazRedhat/ansibl-twr-bndle
Browse files Browse the repository at this point in the history
[1LP][RFR] Adding tower bundle retire test
  • Loading branch information
mshriver authored Mar 26, 2020
2 parents 5b8f57c + 0391732 commit 129a5d8
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 32 deletions.
41 changes: 41 additions & 0 deletions cfme/tests/automate/test_ansible_tower_automate.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from cfme import test_requirements
from cfme.infrastructure.config_management.ansible_tower import AnsibleTowerProvider
from cfme.services.myservice import MyService
from cfme.services.service_catalogs import ServiceCatalogs
from cfme.utils.appliance.implementations.ui import navigate_to
from cfme.utils.log_validator import LogValidator
Expand Down Expand Up @@ -107,3 +108,43 @@ def delete():
provision_request.wait_for_request()
msg = "Provisioning failed with the message {}".format(provision_request.rest.message)
assert provision_request.is_succeeded(), msg


@pytest.mark.tier(2)
@pytest.mark.meta(automates=[1363897])
@pytest.mark.customer_scenario
def test_retire_ansible_service_bundle(request, appliance, ansible_catalog_item, catalog,
ansible_tower_dialog):
"""
Polarion:
assignee: nansari
casecomponent: Services
testtype: functional
initialEstimate: 1/4h
startsin: 5.5
tags: service
Bugzilla:
1363897
"""
bundle_name = fauxfactory.gen_alphanumeric(start="bundle_")
catalog_bundle = appliance.collections.catalog_bundles.create(
bundle_name,
description="catalog_bundle",
display_in=True,
catalog=catalog,
dialog=ansible_tower_dialog,
catalog_items=ansible_catalog_item,
)
request.addfinalizer(catalog_bundle.delete_if_exists)
service_catalogs = ServiceCatalogs(appliance, catalog_bundle.catalog, catalog_bundle.name)
service_catalogs.order()
provision_request = appliance.collections.requests.instantiate(
bundle_name, partial_check=True)

provision_request.wait_for_request()
provision_request.remove_request(method="rest")

service = MyService(appliance, ansible_tower_dialog.label)
# Retire service
retire_request = service.retire()
assert retire_request.exists()
32 changes: 0 additions & 32 deletions cfme/tests/services/test_service_catalog_dialog_manual.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,38 +194,6 @@ def test_catalog_item_changing_the_provider_template_after_filling_all_tabs():
pass


@pytest.mark.manual
@pytest.mark.tier(2)
def test_retire_ansible_service_bundle():
"""
Polarion:
assignee: nansari
casecomponent: Services
testtype: functional
initialEstimate: 1/4h
startsin: 5.5
tags: service
Bugzilla:
1363897
"""
pass


@pytest.mark.manual
@pytest.mark.tier(3)
def test_remove_catalog_items_from_catalog_bundle_resource_list():
"""
Polarion:
assignee: nansari
casecomponent: Services
testtype: functional
initialEstimate: 1/4h
Bugzilla:
1639557
"""
pass


@pytest.mark.manual
@pytest.mark.tier(3)
def test_request_filter_on_request_page():
Expand Down

0 comments on commit 129a5d8

Please sign in to comment.