コード例 #1
0
class AttachInstanceView(VolumeView):
    @property
    def is_displayed(self):
        expected_title = 'Attach Cloud Volume "{name}"'.format(
            name=self.context['object'].name)
        return (self.in_volume and self.entities.title.text == expected_title
                and self.entities.breadcrumb.active_location == expected_title)

    instance = BootstrapSelect('vm_id')
    mountpoint = Input(name='device_path')
    attach = Button('Attach')
    cancel = Button('Cancel')
    reset = Button('Reset')

    entities = View.nested(VolumeAttachInstanceEntities)
コード例 #2
0
ファイル: volume.py プロジェクト: psimovec/integration_tests
class DetachInstanceView(VolumeView):
    @property
    def is_displayed(self):
        expected_title = 'Detach Cloud Volume "{name}"'.format(name=self.context['object'].name)
        return (
            self.in_volume and
            self.entities.title.text == expected_title and
            self.entities.breadcrumb.active_location == expected_title
        )

    instance = BootstrapSelect(name='vm_id')
    detach = Button('Detach')
    cancel = Button('Cancel')

    entities = View.nested(VolumeDetachInstanceEntities)
コード例 #3
0
    class grid_tile_icons(View):  # noqa
        infra_provider_quad = BootstrapSwitch(
            VersionPicker({
                Version.lowest(): 'quadicons_ems',
                '5.10': 'quadicons_infra_manager'
            }))
        cloud_provider_quad = BootstrapSwitch(
            VersionPicker({
                Version.lowest(): 'quadicons_ems_cloud',
                '5.10': 'quadicons_cloud_manager'
            }))

        containers_provider_quad = BootstrapSwitch(
            'quadicons_container_manager')
        host_quad = BootstrapSwitch('quadicons_host')
        datastore_quad = BootstrapSwitch('quadicons_storage')
        vm_quad = BootstrapSwitch('quadicons_vm')
        template_quad = BootstrapSwitch('quadicons_miq_template')
        long_text = BootstrapSelect('quad_truncate')
コード例 #4
0
ファイル: volume.py プロジェクト: dgur/integration_tests
class VolumeAddForm(View):
    volume_name = TextInput(name='name')
    size = TextInput(name='size')
    tenant = BootstrapSelect(id='cloud_tenant_id')
    add = Button('Add')
    cancel = Button('Cancel')
コード例 #5
0
class KeyPairAddForm(View):
    name = TextInput(id='name')
    public_key = TextInput(id='public_key')
    provider = BootstrapSelect(id='ems_id')
    add = Button('Add')
    cancel = Button('Cancel')
コード例 #6
0
ファイル: settings.py プロジェクト: dgur/integration_tests
 class visualdisplay(View):  # noqa
     chart_theme = BootstrapSelect("display_reporttheme")
     time_zone = BootstrapSelect("display_timezone")
コード例 #7
0
ファイル: settings.py プロジェクト: dgur/integration_tests
 class visualstartpage(View):  # noqa
     show_at_login = BootstrapSelect("start_page")
コード例 #8
0
ファイル: settings.py プロジェクト: dgur/integration_tests
 class visualitem(View):  # noqa
     grid_view = BootstrapSelect("perpage_grid")
     tile_view = BootstrapSelect("perpage_tile")
     list_view = BootstrapSelect("perpage_list")
     reports = BootstrapSelect("perpage_reports")
コード例 #9
0
ファイル: settings.py プロジェクト: nachandr/cfme_tests
 class display_settings(View):   # noqa
     chart_theme = BootstrapSelect('display_reporttheme')
     time_zone = BootstrapSelect('display_timezone')
     locale = BootstrapSelect('display_locale')
コード例 #10
0
ファイル: settings.py プロジェクト: nachandr/cfme_tests
 class topology_default_items(View):     # noqa
     containers = BootstrapSelect('topology_containers_max_items')
コード例 #11
0
ファイル: settings.py プロジェクト: nachandr/cfme_tests
 class default_items_per_page(View):  # noqa
     grid_view = BootstrapSelect('perpage_grid')
     tile_view = BootstrapSelect('perpage_tile')
     list_view = BootstrapSelect('perpage_list')
     reports = BootstrapSelect('perpage_reports')
コード例 #12
0
ファイル: settings.py プロジェクト: nachandr/cfme_tests
 class start_page(View):    # noqa
     show_at_login = BootstrapSelect('start_page')