Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(91)  |  Call(91)  |  Derive(0)  |  Import(0)

src/f/u/fuel-main-HEAD/fuelweb_ui_test/tests/test_networks.py   fuel-main(Download)
    def _test_ranges_plus_icon(self, network):
        with getattr(Networks(), network) as n:
            n.ip_ranges[0].icon_plus.click()
            self.assertEqual(len(n.ip_ranges), 2, 'Plus icon. row 1')
            n.ip_ranges[1].icon_plus.click()
            self.assertEqual(len(n.ip_ranges), 3, 'Plus icon. row 2')
            n.ip_ranges[1].start.send_keys(RANGES[0][0])
            n.ip_ranges[1].end.send_keys(RANGES[0][1])
            n.ip_ranges[0].icon_plus.click()
            self.assertEqual(len(n.ip_ranges), 4, 'Plus icon. row 1')
            n.ip_ranges[0].icon_plus.click()
            self.assertEqual(len(n.ip_ranges), 4, 'Plus icon. row 1')
            self.assertEqual(n.ip_ranges[1].start.get_attribute('value'), '')
            self.assertEqual(n.ip_ranges[1].end.get_attribute('value'), '')
            self.assertEqual(n.ip_ranges[2].start.get_attribute('value'),

src/f/u/fuel-main-HEAD/fuelweb_ui_test/tests/test_adding_nodes.py   fuel-main(Download)
        def test_popup(node):
            node.details.click()
            with NodeInfo() as details:
                self.assertEqual(
                    node.name.text, details.header.text,
                'name_input')
            self.assertEqual(
                old_name, n.nodes_discovered[0].name.text,
                'Node has old name')
            n.nodes_discovered[0].name.click()
            n.nodes_discovered[0].name_input.send_keys(name)
            n.nodes_discovered[0].name_input.send_keys(Keys.ENTER)
            time.sleep(2)
        self.assertEqual(
            name, Nodes().nodes_discovered[0].name.text,
        with Nodes() as n:
            self.assertTrue(n.env_name.is_displayed())
            self.assertEqual(len(n.nodes), 1, 'Nodes amount')
            self.assertEqual(n.nodes[0].name.text, name, 'Node name')
            self.assertIn(ROLE_CONTROLLER, n.nodes[0].roles.text, 'Node role')

src/f/u/fuel-main-HEAD/fuelweb_ui_test/tests/test_configure_networks.py   fuel-main(Download)
            s.bond_interfaces.click()
            s.cancel_changes.click()
            self.assertEqual(len(s.interfaces), 3, 'Interfaces amount')
 
    def test_load_default_bonding(self):
            s.apply.click()
            time.sleep(2)
            self.assertEqual(len(s.interfaces), 2, 'Interfaces amount not 2')
            PageObject.click_element(s, 'load_defaults')
            PageObject.wait_until_exists(s.interfaces[0].bond_mode)
            self.assertEqual(len(s.interfaces), 3, 'Interfaces amount not 3')
            s.interfaces[0].interface_checkbox.click()
            s.unbond_interfaces.click()
            self.assertEqual(len(s.interfaces), 3, 'Interfaces amount not 3')
 
    def test_bond_mode(self):
            s.bond_interfaces.click()
            s.interfaces[0].select_mode.select_by_visible_text('Balance SLB')
            self.assertEqual(s.interfaces[0].select_mode.
                             first_selected_option.text,
                             'Balance SLB', 'Text is Balance SLB')

src/f/u/fuel-main-HEAD/fuelweb_ui_test/tests/test_env_settings.py   fuel-main(Download)
        self.refresh()
        with Settings() as s:
            self.assertEqual(getattr(s, text_field).get_attribute('value'),
                             value)
            s.load_defaults.click()
            time.sleep(1)
            self.assertEqual(
                getattr(s, text_field).get_attribute('value'), def_value,
        with Settings() as s:
            self.assertEqual(
                getattr(s, tumbler_field).
                find_element_by_tag_name('input').is_selected(), not def_value)
            s.load_defaults.click()
            time.sleep(1)
            self.assertEqual(
                getattr(s, tumbler_field).

src/f/u/fuel-main-HEAD/fuelweb_ui_test/tests/test_releases.py   fuel-main(Download)
        with Releases() as r:
            self.assertEqual(
                'Active', r.dict[OPENSTACK_CENTOS].status.text,
                'CentOS status is active')
 
        with Releases() as r:
            self.assertEqual(
                'Active', r.dict[OPENSTACK_UBUNTU].status.text,
                'Ubuntu status is active')
 
        with Releases() as r:
            self.assertEqual(
                'Not available', r.dict[OPENSTACK_REDHAT].status.text,
                'RHOS status is Not available')
 
                r.dict[OPENSTACK_REDHAT].download_progress, timeout=20)
            self.assertEqual(
                'Active', r.dict[OPENSTACK_REDHAT].status.text,
                'RHOS status is active')
 
                r.dict[OPENSTACK_REDHAT].download_progress, timeout=20)
            self.assertEqual(
                'Active', r.dict[OPENSTACK_REDHAT].status.text,
                'RHOS status is active')
 

src/f/u/fuel-main-HEAD/fuelweb_ui_test/tests/test_configure_disks.py   fuel-main(Download)
                'Image volume has been removed')
            self.assertEqual(
                '0',
                s.disks[0].volume_group_image.input.get_attribute('value'),
                'image volume size is 0')
            s.disks[1].volume_group_os.use_all.click()
            self.assertEqual(
                unallocated, s.disks[1].volume_os.size.text,
                'Base system uses all allowed space'
            )
            s.disks[1].volume_os.close_cross.click()
 
            s.disks[1].volume_group_image.use_all.click()
            self.assertEqual(
                unallocated, s.disks[1].volume_image.size.text,
                cur = s.disks[0].volume_image.size.text
                self.assertEqual(
                    exp, cur,
                    'Volume size. exp: {0} ({1}), cur {2}'.format(exp, v, cur))
 
            time.sleep(2)
            self.assertEqual(
                "{:,}".format(value),
                s.disks[0].volume_group_image.input.get_attribute('value'),
                'New value has been saved'

src/f/u/fuel-main-HEAD/fuelweb_ui_test/tests/test_support.py   fuel-main(Download)
                'key=(?P<key>.*)',
                s.register_fuel.get_attribute('href')).group('key')
            self.assertEqual(216, len(key), 'Key not empty')
 
            s.register_fuel.click()
        Support().view_capacity_audit.click()
        self.assertEqual(
            'Home/ Support/ Capacity',
            Header().breadcrumb.text,
            'Breadcrumb text'

src/f/u/fuel-main-HEAD/fuelweb_ui_test/tests/test_environment_actions.py   fuel-main(Download)
            time.sleep(1)
        Tabs().nodes.click()
        self.assertEqual(value, Nodes().env_name.text,
                         'Environment has been renamed')
 
            time.sleep(1)
        self.assertEqual(
            0, len(Environments().create_cluster_boxes),
            'Environment has been deleted')
 
        for node in Nodes().nodes:
            self.assertEqual(
                'pending addition', node.status.text.lower(),
                'Node status is Pending Addition')
        self.assertTrue(Nodes().deploy_changes.is_enabled())
        for node in Nodes().nodes:
            self.assertEqual(
                'ready', node.status.text.lower(),
                'Node status is Ready')
        Actions().verify_disabled_deploy
        for node in Nodes().nodes:
            self.assertEqual(
                'pending addition', node.status.text.lower(),
                'Node status is Pending Addition')
        self.assertTrue(Nodes().deploy_changes.is_enabled())

src/f/u/fuel-main-HEAD/fuelweb_ui_test/tests/test_discard_changes.py   fuel-main(Download)
 
        time.sleep(2)
        self.assertEqual(3, len(Nodes().nodes), 'Nodes amount')
        for node in Nodes().nodes:
            self.assertEqual('ready', node.status.text.lower(),

src/f/u/fuel-main-HEAD/fuelweb_ui_test/tests/test_deploy.py   fuel-main(Download)
        for node in Nodes().nodes:
            self.assertEqual(
                'pending addition', node.status.text.lower(),
                'Node status is Pending Addition')
 
 
        with Nodes() as n:
            self.assertEqual(2, len(n.nodes), 'Nodes amount')
            for node in n.nodes:
                self.assertEqual('ready', node.status.text.lower(),
 
        self.assertEqual(
            'pending deletion', Nodes().nodes[1].status.text.lower(),
            'Node status is Pending Deletion')
 
 
        with Nodes() as n:
            self.assertEqual(1, len(n.nodes), 'Nodes amount')
            for node in n.nodes:
                self.assertEqual('ready', node.status.text.lower(),

  1 | 2  Next