Skip to content

Commit

Permalink
[1LP][RFR] Conversion of ConfigManager to use BaseProvider and BaseCo…
Browse files Browse the repository at this point in the history
…llection (ManageIQ#9317)

* initial commit of conversion of ConfigManager to Entity

* First commit of conversion to provider

* Config manager as a provider updates

* Fix collection test_advanced_search

* Add GH blocker and use eq over cmp
  • Loading branch information
john-dupuy authored and spusateri committed Jan 27, 2020
1 parent 1f54369 commit cc6be2a
Show file tree
Hide file tree
Showing 17 changed files with 668 additions and 583 deletions.
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

0 comments on commit cc6be2a

Please sign in to comment.