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 #7110 from niyazRedhat/cockpit-fix
Browse files Browse the repository at this point in the history
[1LP][RFR] Fix cockpit server role tests for cloud providers
  • Loading branch information
mshriver authored Apr 27, 2018
2 parents 1fe4600 + 4ed993e commit 2a4d2e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
1 change: 0 additions & 1 deletion cfme/cloud/instance/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ class InstanceDetailsToolbar(View):
monitoring = Dropdown('Monitoring')
power = Dropdown('Instance Power Functions') # title
download = Button(title='Download summary in PDF format')
web_console = Button('Web Console')
access = Dropdown("Access")


Expand Down
13 changes: 2 additions & 11 deletions cfme/tests/cloud_infra_common/test_cockpit_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

from cfme.cloud.instance import Instance
from cfme.cloud.provider import CloudProvider
from cfme.cloud.provider.ec2 import EC2Provider
from cfme.cloud.provider.azure import AzureProvider
from cfme.cloud.provider.gce import GCEProvider
from cfme.common.provider import CloudInfraProvider
from cfme.infrastructure.virtual_machines import InfraVm
Expand Down Expand Up @@ -42,14 +40,7 @@ def test_cockpit_server_role(appliance, provider, setup_provider, new_vm, enable

view = navigate_to(new_vm, 'Details')
if enable:
if provider.one_of(AzureProvider, EC2Provider):
# For Azure and EC2 the Web Console button directly shows in the toolbar
assert not view.toolbar.web_console.disabled
else:
assert view.toolbar.access.item_enabled('Web Console')
assert view.toolbar.access.item_enabled('Web Console')
appliance.server.settings.disable_server_roles('cockpit_ws')
else:
if provider.one_of(AzureProvider, EC2Provider):
assert view.toolbar.web_console.disabled
else:
assert not view.toolbar.access.item_enabled('Web Console')
assert not view.toolbar.access.item_enabled('Web Console')

0 comments on commit 2a4d2e5

Please sign in to comment.