Exemplo n.º 1
0
            ('guest_keypair',
             ui.Select('//select[@id="hardware__guest_access_key_pair"]')),
            ('hardware_monitoring',
             ui.Select('//select[@id="hardware__monitoring"]')),
        ]),
        ('Customize', [
            ('specification',
             ui.Select('//select[@id="customize__sysprep_enabled"]')),
            ('specification_name', ui.Table('//div[@id="prov_vc_div"]/table')),
            ('computer_name', '//input[@id="customize__linux_host_name"]'),
            ('domain_name', '//input[@id="customize__linux_domain_name"]'),
            ('dns_servers', '//input[@id="customize__dns_servers"]'),
            ('dns_suffixes', '//input[@id="customize__dns_suffixes"]'),
        ]),
        ('Schedule', [
            ('schedule_type', ui.Radio('schedule__schedule_type')),
            ('provision_date', ui.Calendar('miq_date_1')),
            ('provision_start_hour', ui.Select('//select[@id="start_hour"]')),
            ('provision_start_min', ui.Select('//select[@id="start_min"]')),
            ('power_on', '//input[@id="schedule__vm_auto_start"]'),
            ('retirement', ui.Select('//select[@id="schedule__retirement"]')),
            ('retirement_warning',
             ui.Select('//select[@id="schedule__retirement_warn"]')),
        ])
    ]))

instances_by_provider_tree = ui.Tree("//ul[@class='dynatree-container']")


# Nav targets and helpers
def _nav_to_provision_form(context):
Exemplo n.º 2
0
         ('hardware_monitoring',
          web_ui.Select('//select[@id="hardware__monitoring"]')),
     ]),
     ('Customize', [
         ('specification',
          web_ui.Select('//select[@id="customize__sysprep_enabled"]')),
         ('specification_name',
          web_ui.Table('//div[@id="prov_vc_div"]/table')),
         ('computer_name', '//input[@id="customize__linux_host_name"]'),
         ('domain_name', '//input[@id="customize__linux_domain_name"]'),
         ('dns_servers', '//input[@id="customize__dns_servers"]'),
         ('dns_suffixes', '//input[@id="customize__dns_suffixes"]'),
     ]),
     ('Schedule',
      [
          ('schedule_type', web_ui.Radio('schedule__schedule_type')),
          ('provision_date', web_ui.Calendar('miq_date_1')),
          ('provision_start_hour',
           web_ui.Select('//select[@id="start_hour"]')),
          ('provision_start_min', web_ui.Select('//select[@id="start_min"]')),
          ('power_on', '//input[@id="schedule__vm_auto_start"]'),
          ('retirement',
           web_ui.Select('//select[@id="schedule__retirement"]')),
          ('retirement_warning',
           web_ui.Select('//select[@id="schedule__retirement_warn"]')),
      ])]))


def _all_catalogitems_add_new(context):
    catalog_item_tree.click_path('All Catalog Items')
    tb_select('Add a New Catalog Item')
Exemplo n.º 3
0
                ('resource_pool',
                 AngularSelect('environment__placement_rp_name')),
                ('folder',
                 AngularSelect('environment__placement_folder_name')),
                ('host_filter', AngularSelect('environment__host_filter')),
                ('host_name', ui.Table('//div[@id="prov_host_div"]/table')),
                ('datastore_create', '#environment__new_datastore_create'),
                ('datastore_filter', AngularSelect('environment__ds_filter')),
                ('datastore_name', ui.Table('//div[@id="prov_ds_div"]/table')),
            ]),
        ('Hardware', [
            ('num_sockets', AngularSelect('hardware__number_of_sockets')),
            ('cores_per_socket', AngularSelect('hardware__cores_per_socket')),
            ('num_cpus', AngularSelect('hardware__number_of_cpus')),
            ('memory', AngularSelect('hardware__vm_memory')),
            ('disk_format', ui.Radio('hardware__disk_format')),
            ('vm_limit_cpu', ui.Input('hardware__cpu_limit')),
            ('vm_limit_memory', ui.Input('hardware__memory_limit')),
            ('vm_reserve_cpu', ui.Input('hardware__cpu_reserve')),
            ('vm_reserve_memory', ui.Input('hardware__memory_reserve')),
        ]),

        # Infra
        ('Network', [
            ('vlan', AngularSelect('network__vlan')),
        ]),

        # Cloud
        (
            'Properties',
            [