class PhysicalStoragesToolbar(View): """Represents hosts toolbar and its controls.""" configuration = Dropdown(text="Configuration") view_selector = View.nested(ItemsToolBarViewSelector)
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)
class BuildToolbar(View): configuration = Dropdown('Configuration') policy = Dropdown('Policy') download = Dropdown('Download') view_selector = View.nested(ItemsToolBarViewSelector)
class TimeProfileAddFormView(BaseLoggedInPage): timeprofile_form = View.nested(TimeProfileAddForm) entities = View.nested(TimeprofileAddEntities) mysetting = View.nested(MySettingsView)
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)
class PXECustomizationTemplateCopyView(PXECustomizationTemplateForm): toolbar = View.nested(PXEDetailsToolBar) add = Button('Add') cancel = Button('Cancel')
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)
class BalancerToolBar(View): """ Represents balancers toolbar and its controls """ policy = Dropdown(text='Policy') download = Dropdown(text='Download') view_selector = View.nested(ItemsToolBarViewSelector)
class form(View): # noqa policy_profile = BootstrapSelect("profile_id") # TODO policies table, ability to remove entities = View.nested(BaseNonInteractiveEntitiesView) cancel_button = Button("Cancel")
class InfraNetworkingToolbar(View): """The toolbar for Infra Networking view""" policy = Dropdown("Policy") view_selector = View.nested(ItemsToolBarViewSelector)
class VolumeSnapshotToolbar(View): """The toolbar on the Volume Snapshot page""" policy = Dropdown('Policy') download = Dropdown('Download') view_selector = View.nested(ItemsToolBarViewSelector)
class TowerExplorerSystemJobTemplatesToolbar(View): reload = Button(title='Refresh this page') policy = Dropdown('Policy') download = Dropdown('Download') view_selector = View.nested(ItemsToolBarViewSelector)
class TowerExplorerProviderToolbar(View): reload = Button(title='Refresh this page') configuration = Dropdown('Configuration') policy = Dropdown('Policy') download = Dropdown('Download') view_selector = View.nested(ItemsToolBarViewSelector)
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)
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)
class DomainToolbar(View): """The toolbar on the main page""" policy = Dropdown('Policy') download = Dropdown('Download') view_selector = View.nested(ItemsToolBarViewSelector)
class NetworkPortToolBar(View): """ Represents provider toolbar and its controls """ policy = Dropdown(text='Policy') download = Dropdown(text='Download') view_selector = View.nested(ItemsToolBarViewSelector)
class ServerGroupToolbar(View): """The toolbar on the main page""" download = Dropdown('Download') view_selector = View.nested(ItemsToolBarViewSelector)
class SecurityGroupDetailsToolBar(View): """ Represents provider details toolbar """ policy = Dropdown(text='Policy') download = Button(title='Download summary in PDF format') view_selector = View.nested(ItemsToolBarViewSelector)
class PlaybooksToolbar(View): view_selector = View.nested(ItemsToolBarViewSelector) download = Dropdown("Download")
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)
class form(View): # noqa policy = BootstrapSelect('policy_id') # TODO policies table, ability to remove entities = View.nested(BaseNonInteractiveEntitiesView) cancel_button = Button('Cancel')
class OneProviderComponentsToolbar(View): policy = Dropdown(text='Policy') download = Dropdown(text='Download') back = Button(name='show_summary') view_selector = View.nested(ItemsToolBarViewSelector)
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')
class FloatingIpToolBar(View): """ Represents floating ips toolbar and its controls """ policy = Dropdown(text='Policy') download = Dropdown(text='Download') view_selector = View.nested(ItemsToolBarViewSelector)
class AvailabilityZoneToolBar(View): """View containing the toolbar widgets""" policy = Dropdown('Policy') download = Dropdown('Download') # Title attribute, no displayed text view_selector = View.nested(ItemsToolBarViewSelector)
class host_collections(SatTab): TAB_NAME = 'Host Collections' resources = View.nested(AddRemoveResourcesView)
class request_info(Tab): # noqa TAB_NAME = 'Request Info' provisioning = View.nested(BasicProvisionFormView)
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')