예제 #1
0
class PhysicalStoragesToolbar(View):
    """Represents hosts toolbar and its controls."""
    configuration = Dropdown(text="Configuration")
    view_selector = View.nested(ItemsToolBarViewSelector)
예제 #2
0
class ObjectStoreContainerToolbar(View):
    """The toolbar on the Object Store Containers page"""
    configuration = Dropdown('Configuration')
    policy = Dropdown('Policy')
    download = Dropdown('Download')
    view_selector = View.nested(ItemsToolBarViewSelector)
예제 #3
0
class BuildToolbar(View):
    configuration = Dropdown('Configuration')
    policy = Dropdown('Policy')
    download = Dropdown('Download')
    view_selector = View.nested(ItemsToolBarViewSelector)
예제 #4
0
class TimeProfileAddFormView(BaseLoggedInPage):
    timeprofile_form = View.nested(TimeProfileAddForm)
    entities = View.nested(TimeprofileAddEntities)
    mysetting = View.nested(MySettingsView)
예제 #5
0
class ServerInformationView(View):
    """ Class represents full Server tab view"""
    title = Text("//div[@id='settings_server']/h3[1]")
    # Use local FlashMessages view for validation, since this class is nested under
    # under a class inheriting BaseLoggedInPage.
    flash = View.nested(FlashMessages)
    save = Button('Save')
    reset = Button('Reset')

    @View.nested
    class basic_information(View):  # noqa
        """ Class represents Server Basic Information Form """
        hostname = Text(
            locator='.//label[normalize-space(.)="Hostname"]/../div')
        company_name = Input(name='server_company')
        appliance_name = Input(name='server_name')
        appliance_zone = BootstrapSelect(id='server_zone')
        time_zone = BootstrapSelect(id='server_timezone')
        locale = BootstrapSelect(id='locale')

    server_roles = View.nested(ServerRolesView)

    @View.nested
    class vmware_console(View):  # noqa
        """ Class represents Server VWware Console Support Form """

        console_type = BootstrapSelect("console_type")

    @View.nested
    class ntp_servers(View):  # noqa
        """ Class represents Server VWware Console Support Form """

        ntp_server_1 = Input(name="ntp_server_1")
        ntp_server_2 = Input(name="ntp_server_2")
        ntp_server_3 = Input(name="ntp_server_3")

    @View.nested
    class smtp_server(View):  # noqa
        """ Class represents SMTP Server Form """

        host = Input("smtp_host")
        port = Input("smtp_port")
        domain = Input("smtp_domain")
        start_tls = BootstrapSwitch(name="smtp_enable_starttls_auto")
        ssl_verify = BootstrapSelect("smtp_openssl_verify_mode")
        auth = BootstrapSelect("smtp_authentication")
        username = Input("smtp_user_name")
        password = Input("smtp_password")
        from_email = Input("smtp_from")
        to_email = Input("smtp_test_to")
        verify = Button('Verify')

    @View.nested
    class web_services(View):  # noqa
        """ Class represents Server WebServices Form """

        mode = BootstrapSelect(id='webservices_mode')
        security = BootstrapSelect(id='webservices_security')

    @View.nested
    class logging_form(View):  # noqa
        """ Class represents Server Logging Form """

        log_level = BootstrapSelect(id='log_level')

    @View.nested
    class custom_support_url(View):  # noqa
        """ Class represents Server Custom Support URL Form """

        url = Input(name='custom_support_url')
        description = Input(name='custom_support_url_description')

    @property
    def is_displayed(self):
        return (self.basic_information.appliance_name.is_displayed
                and self.title.text == 'Basic Information')
class JDRAllView(View):
    """The "all" view -- a list of JDR Reports"""
    toolbar = View.nested(JDRToolbar)
    including_entities = View.include(JDREntitiesView, use_parent=True)
예제 #7
0
class PXECustomizationTemplateCopyView(PXECustomizationTemplateForm):
    toolbar = View.nested(PXEDetailsToolBar)
    add = Button('Add')
    cancel = Button('Cancel')
예제 #8
0
 class toolbar(View):  # noqa
     configuration = Dropdown(text='Configuration')
     policy = Dropdown(text='Policy')
     power = Dropdown(text='Power')
     download = Dropdown(text='Download')
     view_selector = View.nested(ItemsToolBarViewSelector)
예제 #9
0
class BalancerToolBar(View):
    """ Represents balancers toolbar and its controls """
    policy = Dropdown(text='Policy')
    download = Dropdown(text='Download')
    view_selector = View.nested(ItemsToolBarViewSelector)
예제 #10
0
 class form(View):  # noqa
     policy_profile = BootstrapSelect("profile_id")
     # TODO policies table, ability to remove
     entities = View.nested(BaseNonInteractiveEntitiesView)
     cancel_button = Button("Cancel")
예제 #11
0
class InfraNetworkingToolbar(View):
    """The toolbar for Infra Networking view"""

    policy = Dropdown("Policy")
    view_selector = View.nested(ItemsToolBarViewSelector)
예제 #12
0
class VolumeSnapshotToolbar(View):
    """The toolbar on the Volume Snapshot page"""
    policy = Dropdown('Policy')
    download = Dropdown('Download')
    view_selector = View.nested(ItemsToolBarViewSelector)
예제 #13
0
class TowerExplorerSystemJobTemplatesToolbar(View):
    reload = Button(title='Refresh this page')
    policy = Dropdown('Policy')
    download = Dropdown('Download')
    view_selector = View.nested(ItemsToolBarViewSelector)
예제 #14
0
class TowerExplorerProviderToolbar(View):
    reload = Button(title='Refresh this page')
    configuration = Dropdown('Configuration')
    policy = Dropdown('Policy')
    download = Dropdown('Download')
    view_selector = View.nested(ItemsToolBarViewSelector)
예제 #15
0
class JDRToolbar(View):
    """The toolbar on the JDR Reports list"""
    download_list = Dropdown('Download list of JDR')
    delete = Button('Delete')
    view_selector = View.nested(ItemsToolBarViewSelector)
예제 #16
0
class CloudNetworkToolBar(View):
    """ Represents cloud networks toolbar and its controls """
    configuration = Dropdown(text='Configuration')
    policy = Dropdown(text='Policy')
    download = Dropdown(text='Download')
    view_selector = View.nested(ItemsToolBarViewSelector)
예제 #17
0
class DomainToolbar(View):
    """The toolbar on the main page"""
    policy = Dropdown('Policy')
    download = Dropdown('Download')

    view_selector = View.nested(ItemsToolBarViewSelector)
예제 #18
0
class NetworkPortToolBar(View):
    """ Represents provider toolbar and its controls """
    policy = Dropdown(text='Policy')
    download = Dropdown(text='Download')
    view_selector = View.nested(ItemsToolBarViewSelector)
예제 #19
0
class ServerGroupToolbar(View):
    """The toolbar on the main page"""
    download = Dropdown('Download')

    view_selector = View.nested(ItemsToolBarViewSelector)
예제 #20
0
class SecurityGroupDetailsToolBar(View):
    """ Represents provider details toolbar """
    policy = Dropdown(text='Policy')
    download = Button(title='Download summary in PDF format')
    view_selector = View.nested(ItemsToolBarViewSelector)
예제 #21
0
class PlaybooksToolbar(View):
    view_selector = View.nested(ItemsToolBarViewSelector)
    download = Dropdown("Download")
예제 #22
0
class SubnetToolBar(View):
    """ Represents provider toolbar and its controls """
    configuration = Dropdown(text='Configuration')
    policy = Dropdown(text='Policy')
    download = Dropdown(text='Download')
    view_selector = View.nested(ItemsToolBarViewSelector)
예제 #23
0
 class form(View):  # noqa
     policy = BootstrapSelect('policy_id')
     # TODO policies table, ability to remove
     entities = View.nested(BaseNonInteractiveEntitiesView)
     cancel_button = Button('Cancel')
예제 #24
0
class OneProviderComponentsToolbar(View):
    policy = Dropdown(text='Policy')
    download = Dropdown(text='Download')
    back = Button(name='show_summary')
    view_selector = View.nested(ItemsToolBarViewSelector)
예제 #25
0
 class template(SatTab):
     name = TextInput(id='provisioning_template_name')
     default = Checkbox(id='provisioning_template_default')
     template_editor = View.nested(TemplateEditor)
     audit = TextInput(id='provisioning_template_audit_comment')
예제 #26
0
class FloatingIpToolBar(View):
    """ Represents floating ips toolbar and its controls """
    policy = Dropdown(text='Policy')
    download = Dropdown(text='Download')
    view_selector = View.nested(ItemsToolBarViewSelector)
예제 #27
0
class AvailabilityZoneToolBar(View):
    """View containing the toolbar widgets"""
    policy = Dropdown('Policy')
    download = Dropdown('Download')  # Title attribute, no displayed text

    view_selector = View.nested(ItemsToolBarViewSelector)
예제 #28
0
    class host_collections(SatTab):
        TAB_NAME = 'Host Collections'

        resources = View.nested(AddRemoveResourcesView)
예제 #29
0
 class request_info(Tab):  # noqa
     TAB_NAME = 'Request Info'
     provisioning = View.nested(BasicProvisionFormView)
예제 #30
0
class ConfigManagementAddEntities(View):
    """The entities on the add page"""
    title = Text('//div[@id="main-content"]//h1')
    form = View.nested(ConfigManagementAddForm)
    add = Button('Add')
    cancel = Button('Cancel')