class workers(Tab): # noqa TAB_NAME = "Workers" # TODO move workers tab view into server_settings as ServerWorkersView generic_worker_count = BootstrapSelect("generic_worker_count") generic_worker_threshold = BootstrapSelect("generic_worker_threshold") cu_data_collector_worker_count = BootstrapSelect( "ems_metrics_collector_worker_count") cu_data_collector_worker_threshold = BootstrapSelect( "ems_metrics_collector_worker_threshold") event_monitor_worker_threshold = BootstrapSelect( "event_catcher_threshold") connection_broker_worker_threshold = BootstrapSelect( "vim_broker_worker_threshold") ui_worker_count = BootstrapSelect("ui_worker_count") reporting_worker_count = BootstrapSelect("reporting_worker_count") reporting_worker_threshold = BootstrapSelect( "reporting_worker_threshold") web_service_worker_count = BootstrapSelect("web_service_worker_count") web_service_worker_threshold = BootstrapSelect( "web_service_worker_threshold") priority_worker_count = BootstrapSelect("priority_worker_count") priority_worker_threshold = BootstrapSelect( "priority_worker_threshold") cu_data_processor_worker_count = BootstrapSelect( "ems_metrics_processor_worker_count") cu_data_processor_worker_threshold = BootstrapSelect( "ems_metrics_processor_worker_threshold") refresh_worker_threshold = BootstrapSelect( "ems_refresh_worker_threshold") vm_analysis_collectors_worker_count = BootstrapSelect( "proxy_worker_count") vm_analysis_collectors_worker_threshold = BootstrapSelect( "proxy_worker_threshold") websocket_worker_count = BootstrapSelect("websocket_worker_count") save = Button('Save') reset = Button('Reset')
class TemplateForm(CopyTemplateForm): title = Text('#explorer_title_text') template_type = BootstrapSelect("type")
class PXESystemImageTypeForm(View): title = Text('//div[@id="main-content"]//h1') name = Input(id='name') type = BootstrapSelect(id='provision_type') is_displayed = displayed_not_implemented
class SCVMMEndpointForm(DefaultEndpointForm): security_protocol = BootstrapSelect(id='default_security_protocol') realm = Input( 'realm') # appears when Kerberos is chosen in security_protocol
class web_services(View): # noqa """ Class represents Server WebServices Form """ mode = BootstrapSelect(id='webservices_mode') security = BootstrapSelect(id='webservices_security')
class tag_form_view(View): # noqa type = BootstrapSelect("chosen_typ") tag = BootstrapSelect("chosen_tag") value = BootstrapSelect("chosen_value") user_input = Input(name="user_input")
class date_specific_form_view(View): # noqa date = Calendar(name="miq_date_1_0") time = BootstrapSelect("miq_time_1_0")
class environment(Tab): # noqa TAB_NAME = 'Environment' automatic_placement = Checkbox(id='environment__placement_auto') # Cloud availability_zone = BootstrapSelect( 'environment__placement_availability_zone') cloud_network = BootstrapSelect('environment__cloud_network') cloud_subnet = BootstrapSelect('environment__cloud_subnet') cloud_tenant = BootstrapSelect( 'environment__cloud_tenant') # exists for azure in catalogs security_groups = BootstrapSelect('environment__security_groups') resource_groups = BootstrapSelect('environment__resource_group') public_ip_address = BootstrapSelect('environment__floating_ip_address') # Infra provider_name = BootstrapSelect('environment__placement_ems_name') datacenter = BootstrapSelect('environment__placement_dc_name') cluster = BootstrapSelect('environment__placement_cluster_name') resource_pool = BootstrapSelect('environment__placement_rp_name') folder = BootstrapSelect('environment__placement_folder_name') host_filter = BootstrapSelect('environment__host_filter') host_name = SelectTable('//div[@id="prov_host_div"]/table') datastore_create = Input('environment__new_datastore_create') datastore_filter = BootstrapSelect('environment__ds_filter') datastore_name = SelectTable('//div[@id="prov_ds_div"]/table')
class network(Tab): # noqa TAB_NAME = 'Network' vlan = BootstrapSelect('network__vlan')
class resources(Tab): # noqa select_resource = BootstrapSelect('resource_id')
class ButtonGroupForm(ServicesCatalogView): title = Text('#explorer_title_text') btn_group_text = Input(name='name') btn_group_hvr_text = Input(name='description') btn_image = BootstrapSelect('button_image')
class report(Tab): # noqa TAB_NAME = 'Report' event_details = Table("//div[@id='bottlenecks_report_div']/table") event_groups = BootstrapSelect('tl_report_fl_grp1') show_host_events = Checkbox(locator='//input[@name="tl_report_hosts"]') time_zone = BootstrapSelect("tl_report_tz")
class summary(Tab): # noqa TAB_NAME = 'Summary' event_groups = BootstrapSelect('tl_summ_fl_grp1') show_host_events = Checkbox(locator='//input[@name="tl_summ_hosts"]') time_zone = BootstrapSelect("tl_summ_tz") chart = TimelinesChart(locator='//div/*[@class="timeline-pf-chart"]')
class timeline(WaitTab): # noqa based_on = BootstrapSelect("chosen_tl") position = BootstrapSelect("chosen_position")
class charts(WaitTab): # noqa chart_type = BootstrapSelect("chosen_graph") chart_mode = BootstrapSelect("chart_mode") values_to_show = BootstrapSelect("chosen_count") sum_other_values = Checkbox("chosen_other")
class form(View): # noqa server = BootstrapSelect('server_id') save_button = Button('Save') reset_button = Button('Reset') cancel_button = Button('Cancel')
class count_form_view(View): # noqa type = BootstrapSelect("chosen_typ") count = BootstrapSelect("chosen_count") key = BootstrapSelect("chosen_key") value = Input(name="chosen_value") user_input = Input(name="user_input")
class form(View): # noqa policy = BootstrapSelect('policy_id') # TODO policies table, ability to remove entities = View.nested(BaseNonInteractiveEntitiesView) cancel_button = Button('Cancel')
class registry_form_view(View): # noqa type = BootstrapSelect("chosen_typ") key = Input(name="chosen_regkey") value = Input(name="chosen_regval") operation = BootstrapSelect("chosen_key") contents = Input(name="chosen_value")
class ReportWidgetFormCommon(BaseDashboardWidgetFormCommon): # Report Options filter = BootstrapSelect("filter_typ") subfilter = BootstrapSelect("subfilter_typ") repfilter = BootstrapSelect("repfilter_typ") column1 = BootstrapSelect("chosen_pivot1") column2 = BootstrapSelect("chosen_pivot2") column3 = BootstrapSelect("chosen_pivot3") column4 = BootstrapSelect("chosen_pivot4") row_count = BootstrapSelect("row_count") # Timer run = BootstrapSelect("timer_typ") every = BootstrapSelect("timer_hours") time_zone = BootstrapSelect("time_zone") starting_date = Calendar("miq_date_1") starting_hour = BootstrapSelect("start_hour") starting_minute = BootstrapSelect("start_min")
class date_relative_form_view(View): # noqa from_ = BootstrapSelect("chosen_from_1") through = BootstrapSelect("chosen_through_1")
class form(View): # noqa volume = BootstrapSelect('volume_id') submit_button = Button('Submit') cancel_button = Button('Cancel')
class vmware_console(View): # noqa """ Class represents Server VWware Console Support Form """ console_type = BootstrapSelect("console_type")
class form(View): # noqa flavor = BootstrapSelect('flavor') submit_button = Button('Submit') cancel_button = Button('Cancel')
class logging_form(View): # noqa """ Class represents Server Logging Form """ log_level = BootstrapSelect(id='log_level')
class form(View): # noqa volume = BootstrapSelect('volume_id') mountpoint = Input(name='device_path') submit_button = Button('Submit') cancel_button = Button('Cancel')
class RedfishEndpointForm(DefaultEndpointForm): security_protocol = BootstrapSelect('default_security_protocol') api_port = Input('default_api_port')
class field_form_view(View): # noqa type = BootstrapSelect("chosen_typ") field = BootstrapSelect("chosen_field") key = BootstrapSelect("chosen_key") value = Input(name="chosen_value") user_input = Input(name="user_input")
class PXEDatastoreForm(View): title = Text('//div[@id="main-content"]//h1') provider = BootstrapSelect(id='ems_id') is_displayed = displayed_not_implemented
class field_date_form(View): # noqa dropdown_select = BootstrapSelect("chosen_from_1") input_select_date = Calendar(name="miq_date_1_0") input_select_time = BootstrapSelect("miq_time_1_0")
def __init__(self, parent, locator, can_hide_on_select=False, logger=None): BootstrapSelect.__init__(self, parent, locator, can_hide_on_select, logger) self.locator = locator
def fill_type_field(self, i, type_): type_field = BootstrapSelect(self, "var_type__{}".format(i)) return type_field.fill(type_)