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

[1LP][RFR] Conversion of ConfigManager to use BaseProvider and BaseCollection #9317

Merged
merged 5 commits into from
Dec 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 1 addition & 29 deletions cfme/ansible_tower/explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from cfme.common import Taggable
from cfme.common import TaggableCollection
from cfme.exceptions import ItemNotFound
from cfme.infrastructure.config_management.config_systems.ansible_tower import AnsibleTowerSystemsCollection # noqa
from cfme.modeling.base import BaseCollection
from cfme.modeling.base import BaseEntity
from cfme.utils.appliance.implementations.ui import CFMENavigateStep
Expand Down Expand Up @@ -150,26 +151,6 @@ def is_displayed(self):
)


@attr.s
class AnsibleTowerProvider(BaseEntity):
pass


@attr.s
class AnsibleTowerProvidersCollection(BaseCollection):
ENTITY = AnsibleTowerProvider


@attr.s
class AnsibleTowerSystem(BaseEntity):
pass


@attr.s
class AnsibleTowerSystemsCollection(BaseCollection):
ENTITY = AnsibleTowerSystem


@attr.s
class AnsibleTowerJobTemplate(BaseEntity, Taggable):
name = attr.ib()
Expand Down Expand Up @@ -209,15 +190,6 @@ def step(self, *args, **kwargs):
self.view.sidebar.providers.tree.click_path('All Ansible Tower Providers')


@navigator.register(AnsibleTowerProvidersCollection, 'All')
class AnsibleTowerExplorerProvidersAll(CFMENavigateStep):
VIEW = TowerExplorerProvidersAllView
prerequisite = NavigateToAttribute('appliance.server', 'AnsibleTowerExplorer')

def step(self, *args, **kwargs):
self.view.sidebar.providers.tree.click_path('All Ansible Tower Providers')


@navigator.register(AnsibleTowerSystemsCollection, 'All')
class TowerExplorerSystemAll(CFMENavigateStep):
VIEW = TowerExplorerSystemsAllView
Expand Down
Loading