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


Python MiddlewareDeployment.deployments方法代码示例

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


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

示例1: test_list_provider_server_deployments

# 需要导入模块: from cfme.middleware.deployment import MiddlewareDeployment [as 别名]
# 或者: from cfme.middleware.deployment.MiddlewareDeployment import deployments [as 别名]
def test_list_provider_server_deployments(provider):
    """Tests deployments list from current Provider for each server
    between UI, DB and Management system

    Steps:
        * Get servers list from UI of provider
        * Get deployments list for the server
        * Get deployments list from UI of provider, server
        * Get deployments list from Database of provider, server
        * Get deployments list from Database of provider, server
        * Get deployments list from Management system(Hawkular) of server
        * Compare size of all the list [UI, Database, Management system]
    """
    servers = MiddlewareServer.servers(provider=provider)
    assert len(servers) > 0, "There is no server(s) available in UI"
    for server in get_random_list(servers, ITEMS_LIMIT):
        ui_deps = _get_deployments_set(
            MiddlewareDeployment.deployments(provider=provider, server=server))
        db_deps = _get_deployments_set(
            MiddlewareDeployment.deployments_in_db(provider=provider, server=server))
        mgmt_deps = _get_deployments_set(
            MiddlewareDeployment.deployments_in_mgmt(provider=provider, server=server))
        assert ui_deps == db_deps == mgmt_deps, \
            ("Lists of deployments mismatch! UI:{}, DB:{}, MGMT:{}"
             .format(ui_deps, db_deps, mgmt_deps))
开发者ID:chessbyte,项目名称:integration_tests,代码行数:27,代码来源:test_middleware_deployment.py

示例2: check_deployment_not_listed

# 需要导入模块: from cfme.middleware.deployment import MiddlewareDeployment [as 别名]
# 或者: from cfme.middleware.deployment.MiddlewareDeployment import deployments [as 别名]
def check_deployment_not_listed(provider, server, runtime_name):
    provider.refresh_provider_relationships(method='ui')
    wait_for(lambda: runtime_name not in
        get_deployments_statuses(
            MiddlewareDeployment.deployments(provider=provider, server=server)),
        delay=30, num_sec=1200,
        message='Deployment {} must not be found for server {}'
        .format(runtime_name, server.name))
开发者ID:RonnyPfannschmidt,项目名称:cfme_tests,代码行数:10,代码来源:deployment_methods.py

示例3: check_deployment_not_listed

# 需要导入模块: from cfme.middleware.deployment import MiddlewareDeployment [as 别名]
# 或者: from cfme.middleware.deployment.MiddlewareDeployment import deployments [as 别名]
def check_deployment_not_listed(provider, server, runtime_name):
    refresh(provider)
    wait_for(lambda: runtime_name not in
        get_deployments_statuses(
            MiddlewareDeployment.deployments(provider=provider, server=server)),
        delay=DELAY, num_sec=NUM_SECS,
        message='Deployment {} must not be found for server {}'
        .format(runtime_name, server.name),
        fail_func=lambda: refresh(provider))
开发者ID:hhovsepy,项目名称:cfme_tests,代码行数:11,代码来源:deployment_methods.py

示例4: check_deployment_appears

# 需要导入模块: from cfme.middleware.deployment import MiddlewareDeployment [as 别名]
# 或者: from cfme.middleware.deployment.MiddlewareDeployment import deployments [as 别名]
def check_deployment_appears(provider, server, runtime_name):
    provider.refresh_provider_relationships(method="ui")
    wait_for(
        lambda: runtime_name
        in get_deployments_statuses(MiddlewareDeployment.deployments(provider=provider, server=server)),
        delay=30,
        num_sec=1200,
        message="Deployment {} must be found for server {}".format(runtime_name, server.name),
    )
开发者ID:anewmanRH,项目名称:cfme_tests,代码行数:11,代码来源:test_middleware_deployment.py

示例5: check_deployment_enabled

# 需要导入模块: from cfme.middleware.deployment import MiddlewareDeployment [as 别名]
# 或者: from cfme.middleware.deployment.MiddlewareDeployment import deployments [as 别名]
def check_deployment_enabled(provider, server, runtime_name):
    check_deployment_appears(provider, server, runtime_name)
    provider.refresh_provider_relationships(method='ui')
    wait_for(lambda:
        get_deployments_statuses(
            MiddlewareDeployment.deployments(provider=provider,
                server=server))[runtime_name] == 'Enabled',
        delay=120, num_sec=1800,
        message='Deployment {} must be Enabled for server {}'
        .format(runtime_name, server.name))
开发者ID:RonnyPfannschmidt,项目名称:cfme_tests,代码行数:12,代码来源:deployment_methods.py

示例6: check_deployment_disabled

# 需要导入模块: from cfme.middleware.deployment import MiddlewareDeployment [as 别名]
# 或者: from cfme.middleware.deployment.MiddlewareDeployment import deployments [as 别名]
def check_deployment_disabled(provider, server, runtime_name):
    check_deployment_appears(provider, server, runtime_name)
    refresh(provider)
    wait_for(lambda:
        get_deployments_statuses(
            MiddlewareDeployment.deployments(provider=provider,
                server=server))[runtime_name] == 'Disabled',
        delay=DELAY, num_sec=NUM_SECS,
        message='Deployment {} must be Disabled for server {}'
        .format(runtime_name, server.name),
        fail_func=lambda: refresh(provider))
开发者ID:hhovsepy,项目名称:cfme_tests,代码行数:13,代码来源:deployment_methods.py

示例7: get_random_deployment

# 需要导入模块: from cfme.middleware.deployment import MiddlewareDeployment [as 别名]
# 或者: from cfme.middleware.deployment.MiddlewareDeployment import deployments [as 别名]
def get_random_deployment(provider, load_from="db"):
    load_from = load_from.lower()
    if load_from == "ui":
        deployments = MiddlewareDeployment.deployments(provider=provider)
    elif load_from == "db":
        deployments = MiddlewareDeployment.deployments_in_db(provider=provider)
    elif load_from == "mgmt":
        deployments = MiddlewareDeployment.deployments_in_mgmt(provider=provider)
    else:
        raise RuntimeError("Not supported option: '{}'".format(load_from))
    assert len(deployments) > 0, "There is no deployment(s) available in {}".format(load_from)
    return get_random_list(deployments, 1)[0]
开发者ID:ManageIQ,项目名称:integration_tests,代码行数:14,代码来源:random_methods.py

示例8: test_list_server_deployments

# 需要导入模块: from cfme.middleware.deployment import MiddlewareDeployment [as 别名]
# 或者: from cfme.middleware.deployment.MiddlewareDeployment import deployments [as 别名]
def test_list_server_deployments(provider):
    """Tests deployments list for Hawkular Local server

    Steps:
        * Get Hawkular Local server
        * Get deployments list from UI of server
        * Get deployments list from Database of server
        * Compares both lists [UI, Database]
    """
    server = get_server(provider, HAWKULAR_PRODUCT_NAME)
    ui_deps = get_deployments_set(MiddlewareDeployment.deployments(server=server))
    db_deps = get_deployments_set(MiddlewareDeployment.deployments_in_db(server=server))
    assert ui_deps == db_deps, "Lists of deployments mismatch! UI:{}, DB:{}".format(ui_deps, db_deps)
开发者ID:anewmanRH,项目名称:cfme_tests,代码行数:15,代码来源:test_middleware_deployment.py

示例9: test_list_deployments

# 需要导入模块: from cfme.middleware.deployment import MiddlewareDeployment [as 别名]
# 或者: from cfme.middleware.deployment.MiddlewareDeployment import deployments [as 别名]
def test_list_deployments():
    """Tests deployments list between UI, DB and management system

    Steps:
        * Get deployments list from UI
        * Get deployments list from Database
        * Compare size of all the list [UI, Database, Management system]
    """
    ui_deps = _get_deployments_set(MiddlewareDeployment.deployments())
    db_deps = _get_deployments_set(MiddlewareDeployment.deployments_in_db())
    mgmt_deps = _get_deployments_set(MiddlewareDeployment.deployments_in_mgmt())
    assert ui_deps == db_deps == mgmt_deps, \
        ("Lists of deployments mismatch! UI:{}, DB:{}, MGMT:{}".format(ui_deps, db_deps, mgmt_deps))
开发者ID:chessbyte,项目名称:integration_tests,代码行数:15,代码来源:test_middleware_deployment.py

示例10: test_list_provider_deployments

# 需要导入模块: from cfme.middleware.deployment import MiddlewareDeployment [as 别名]
# 或者: from cfme.middleware.deployment.MiddlewareDeployment import deployments [as 别名]
def test_list_provider_deployments(provider):
    """Tests deployments list from current Provider between UI, DB and Management system

    Steps:
        * Get deployments list from UI of provider
        * Get deployments list from Database of provider
        * Get deployments list from Management system(Hawkular)
        * Compare size of all the list [UI, Database, Management system]
    """
    ui_deps = _get_deployments_set(MiddlewareDeployment.deployments(provider=provider))
    db_deps = _get_deployments_set(MiddlewareDeployment.deployments_in_db(provider=provider))
    mgmt_deps = _get_deployments_set(MiddlewareDeployment.deployments_in_mgmt(provider=provider))
    assert ui_deps == db_deps == mgmt_deps, \
        ("Lists of deployments mismatch! UI:{}, DB:{}, MGMT:{}".format(ui_deps, db_deps, mgmt_deps))
开发者ID:chessbyte,项目名称:integration_tests,代码行数:16,代码来源:test_middleware_deployment.py

示例11: test_deployment

# 需要导入模块: from cfme.middleware.deployment import MiddlewareDeployment [as 别名]
# 或者: from cfme.middleware.deployment.MiddlewareDeployment import deployments [as 别名]
def test_deployment(provider):
    """Tests deployment details on UI

    Steps:
        * Get deployments list from UI
        * Select up to `ITEMS_LIMIT` deployments randomly
        * Compare selected deployment details with CFME database
    """
    ui_deps = MiddlewareDeployment.deployments(provider=provider, server=get_server(provider, HAWKULAR_PRODUCT_NAME))
    assert len(ui_deps) > 0, "There is no deployment(s) available in UI"
    for dep_ui in get_random_list(ui_deps, ITEMS_LIMIT):
        dep_db = dep_ui.deployment(method="db")
        assert dep_ui.name == dep_db.name, "deployment name does not match between UI and DB"
        assert dep_ui.server.name == dep_db.server.name, "deployment server name does not match between UI and DB"
        dep_ui.validate_properties()
开发者ID:anewmanRH,项目名称:cfme_tests,代码行数:17,代码来源:test_middleware_deployment.py

示例12: test_list_server_deployments

# 需要导入模块: from cfme.middleware.deployment import MiddlewareDeployment [as 别名]
# 或者: from cfme.middleware.deployment.MiddlewareDeployment import deployments [as 别名]
def test_list_server_deployments():
    """Gets servers list and tests deployments list for each server

    Steps:
        * Get servers list from UI
        * Get deployments list from UI of server
        * Get deployments list from Database of server
        * Compare size of all the list [UI, Database]
    """
    servers = MiddlewareServer.servers()
    assert len(servers) > 0, "There is no server(s) available in UI"
    for server in get_random_list(servers, ITEMS_LIMIT):
        ui_deps = _get_deployments_set(MiddlewareDeployment.deployments(server=server))
        db_deps = _get_deployments_set(MiddlewareDeployment.deployments_in_db(server=server))
        assert ui_deps == db_deps, \
            ("Lists of deployments mismatch! UI:{}, DB:{}".format(ui_deps, db_deps))
开发者ID:chessbyte,项目名称:integration_tests,代码行数:18,代码来源:test_middleware_deployment.py

示例13: test_list_deployments

# 需要导入模块: from cfme.middleware.deployment import MiddlewareDeployment [as 别名]
# 或者: from cfme.middleware.deployment.MiddlewareDeployment import deployments [as 别名]
def test_list_deployments(provider):
    """Tests deployments list between UI, DB and management system

    Steps:
        * Get deployments list from UI for whole Middleware
        * Get deployments list from Database for whole Middleware
        * Get deployments list from Management system  for whole Middleware
        * Verifies that UI list contains all DB entities
        * Verifies that UI list contains all MGMT entities
    """
    ui_deps = get_deployments_set(MiddlewareDeployment.deployments())
    db_deps = get_deployments_set(MiddlewareDeployment.deployments_in_db())
    mgmt_deps = get_deployments_set(MiddlewareDeployment.deployments_in_mgmt())
    assert ui_deps == db_deps, \
        ("Lists of deployments in UI does not contain the list in DB! UI:{}, DB:{}"
         .format(ui_deps, db_deps))
    assert ui_deps == mgmt_deps, \
        ("Lists of deployments in MGMT does not contain the list in DB! UI:{}, MGMT:{}"
         .format(ui_deps, mgmt_deps))
开发者ID:RonnyPfannschmidt,项目名称:cfme_tests,代码行数:21,代码来源:test_middleware_deployment.py

示例14: test_list_provider_deployments

# 需要导入模块: from cfme.middleware.deployment import MiddlewareDeployment [as 别名]
# 或者: from cfme.middleware.deployment.MiddlewareDeployment import deployments [as 别名]
def test_list_provider_deployments(provider):
    """Tests deployments list from current Provider between UI, DB and Management system

    Steps:
        * Get deployments list from UI of provider
        * Get deployments list from Database  of provider
        * Get deployments list from Management system(Hawkular) of provider
        * Verifies that UI list contains all DB entities
        * Verifies that UI list contains all MGMT entities
    """
    ui_deps = get_deployments_set(MiddlewareDeployment.deployments(provider=provider))
    db_deps = get_deployments_set(MiddlewareDeployment.deployments_in_db(provider=provider))
    mgmt_deps = get_deployments_set(MiddlewareDeployment.deployments_in_mgmt(provider=provider))
    assert ui_deps == db_deps, "Lists of deployments in UI does not contain the list in DB! UI:{}, DB:{}".format(
        ui_deps, db_deps
    )
    assert ui_deps == mgmt_deps, "Lists of deployments in MGMT does not contain the list in DB! UI:{}, MGMT:{}".format(
        ui_deps, mgmt_deps
    )
开发者ID:rananda,项目名称:cfme_tests,代码行数:21,代码来源:test_middleware_deployment.py

示例15: test_list_deployments

# 需要导入模块: from cfme.middleware.deployment import MiddlewareDeployment [as 别名]
# 或者: from cfme.middleware.deployment.MiddlewareDeployment import deployments [as 别名]
def test_list_deployments(provider):
    """Tests deployments list between UI, DB and management system

    Steps:
        * Get deployments list from UI for whole Middleware
        * Get deployments list from Database for Hawkular Local server
        * Get deployments list from Management system for Hawkular Local server
        * Verifies that UI list contains all DB entities
        * Verifies that UI list contains all MGMT entities
    """
    server = get_server(provider, HAWKULAR_PRODUCT_NAME)
    ui_deps = get_deployments_set(MiddlewareDeployment.deployments())
    db_deps = get_deployments_set(MiddlewareDeployment.deployments_in_db(provider=provider, server=server))
    mgmt_deps = get_deployments_set(MiddlewareDeployment.deployments_in_mgmt(provider=provider, server=server))
    assert ui_deps >= db_deps, "Lists of deployments in UI does not contain the list in DB! UI:{}, DB:{}".format(
        ui_deps, db_deps
    )
    assert ui_deps >= mgmt_deps, "Lists of deployments in MGMT does not contain the list in DB! UI:{}, MGMT:{}".format(
        ui_deps, mgmt_deps
    )
开发者ID:anewmanRH,项目名称:cfme_tests,代码行数:22,代码来源:test_middleware_deployment.py


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