def input_appliance_host_name(cls, appliance_host_name, timeout=5):
     logger.debug("input appliance host name %s" % appliance_host_name)
     ui_lib.wait_for_element_and_input_text(
         C7000_EditNetworkingElements.ID_INPUT_APPLIANCE_HOST_NAME,
         appliance_host_name,
         timeout,
         fail_if_false=True)
Exemplo n.º 2
0
 def input_resource_name(cls, name, wait_timeout=5):
     logger.debug("input resource name '%s'" % name)
     ui_lib.wait_for_element_and_input_text(
         EditScopesElements.ID_INPUT_SEARCH_TEXT,
         name,
         wait_timeout,
         fail_if_false=True)
 def input_email_address_for_alert_filter(cls, email_address, timeout=5):
     logger.debug("Enter the email to send the alert notification")
     ui_lib.wait_for_element_and_input_text(
         CreateAlertFilterElements.ID_INPUT_ALERT_EMAIL_ADDRESS,
         email_address,
         timeout,
         fail_if_false=True)
Exemplo n.º 4
0
 def input_name(cls, name, wait_timeout=5):
     logger.debug("input scope name '%s'" % name)
     ui_lib.wait_for_element_and_input_text(
         EditScopesElements.ID_INPUT_SCOPE_NAME,
         name,
         wait_timeout,
         fail_if_false=True)
 def input_ipv4_address(cls, ipv4_address, timeout=5):
     logger.debug("input ipv4 address %s" % ipv4_address)
     ui_lib.wait_for_element_and_input_text(
         C7000_EditNetworkingElements.ID_INPUT_IPV4_ADDRESS,
         ipv4_address,
         timeout,
         fail_if_false=True)
Exemplo n.º 6
0
 def input_description(cls, description, wait_timeout=5):
     logger.debug("input scope description '%s'" % description)
     ui_lib.wait_for_element_and_input_text(
         EditScopesElements.ID_INPUT_SCOPE_DESCRIPTION,
         description,
         wait_timeout,
         fail_if_false=True)
 def input_user_name(cls, username, timeout=5):
     logger.debug("input user name '%s'" % username)
     ui_lib.wait_for_element_and_input_text(
         EditSANMangersElements.ID_INPUT_USER_NAME,
         username,
         timeout,
         fail_if_false=True)
 def input_alert_name(cls, alert_name, timeout=5):
     logger.debug("Enter alert name")
     ui_lib.wait_for_element_and_input_text(
         CreateAlertFilterElements.ID_INPUT_ALERT_NAME,
         alert_name,
         timeout,
         fail_if_false=True)
 def input_password(cls, password, timeout=5):
     logger.debug("input password '%s'" % password)
     ui_lib.wait_for_element_and_input_text(
         EditSANMangersElements.ID_INPUT_PASSWORD,
         password,
         timeout,
         fail_if_false=True)
 def input_ip_address_or_host_name(cls, host, timeout=5):
     logger.debug("input ip address or hostname '%s'" % host)
     ui_lib.wait_for_element_and_input_text(
         EditSANMangersElements.ID_INPUT_IP_ADDRESS_OR_HOST_NAME,
         host,
         timeout,
         fail_if_false=True)
 def input_new_alert_criteria(cls, criteria, timeout=5):
     logger.debug("Enter the updated alert states for filter")
     ui_lib.wait_for_element_and_input_text(
         EditAlertFilterElements.ID_TEXT_ALERT_CRITERIA,
         criteria,
         timeout,
         fail_if_false=True)
Exemplo n.º 12
0
def add_user_input_filter(filter_name, values):
    logger._log_to_console_and_log_file(
        "Adding data to %s filter on san endpoints" % filter_name)
    selenium2lib = ui_lib.get_s2l()
    selenium2lib.maximize_browser_window()

    if (filter_name == 'endpoint'):
        xpath_filter = FusionSANPage.ID_SAN_ENDPOINTS_FILTER_ENDPOINT
    elif (filter_name == 'wwpn'):
        xpath_filter = FusionSANPage.ID_SAN_ENDPOINTS_FILTER_WWPN
    elif (filter_name == 'alias'):
        xpath_filter = FusionSANPage.ID_SAN_ENDPOINTS_FILTER_ALIAS
    elif (filter_name == 'online'):
        xpath_filter = FusionSANPage.ID_SAN_ENDPOINTS_FILTER_ONLINE
    elif (filter_name == 'zone'):
        xpath_filter = FusionSANPage.ID_SAN_ENDPOINTS_FILTER_ZONE

    else:
        logger._log_to_console_and_log_file(
            "Invalid action requested for san endpoints filter")
        return False

    try:
        ui_lib.wait_for_element_visible(xpath_filter, 20)
    except:
        pass

    ui_lib.wait_for_element_and_click(xpath_filter, 20)
    ui_lib.wait_for_element_and_input_text(xpath_filter, values)
 def input_authentication_password(cls, password, timeout=5):
     logger.debug("input authentication password '%s'" % password)
     ui_lib.wait_for_element_and_input_text(
         AddSANMangersElements.ID_INPUT_AUTHENTICATION_PASSWORD,
         password,
         timeout,
         fail_if_false=True)
Exemplo n.º 14
0
 def input_ipv6_subnet_mask_or_cidr(cls, mask_or_cidr, timeout=5):
     logger.debug("input ipv6 subnet mask or CIDR %s" % mask_or_cidr)
     ui_lib.wait_for_element_and_input_text(
         C7000_EditNetworkingElements.ID_INPUT_IPV6_SUBNET_MASK_OR_CIDR,
         mask_or_cidr,
         timeout,
         fail_if_false=True)
Exemplo n.º 15
0
 def input_ipv6_gateway_address(cls, gateway_address, timeout=5):
     logger.debug("input ipv6 gateway address %s" % gateway_address)
     ui_lib.wait_for_element_and_input_text(
         C7000_EditNetworkingElements.ID_INPUT_IPV6_GATEWAY_ADDRESS,
         gateway_address,
         timeout,
         fail_if_false=True)
Exemplo n.º 16
0
 def input_preferred_dns_server(cls, preferred_dns_server, timeout=5):
     logger.debug("input preferred dns server %s" % preferred_dns_server)
     ui_lib.wait_for_element_and_input_text(
         C7000_EditNetworkingElements.ID_INPUT_PREFERRED_DNS_SERVER,
         preferred_dns_server,
         timeout,
         fail_if_false=True)
Exemplo n.º 17
0
 def input_alternate_dns_server(cls, alternate_dns_server, timeout=5):
     logger.debug("input alternate dns server %s" % alternate_dns_server)
     ui_lib.wait_for_element_and_input_text(
         C7000_EditNetworkingElements.ID_INPUT_ALTERNATE_DNS_SERVER,
         alternate_dns_server,
         timeout,
         fail_if_false=True)
 def input_port(cls, port, timeout=5):
     logger.debug("input port '%s'" % port)
     ui_lib.wait_for_element_and_input_text(
         EditSANMangersElements.ID_INPUT_PORT,
         port,
         timeout,
         fail_if_false=True)
 def input_sender_email(cls, email_address, timeout=5):
     logger.debug("Enter Sender email")
     ui_lib.wait_for_element_and_input_text(
         NotificationElements.ID_INPUT_NOTIFICATION_SENDING_EMAIL,
         email_address,
         timeout,
         fail_if_false=True)
Exemplo n.º 20
0
 def input_maximum_bandwidth(cls, bandwidth, wait_timeout=5):
     logger.debug("input maximum bandwidth '%s'" % bandwidth)
     ui_lib.wait_for_element_and_input_text(
         CreateNetworkSetsElements.ID_INPUT_NETWORK_SET_MAXS_BANDWIDTH,
         bandwidth,
         wait_timeout,
         fail_if_false=True)
Exemplo n.º 21
0
 def input_name(cls, name, wait_timeout=5):
     logger.debug("input networkset name '%s'" % name)
     ui_lib.wait_for_element_and_input_text(
         CreateNetworkSetsElements.ID_INPUT_NETWORK_SET_NAME,
         name,
         wait_timeout,
         fail_if_false=True)
Exemplo n.º 22
0
 def input_network_name(cls, name, wait_timeout=5):
     logger.debug("input network name '%s'" % name)
     ui_lib.wait_for_element_and_input_text(
         EditNetworkSetsElements.ID_INPUT_SEARCH_TEXT,
         name,
         wait_timeout,
         fail_if_false=True)
Exemplo n.º 23
0
 def input_preferred_bandwidth(cls, bandwidth, wait_timeout=5):
     logger.debug("input preferred bandwidth '%s'" % bandwidth)
     ui_lib.wait_for_element_and_input_text(
         EditNetworkSetsElements.ID_INPUT_NETWORK_SET_PREF_BANDWIDTH,
         bandwidth,
         wait_timeout,
         fail_if_false=True)
 def input_select_logical_interconnect_group(cls, bay, logical_interconnect_group, timeout=5):
     logger.debug("- About to choose LIG %s for bay %s" % (logical_interconnect_group, bay))
     BuiltIn().sleep(3)
     ui_lib.wait_for_element_and_input_text(EditEnclosureGroupElements.ID_INPUT_C7000_CHOOSE_LIG % bay, "", timeout, fail_if_false=True)
     BuiltIn().sleep(3)
     ui_lib.wait_for_element_and_input_text(EditEnclosureGroupElements.ID_INPUT_C7000_CHOOSE_LIG % bay, logical_interconnect_group, timeout, fail_if_false=True)
     BuiltIn().sleep(3)
     ui_lib.wait_for_element_and_click(EditEnclosureGroupElements.ID_COMBO_C7000_OPTION_LIG % (bay, logical_interconnect_group), timeout, fail_if_false=True)
def edit_user_input_pswd(password):
    xpath_password = FusionSANManagersPage.ID_SAN_EDIT_BNA_PSWD
    try:
        ui_lib.wait_for_element_visible(xpath_password, 10)
    except:
        pass

    ui_lib.wait_for_element_and_input_text(xpath_password, password)
 def input_email_addres_edit_alert(cls, email, timeout=5):
     logger.debug("add one more email added for the alert receiver '%s'" %
                  email)
     ui_lib.wait_for_element_and_input_text(
         EditAlertFilterElements.ID_INPUT_EDIT_ALERT_EMAIL_ADDRESS,
         email,
         timeout,
         fail_if_false=True)
def add_san_manager_click_type(stype):
    xpath_type = FusionSANManagersPage.ID_SELECT_BOX_LABEL + stype
    try:
        ui_lib.wait_for_element_visible(xpath_type, 10)
    except:
        pass

    ui_lib.wait_for_element_and_input_text(xpath_type, stype)
 def input_advanced_criteria(cls, status, timeout=5):
     logger.debug(
         "Enter the alert status for filter under Advanced Criteria")
     ui_lib.wait_for_element_and_input_text(
         ChooseAlertCriteriaElements.ID_TEXT_ALERT_FILTER_ADVANCED_ALERTS,
         status,
         timeout,
         fail_if_false=True)
def add_user_input_username(username):
    xpath_username = FusionSANManagersPage.ID_SAN_BNA_USER
    try:
        ui_lib.wait_for_element_visible(xpath_username, 10)
    except:
        pass

    ui_lib.wait_for_element_and_input_text(xpath_username, username)
def add_user_input_port(port):
    xpath_port = FusionSANManagersPage.ID_SAN_MANAGER_BNA_PORT
    try:
        ui_lib.wait_for_element_visible(xpath_port, 10)
    except:
        pass

    ui_lib.wait_for_element_and_input_text(xpath_port, port)