当前位置: 首页>>代码示例>>Python>>正文


Python PoteenLogger.add_test_case方法代码示例

本文整理汇总了Python中engine.poteen.poteenLogger.PoteenLogger.add_test_case方法的典型用法代码示例。如果您正苦于以下问题:Python PoteenLogger.add_test_case方法的具体用法?Python PoteenLogger.add_test_case怎么用?Python PoteenLogger.add_test_case使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在engine.poteen.poteenLogger.PoteenLogger的用法示例。


在下文中一共展示了PoteenLogger.add_test_case方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_addition_node_compute_role

# 需要导入模块: from engine.poteen.poteenLogger import PoteenLogger [as 别名]
# 或者: from engine.poteen.poteenLogger.PoteenLogger import add_test_case [as 别名]
    def test_addition_node_compute_role(self):
        PoteenLogger.add_test_case(
            "Testing node addition to compute role")

        cluster_key = "cluster"
        cluster_name = "Test environment"

        logger.info(Main().navigate())
        logger.info(Cluster_BrowseView().remove_all())
        logger.info(Cluster_BrowseView().click_add_new_cluster(cluster_key))
        logger.info(CreateEnvironmentDialog().create_environment(
            {
                "name": "Test environment",
                "version": OPENSTACK_CURRENT_VERSION,
                "deployment_mode": Cluster.DEPLOYMENT_MODE_MULTI_NODE
            }
        ))
        logger.info(Cluster_BrowseView().select_by_key(cluster_key))
        logger.info(Cluster_Nodes_View().click_add_nodes())
        available_nodes_names = Cluster_Nodes_ListView()\
            .get_nodes_names_by_status('Discovered')
        logger.info(Cluster_Nodes_View().assign_roles_to_nodes(
            ['compute'], available_nodes_names[:1]
        ))
        logger.info(Cluster_Nodes_View().verify_amount('compute', 1))
开发者ID:Mirantis,项目名称:fuelweb-test,代码行数:27,代码来源:test_cluster_nodes.py

示例2: test_testing_deployment

# 需要导入模块: from engine.poteen.poteenLogger import PoteenLogger [as 别名]
# 或者: from engine.poteen.poteenLogger.PoteenLogger import add_test_case [as 别名]
    def test_testing_deployment(self):
        PoteenLogger.add_test_case(
            "Testing deployment")

        cluster_key = "cluster"

        logger.info(Main().navigate())
        logger.info(Cluster_BrowseView().remove_all())
        logger.info(Cluster_BrowseView().click_add_new_cluster(cluster_key))
        logger.info(CreateEnvironmentDialog().create_environment(
            {
                "name": "Test environment",
                "version": OPENSTACK_CURRENT_VERSION,
                "deployment_mode": Cluster.DEPLOYMENT_MODE_MULTI_NODE
            }
        ))
        logger.info(Cluster_BrowseView().select_by_key(cluster_key))
        logger.info(Cluster_Nodes_View().click_add_nodes())
        available_nodes_names = Cluster_Nodes_ListView()\
            .get_nodes_names_by_status('Discovered')
        logger.info(Cluster_Nodes_View().assign_roles_to_nodes(
            ['controller'], available_nodes_names[:1]
        ))
        logger.info(Cluster_View().click_deploy_changes())
        logger.info(DeployChangesDialog().deploy())
        logger.info(VerifyBot().verify_disabled(
            Cluster_Nodes_View().addNodes.get_element(),
            'true', "Add node button is disabled"))
        logger.info(VerifyBot().verify_disabled(
            Cluster_Nodes_View().deleteNodes.get_element(),
            'true', "Delete node button is disabled"))
        logger.info(Cluster_View().wait_deployment_done(
            DEFAULT_DEPLOYMENT_TIMEOUT_UI
        ))
开发者ID:Mirantis,项目名称:fuelweb-test,代码行数:36,代码来源:test_cluster_nodes.py

示例3: test_form

# 需要导入模块: from engine.poteen.poteenLogger import PoteenLogger [as 别名]
# 或者: from engine.poteen.poteenLogger.PoteenLogger import add_test_case [as 别名]
    def test_form(self):
        PoteenLogger.add_test_case(
            "Testing cluster page")

        cluster_key = "cluster"

        logger.info(Main().navigate())
        logger.info(Cluster_BrowseView().remove_all())
        logger.info(
            Cluster_BrowseView().click_add_new_cluster(cluster_key))
        logger.info(CreateEnvironmentDialog().create_environment(
            {
                "name": "Test environment",
                "version": OPENSTACK_CURRENT_VERSION,
                "deployment_mode": Cluster.DEPLOYMENT_MODE_MULTI_NODE
            }
        ))
        logger.info(Cluster_BrowseView().select_by_key(cluster_key))
        logger.info(VerifyBot().verify_visibility(
            Cluster_Nodes_View().addNodes.get_element(),
            True, "Add nodes button"))
        logger.info(VerifyBot().verify_disabled(
            Cluster_Nodes_View().deleteNodes.get_element(),
            'true', "Delete nodes button"))
        logger.info(VerifyBot().verify_visibility(
            Cluster_Nodes_View().environment_status.get_element(),
            True, "Environment status"))
        logger.info(VerifyBot().verify_disabled(
            Cluster_Nodes_View().groupBy.get_element(),
            'true', "Group by select"))
开发者ID:Mirantis,项目名称:fuelweb-test,代码行数:32,代码来源:test_cluster_nodes.py

示例4: test_can_not_add_offline_node

# 需要导入模块: from engine.poteen.poteenLogger import PoteenLogger [as 别名]
# 或者: from engine.poteen.poteenLogger.PoteenLogger import add_test_case [as 别名]
    def test_can_not_add_offline_node(self):
        PoteenLogger.add_test_case(
            "Can not add 'offline' node to environment")

        cluster_key = "cluster"

        logger.info(Main().navigate())
        logger.info(Cluster_BrowseView().remove_all())

        # create cluster
        logger.info(Cluster_BrowseView().click_add_new_cluster(cluster_key))
        logger.info(CreateEnvironmentDialog().create_environment(
            {
                "name": "Test environment",
                "version": OPENSTACK_CURRENT_VERSION,
                "deployment_mode": Cluster.DEPLOYMENT_MODE_MULTI_NODE
            }
        ))
        logger.info(Cluster_BrowseView().select_by_key(cluster_key))

        logger.info(Cluster_Nodes_View().click_add_nodes())
        logger.info(Cluster_Nodes_View().assign_roles_to_nodes(
            ['controller'], ["Supermicro X9SCD (offline)", "Supermicro X9DRW"]
        ))
        logger.info(Cluster_Nodes_View().verify_nodes(
            'controller', ["Supermicro X9DRW"]
        ))
        logger.info(Cluster_Nodes_View().verify_node_with_role_not_exists(
            'controller', "Supermicro X9SCD (offline)"
        ))
开发者ID:Mirantis,项目名称:fuelweb-test,代码行数:32,代码来源:test_delete_cluster.py

示例5: test_releases

# 需要导入模块: from engine.poteen.poteenLogger import PoteenLogger [as 别名]
# 或者: from engine.poteen.poteenLogger.PoteenLogger import add_test_case [as 别名]
    def test_releases(self):
        PoteenLogger.add_test_case(
            "Test releases page")

        logger.info(Main().navigate())
        logger.info(Main_Menu().releases.click())
        logger.info(Releases_Table().verify_releases_count(3))
        logger.info(Releases_Table().verify_release_status(
            RELEASE_GRIZZLY_CENTOS, "Active"))
        logger.info(Releases_Table().verify_release_status(
            RELEASE_GRIZZLY_UBUNTU, "Active"))
        if Releases_Table().verify_release_status(
                RELEASE_RHOS, "Not available").i_passed():
            logger.info(Releases_Table().click_configure(RELEASE_RHOS))
            logger.info(Configure_Release_Dialog().licence_rhn.click())
            logger.info(
                Configure_Release_Dialog().licence_rhn.verify_value(True))
            logger.info(
                Configure_Release_Dialog().verify_controls_presence("RHN")
            )
            logger.info(Configure_Release_Dialog().licence_rhsm.click())
            logger.info(
                Configure_Release_Dialog().licence_rhsm.verify_value(True))
            logger.info(
                Configure_Release_Dialog().verify_controls_presence("RHSM")
            )
            logger.info(Configure_Release_Dialog().populate(
                "rheltest", "password"))
            logger.info(Configure_Release_Dialog().apply())
            logger.info(Releases_Table().wait_downloading(RELEASE_RHOS))
            logger.info(Releases_Table().verify_release_status(
                RELEASE_RHOS, "Active"))
        else:
            logger.info(Releases_Table().verify_release_status(
                RELEASE_RHOS, "Active"))
开发者ID:Mirantis,项目名称:fuelweb-test,代码行数:37,代码来源:test_releases.py

示例6: test_deploy_no_ha_1_compute

# 需要导入模块: from engine.poteen.poteenLogger import PoteenLogger [as 别名]
# 或者: from engine.poteen.poteenLogger.PoteenLogger import add_test_case [as 别名]
    def test_deploy_no_ha_1_compute(self):
        PoteenLogger.add_test_case("Deploy without HA mode 1 compute")

        cluster_key = "cluster"
        cluster_name = "Test environment"

        logger.info(Main().navigate())
        logger.info(Cluster_BrowseView().remove_all())
        logger.info(Cluster_BrowseView().click_add_new_cluster(cluster_key))
        logger.info(
            CreateEnvironmentDialog().populate(name=cluster_name, version=OPENSTACK_CURRENT_VERSION, submit=True)
        )
        logger.info(Cluster_BrowseView().select_by_key(cluster_key))
        logger.info(Cluster_Nodes_View().select_environment_mode(deploymentMode=Cluster.DEPLOYMENT_MODE_MULTI_NODE))
        logger.info(Cluster_Nodes_View().click_add_compute())
        logger.info(Cluster_Nodes_ListView().select_nodes("Dell Inspiron"))
        logger.info(Cluster_Nodes_View().verify_compute_nodes("Dell Inspiron"))
        logger.info(Cluster_View().click_deploy_changes())
        logger.info(DeployChangesDialog().deploy())
        logger.info(Cluster_View().wait_deployment_done(DEFAULT_DEPLOYMENT_TIMEOUT))
        logger.info(
            Cluster_View().verify_success_message(
                "Deployment of environment {name} is done." " Access WebUI of OpenStack".format(name=cluster_name)
            )
        )
开发者ID:nikita-prikazchikov,项目名称:fuelweb-test,代码行数:27,代码来源:test_deployment_simple_mode.py

示例7: test_deploy_no_ha_1_compute

# 需要导入模块: from engine.poteen.poteenLogger import PoteenLogger [as 别名]
# 或者: from engine.poteen.poteenLogger.PoteenLogger import add_test_case [as 别名]
    def test_deploy_no_ha_1_compute(self):
        PoteenLogger.add_test_case(
            "Deploy without HA mode 1 compute")

        cluster_key = "cluster"

        logger.info(Main().navigate())
        logger.info(Cluster_BrowseView().remove_all())

        # create cluster
        logger.info(Cluster_BrowseView().click_add_new_cluster(cluster_key))
        logger.info(CreateEnvironmentDialog().create_environment(
            {
                "name": "Test environment",
                "version": OPENSTACK_CURRENT_VERSION,
                "deployment_mode": Cluster.DEPLOYMENT_MODE_MULTI_NODE
            }
        ))
        logger.info(Cluster_BrowseView().select_by_key(cluster_key))

        logger.info(Cluster_Nodes_View().click_add_nodes())
        logger.info(Cluster_Nodes_View().assign_roles_to_nodes(
            ['compute'], ["Dell Inspiron"]
        ))
        logger.info(Cluster_Nodes_View().verify_nodes(
            'compute', ["Dell Inspiron"]
        ))
        logger.info(Cluster_View().click_deploy_changes())
        logger.info(VerifyBot().verify_contains(
            'disabled', DeployChangesDialog().deploy_button().get_element()
            .get_attribute('class'), 'Deploy button'))
        logger.info(VerifyBot().verify_visibility(
            DeployChangesDialog().alert_message.get_element(),
            True, "Alert error message"))
开发者ID:Mirantis,项目名称:fuelweb-test,代码行数:36,代码来源:test_deployment_simple_mode.py

示例8: test_compute_disk

# 需要导入模块: from engine.poteen.poteenLogger import PoteenLogger [as 别名]
# 或者: from engine.poteen.poteenLogger.PoteenLogger import add_test_case [as 别名]
    def test_compute_disk(self):
        PoteenLogger.add_test_case(
            "Compute disk")

        cluster_key = "cluster"
        cluster_name = "Test compute disk"

        logger.info(Main().navigate())
        logger.info(Cluster_BrowseView().remove_all())

        # create cluster
        logger.info(Cluster_BrowseView().click_add_new_cluster(cluster_key))
        logger.info(CreateEnvironmentDialog().populate(
            name=cluster_name,
            version=OPENSTACK_CURRENT_VERSION,
            submit=True
        ))
        logger.info(Cluster_BrowseView().select_by_key(cluster_key))

        # add compute node
        logger.info(Cluster_Nodes_View().click_add_compute())
        available_nodes_names = Cluster_Nodes_ListView()\
            .get_nodes_names_by_status('Discovered')
        logger.info(Cluster_Nodes_ListView().select_nodes(
            available_nodes_names[-1]
        ))
        logger.info(Cluster_Nodes_View().verify_compute_nodes(
            available_nodes_names[-1]
        ))

        # navigate to disks configuration page
        logger.info(
            Cluster_Nodes_View().get_nodes_computes()[-1].click_hardware())
        logger.info(NodeHardwareDialog().click_disk_configuration())

        # verify default disks settings
        logger.info(ConfigureDisks().get_disk_box('sda').click_disk_map())
        logger.info(ConfigureDisks().get_disk_box(
            'sda').verify_volume_size_is_identical('Base System'))
        logger.info(ConfigureDisks().get_disk_box(
            'sda').verify_volume_size_is_identical('Virtual Storage'))
        logger.info(ConfigureDisks().get_disk_box(
            'sda').make_bootable.find().verify_attribute(
                'disabled', 'disabled'))

        logger.info(ConfigureDisks().get_disk_box('sdb').click_disk_map())
        logger.info(ConfigureDisks().get_disk_box(
            'sdb').verify_volume_size_is_identical('Virtual Storage'))
        logger.info(ConfigureDisks().get_disk_box(
            'sdb').make_bootable.find().verify_attribute('disabled', None))

        logger.info(ConfigureDisks().get_disk_box('sdc').click_disk_map())
        logger.info(ConfigureDisks().get_disk_box(
            'sdc').verify_volume_size_is_identical('Virtual Storage'))
        logger.info(ConfigureDisks().get_disk_box(
            'sdc').make_bootable.find().verify_attribute('disabled', None))
开发者ID:nikita-prikazchikov,项目名称:fuelweb-test,代码行数:58,代码来源:test_node_disk.py

示例9: deploy

# 需要导入模块: from engine.poteen.poteenLogger import PoteenLogger [as 别名]
# 或者: from engine.poteen.poteenLogger.PoteenLogger import add_test_case [as 别名]
    def deploy(self, controllers=0, computes=0):
        PoteenLogger.add_test_case(
            "Deploy in mode with HA ({controllers} controllers + "
            "{computes} compute nodes)".format(
                controllers=controllers, computes=computes))

        cluster_key = "cluster"
        cluster_name = "Test environment"

        logger.info(Main().navigate())
        logger.info(Cluster_BrowseView().remove_all())
        logger.info(Cluster_BrowseView().click_add_new_cluster(cluster_key))
        logger.info(CreateEnvironmentDialog().populate(
            name=cluster_name,
            version=OPENSTACK_CURRENT_VERSION,
            submit=True
        ))
        logger.info(Cluster_BrowseView().select_by_key(cluster_key))
        logger.info(Cluster_Nodes_View().select_environment_mode(
            deploymentMode=Cluster.DEPLOYMENT_MODE_MULTI_NODE_WITH_HA
        ))

        if controllers > 0:
            logger.info(Cluster_Nodes_View().click_add_controller())
            available_nodes_names = Cluster_Nodes_ListView()\
                .get_nodes_names_by_status('Discovered')
            logger.info(Cluster_Nodes_ListView().select_nodes(
                *available_nodes_names[:controllers]
            ))

        if computes > 0:
            logger.info(Cluster_Nodes_View().click_add_compute())
            logger.info(Cluster_Nodes_ListView().select_nodes(
                *available_nodes_names[controllers:controllers + computes]
            ))

        logger.info(Cluster_Nodes_View().verify_controller_nodes(
            *available_nodes_names[:controllers]
        ))
        logger.info(Cluster_Nodes_View().verify_compute_nodes(
            *available_nodes_names[controllers:controllers + computes]
        ))

        logger.info(Cluster_View().click_deploy_changes())
        logger.info(DeployChangesDialog().deploy())
        logger.info(Cluster_View().wait_deployment_done(
            DEFAULT_DEPLOYMENT_TIMEOUT
        ))
        logger.info(Cluster_View().verify_success_message(
            "Deployment of environment {name} is done."
            " Access WebUI of OpenStack"
            .format(name=cluster_name)
        ))
开发者ID:nikita-prikazchikov,项目名称:fuelweb-test,代码行数:55,代码来源:test_deployment_ha_mode.py

示例10: deploy

# 需要导入模块: from engine.poteen.poteenLogger import PoteenLogger [as 别名]
# 或者: from engine.poteen.poteenLogger.PoteenLogger import add_test_case [as 别名]
    def deploy(self, cluster_name, controllers=1, computes=0):
        PoteenLogger.add_test_case(
            "Deploy in mode with HA ({controllers} controllers + "
            "{computes} compute nodes)".format(
                controllers=controllers, computes=computes))

        cluster_key = "cluster"

        logger.info(Main().navigate())
        logger.info(Cluster_BrowseView().remove_all())

        # create cluster
        logger.info(Cluster_BrowseView().click_add_new_cluster(cluster_key))
        logger.info(CreateEnvironmentDialog().create_environment(
            {
                "name": "Test environment",
                "version": OPENSTACK_CURRENT_VERSION,
                "deployment_mode": Cluster.DEPLOYMENT_MODE_MULTI_NODE_WITH_HA
            }
        ))
        logger.info(Cluster_BrowseView().select_by_key(cluster_key))

        logger.info(Cluster_Nodes_View().click_add_nodes())
        available_nodes_names = Cluster_Nodes_ListView()\
            .get_nodes_names_by_status('Discovered')
        logger.info(Cluster_Nodes_View().assign_roles_to_nodes(
            ['controller'], available_nodes_names[:controllers]
        ))

        if computes > 0:
            logger.info(Cluster_Nodes_View().click_add_nodes())
            logger.info(Cluster_Nodes_View().assign_roles_to_nodes(
                ['compute'],
                available_nodes_names[controllers:controllers + computes]
            ))

        logger.info(Cluster_Nodes_View().verify_nodes(
            'controller', available_nodes_names[:controllers]
        ))
        if computes > 0:
            logger.info(Cluster_Nodes_View().verify_nodes(
                'compute',
                available_nodes_names[controllers:controllers + computes]
            ))

        logger.info(Cluster_View().click_deploy_changes())
        logger.info(DeployChangesDialog().deploy())
        logger.info(Cluster_View().wait_deployment_done(
            DEFAULT_DEPLOYMENT_TIMEOUT_UI
        ))
开发者ID:Mirantis,项目名称:fuelweb-test,代码行数:52,代码来源:test_deployment_ha_mode.py

示例11: test_deploy_HA_1_cinder

# 需要导入模块: from engine.poteen.poteenLogger import PoteenLogger [as 别名]
# 或者: from engine.poteen.poteenLogger.PoteenLogger import add_test_case [as 别名]
    def test_deploy_HA_1_cinder(self):
        PoteenLogger.add_test_case(
            "Deploy HA mode 3 controllers 1 compute 1 cinder")

        cluster_key = "cluster"
        cluster_name = "Test simple deployment"

        logger.info(Main().navigate())
        logger.info(Cluster_BrowseView().remove_all())

        # create cluster
        logger.info(Cluster_BrowseView().click_add_new_cluster(cluster_key))
        logger.info(CreateEnvironmentDialog().create_environment(
            {
                "name": cluster_name,
                "version": OPENSTACK_CURRENT_VERSION,
                "deployment_mode": Cluster.DEPLOYMENT_MODE_MULTI_NODE
            }
        ))
        logger.info(Cluster_BrowseView().select_by_key(cluster_key))

        logger.info(Cluster_Nodes_View().click_add_nodes())
        available_nodes_names = Cluster_Nodes_ListView()\
            .get_nodes_names_by_status('Discovered')
        logger.info(Cluster_Nodes_View().assign_roles_to_nodes(
            ['controller'], available_nodes_names[:3]
        ))
        logger.info(Cluster_Nodes_View().click_add_nodes())
        available_nodes_names = Cluster_Nodes_ListView()\
            .get_nodes_names_by_status('Discovered')
        logger.info(Cluster_Nodes_View().assign_roles_to_nodes(
            ['compute'], available_nodes_names[:1]
        ))
        logger.info(Cluster_Nodes_View().click_add_nodes())
        available_nodes_names = Cluster_Nodes_ListView()\
            .get_nodes_names_by_status('Discovered')
        logger.info(Cluster_Nodes_View().assign_roles_to_nodes(
            ['cinder'], available_nodes_names[:1]
        ))
        logger.info(Cluster_View().click_deploy_changes())
        logger.info(DeployChangesDialog().deploy())
        logger.info(Cluster_View().wait_deployment_done(
            DEFAULT_DEPLOYMENT_TIMEOUT_UI
        ))
        logger.info(
            Cluster_View().verify_successful_deployment_per_name(cluster_name)
        )
        logger.info(Cluster_Nodes_ListView().verify_amount_nodes_in_status(
            "Ready", 5))
开发者ID:Mirantis,项目名称:fuelweb-test,代码行数:51,代码来源:test_deployment_with_cinder.py

示例12: test_deploy_concurrent_deployment_3_environments

# 需要导入模块: from engine.poteen.poteenLogger import PoteenLogger [as 别名]
# 或者: from engine.poteen.poteenLogger.PoteenLogger import add_test_case [as 别名]
    def test_deploy_concurrent_deployment_3_environments(self):
        PoteenLogger.add_test_case("Concurrent simple deployment 3 environments")

        clusters = {
            "cluster1": {"name": "Test environment 1", "controllers": ["VirtualBox"], "computes": ["Supermicro X9DRW"]},
            "cluster2": {"name": "Test environment 2", "controllers": ["Supermicro X9SCD"], "computes": ["KVM"]},
            "cluster3": {
                "name": "Test environment 3",
                "controllers": ["Dell Inspiron"],
                "computes": ["Supermicro X9DRW (srv07)"],
            },
        }

        logger.info(Main().navigate())
        logger.info(Cluster_BrowseView().remove_all())

        for cluster_key, cluster_info in clusters.iteritems():
            logger.info(Main().navigate())
            logger.info(Cluster_BrowseView().click_add_new_cluster(cluster_key))
            logger.info(
                CreateEnvironmentDialog().populate(
                    name=cluster_info["name"], version=OPENSTACK_CURRENT_VERSION, submit=True
                )
            )
            logger.info(Cluster_BrowseView().select_by_key(cluster_key))
            logger.info(Cluster_Nodes_View().select_environment_mode(deploymentMode=Cluster.DEPLOYMENT_MODE_MULTI_NODE))
            logger.info(Cluster_Nodes_View().click_add_controller())
            logger.info(Cluster_Nodes_ListView().select_nodes(*cluster_info["controllers"]))
            logger.info(Cluster_Nodes_View().click_add_compute())
            logger.info(Cluster_Nodes_ListView().select_nodes(*cluster_info["computes"]))
            logger.info(Cluster_Nodes_View().verify_controller_nodes(*cluster_info["controllers"]))
            logger.info(Cluster_Nodes_View().verify_compute_nodes(*cluster_info["computes"]))

        for cluster_key, cluster_info in clusters.iteritems():
            logger.info(Main().navigate())
            logger.info(Cluster_BrowseView().select_by_key(cluster_key))
            logger.info(Cluster_View().click_deploy_changes())
            logger.info(DeployChangesDialog().deploy())

        for cluster_key, cluster_info in clusters.iteritems():
            logger.info(Main().navigate())
            logger.info(Cluster_BrowseView().select_by_key(cluster_key))
            logger.info(Cluster_View().wait_deployment_done(DEFAULT_DEPLOYMENT_TIMEOUT))
            logger.info(
                Cluster_View().verify_success_message(
                    "Deployment of environment {name} is done."
                    " Access WebUI of OpenStack".format(name=cluster_info["name"])
                )
            )
开发者ID:nikita-prikazchikov,项目名称:fuelweb-test,代码行数:51,代码来源:test_deployment_simple_mode.py

示例13: test_delete_cluster_after_successful_deployment

# 需要导入模块: from engine.poteen.poteenLogger import PoteenLogger [as 别名]
# 或者: from engine.poteen.poteenLogger.PoteenLogger import add_test_case [as 别名]
    def test_delete_cluster_after_successful_deployment(self):
        PoteenLogger.add_test_case(
            "Delete cluster after successful deployment")

        cluster_key = "cluster"
        cluster_name = "Test environment"

        logger.info(Main().navigate())
        logger.info(Cluster_BrowseView().remove_all())

        # create cluster
        logger.info(Cluster_BrowseView().click_add_new_cluster(cluster_key))
        logger.info(CreateEnvironmentDialog().create_environment(
            {
                "name": cluster_name,
                "version": OPENSTACK_CURRENT_VERSION,
                "deployment_mode": Cluster.DEPLOYMENT_MODE_MULTI_NODE
            }
        ))
        logger.info(Cluster_BrowseView().select_by_key(cluster_key))

        logger.info(Cluster_Nodes_View().click_add_nodes())
        logger.info(Cluster_Nodes_View().assign_roles_to_nodes(
            ['controller'], ["Supermicro X9DRW"]
        ))
        logger.info(Cluster_Nodes_View().click_add_nodes())
        logger.info(Cluster_Nodes_View().assign_roles_to_nodes(
            ['compute'], ["Dell Inspiron"]
        ))
        logger.info(Cluster_Nodes_View().verify_nodes(
            'controller', ["Supermicro X9DRW"]
        ))
        logger.info(Cluster_Nodes_View().verify_nodes(
            'compute', ["Dell Inspiron"]
        ))
        logger.info(Cluster_View().click_deploy_changes())
        logger.info(DeployChangesDialog().deploy())
        logger.info(Cluster_View().wait_deployment_done(
            DEFAULT_DEPLOYMENT_TIMEOUT_UI
        ))
        logger.info(
            Cluster_View().verify_successful_deployment_per_name(cluster_name)
        )

        logger.info(Main().navigate())
        logger.info(Cluster_BrowseView().remove("Test environment"))
        logger.info(Cluster_BrowseView().verify_clusters_amount(0))
开发者ID:Mirantis,项目名称:fuelweb-test,代码行数:49,代码来源:test_delete_cluster.py

示例14: test_form_creation_with_grizzly

# 需要导入模块: from engine.poteen.poteenLogger import PoteenLogger [as 别名]
# 或者: from engine.poteen.poteenLogger.PoteenLogger import add_test_case [as 别名]
    def test_form_creation_with_grizzly(self):
        PoteenLogger.add_test_case(
            "Check creation page with grizzly")

        cluster_key = "cluster"

        logger.info(Main().navigate())
        logger.info(Cluster_BrowseView().remove_all())
        logger.info(Cluster_BrowseView().click_add_new_cluster(cluster_key))
        logger.info(
            CreateEnvironmentDialog().name.set_value("Test environment"))
        logger.info(WaitBot().wait_loading())
        logger.info(
            CreateEnvironmentDialog().version.set_value(OPENSTACK_GRIZZLY))
        logger.info(CreateEnvironmentDialog().name.click())
        WaitBot().wait_for_stop_resizing(
            By.XPATH, CreateEnvironmentDialog().XPATH_DIALOG)
        logger.info(VerifyBot().verify_visibility(
            CreateEnvironmentDialog().instruction.get_element(),
            False, "Instruction for RHOS"))
        logger.info(CreateEnvironmentDialog().verify_release_description(
            "OpenStack Grizzly packages using CentOS as a base operating "
            "system"))
        logger.info(
            CreateEnvironmentDialog().version.set_value(OPENSTACK_RHOS))
        logger.info(CreateEnvironmentDialog().name.click())
        WaitBot().wait_for_stop_resizing(
            By.XPATH, CreateEnvironmentDialog().XPATH_DIALOG)
        logger.info(CreateEnvironmentDialog().verify_release_description(
            "Red Hat Enterprise Linux OpenStack Platform using RHEL as a base "
            "operating system"))
        if VerifyBot().is_element_displayed(
                CreateEnvironmentDialog().username):
            logger.info(VerifyBot().verify_visibility(
                CreateEnvironmentDialog().instruction.get_element(),
                True, "Instruction for RHOS"))
        logger.info(
            CreateEnvironmentDialog().version.set_value(OPENSTACK_GRIZZLY))
        logger.info(CreateEnvironmentDialog().name.click())
        WaitBot().wait_for_stop_resizing(
            By.XPATH, CreateEnvironmentDialog().XPATH_DIALOG)
        logger.info(CreateEnvironmentDialog().verify_release_description(
            "OpenStack Grizzly packages using CentOS as a base operating "
            "system"))
        logger.info(VerifyBot().verify_visibility(
            CreateEnvironmentDialog().instruction.get_element(),
            False, "Instruction for RHOS"))
开发者ID:Mirantis,项目名称:fuelweb-test,代码行数:49,代码来源:test_cluster_creation.py

示例15: test_form

# 需要导入模块: from engine.poteen.poteenLogger import PoteenLogger [as 别名]
# 或者: from engine.poteen.poteenLogger.PoteenLogger import add_test_case [as 别名]
    def test_form(self):
        PoteenLogger.add_test_case(
            "Check network settings page")

        cluster_key = "cluster"

        logger.info(Main().navigate())
        logger.info(Cluster_BrowseView().remove_all())

        # create cluster
        logger.info(Cluster_BrowseView().click_add_new_cluster(cluster_key))
        logger.info(CreateEnvironmentDialog().create_environment(
            {
                "name": "Test environment",
                "version": OPENSTACK_CURRENT_VERSION,
                "deployment_mode": Cluster.DEPLOYMENT_MODE_MULTI_NODE
            }
        ))
        logger.info(Cluster_BrowseView().select_by_key(cluster_key))

        logger.info(Cluster_View().click_network_settings_tab())
        logger.info(NetworkSettingsView().verify_flatDHCP_manager_value("on"))
        logger.info(NetworkSettingsView().verify_VLAN_manager_value("off"))
        logger.info(NetworkSettingsView().verify_amount_of_blocks(5))
        logger.info(VerifyBot().verify_disabled(
            NetworkSettingsView().cancel_changes.get_element(),
            'true', "Cancel changes button"))
        logger.info(VerifyBot().verify_disabled(
            NetworkSettingsView().save_settings.get_element(),
            'true', "Save settings button"))
        logger.info(VerifyBot().verify_disabled(
            NetworkSettingsView().verify_networks.get_element(),
            None, "Verify networks button"))
        default_value = NetworkSettingsView().vm_networks_cidr.get_value()
        logger.info(
            NetworkSettingsView().vm_networks_cidr.set_value("240.0.1.0/25"))
        logger.info(VerifyBot().verify_disabled(
            NetworkSettingsView().save_settings.get_element(),
            None, "Save settings button"))
        logger.info(
            NetworkSettingsView().vm_networks_cidr.set_value(default_value))
        logger.info(VerifyBot().verify_disabled(
            NetworkSettingsView().save_settings.get_element(),
            'true', "Save settings button"))
开发者ID:Mirantis,项目名称:fuelweb-test,代码行数:46,代码来源:test_cluster_network.py


注:本文中的engine.poteen.poteenLogger.PoteenLogger.add_test_case方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。