• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python server_methods.get_eap_server函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中server_methods.get_eap_server函数的典型用法代码示例。如果您正苦于以下问题:Python get_eap_server函数的具体用法?Python get_eap_server怎么用?Python get_eap_server使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: test_create_delete_datasource

def test_create_delete_datasource(provider, datasource_params):
    """Tests datasource creation and deletion on EAP server
    Method is executed for all database types

    Steps:
        * Get servers list from UI
        * Chooses JBoss EAP server from list
        * Invokes 'Add Datasource' toolbar operation
        * Selects Datasource type.
        * Click Next.
        * Input Datasource Name.
        * Input Datasource JNDI Name.
        * Click Next.
        * Input Driver Name.
        * Input Module Name.
        * Input Driver Name.
        * Input Driver Class.
        * Click Next.
        * Input Database Connection URL.
        * Input Database username.
        * Input Database password.
        * Submits the form.
        * Checks if newly created datasource is listed. Selects it.
        * Deletes that Datasource via UI operation.
        * Checks whether resource is deleted.
    """
    server = get_eap_server(provider)
    server.add_datasource(datasource_params[0], datasource_params[1], datasource_params[2],
                          datasource_params[3], datasource_params[4], datasource_params[5],
                          datasource_params[6].replace("\\", ""),
                          datasource_params[7],
                          datasource_params[8])
开发者ID:jteehan,项目名称:cfme_tests,代码行数:32,代码来源:test_middleware_datasource.py


示例2: gen_undeploy_events

def gen_undeploy_events(provider):
    server = get_eap_server(provider)
    runtime_name = gen_deploy_events(provider)
    check_deployment_appears(provider, server, runtime_name)
    undeploy(provider, server, runtime_name)
    check_deployment_not_listed(provider, server, runtime_name)
    return runtime_name
开发者ID:jteehan,项目名称:cfme_tests,代码行数:7,代码来源:test_provider_timelines.py


示例3: test_disable_enable

def test_disable_enable(provider, archive_name):
    """Tests Starting of stopped archive into EAP7 server

    Steps:
        * Get servers list from UI
        * Chooses JBoss EAP server from list
        * Deploys some deployment archive into server.
        * Select that deployment from deployments list.
        * Performs "Disable" toolbar operation on it.
        * Refreshes the provider.
        * Lists all deployments on EAP server.
        * Verified the recently disabled archive's status is Disabled.
        * Selects that archive from the list to load details.
        * Verifies that properties of deplyment's summary page and the status is Disabled.
        * Performs "Enable" toolbar operation on it.
        * Refreshes the provider.
        * Lists all deployments on EAP server.
        * Verified the recently enabled archive's status is Enabled.
        * Selects that archive from the list to load details.
        * Verifies that properties of deplyment's summary page and the status is Enabled.
    """
    server = get_eap_server(provider)
    runtime_name = deploy(provider, server, archive_name)
    check_deployment_enabled(provider, server, runtime_name)
    deployment = get_deployment_from_list(provider, server, runtime_name)
    deployment.disable()
    check_deployment_disabled(provider, server, runtime_name)
    deployment = get_deployment_from_list(provider, server, runtime_name)
    deployment.validate_properties()
    deployment.enable()
    check_deployment_enabled(provider, server, runtime_name)
    deployment = get_deployment_from_list(provider, server, runtime_name)
    deployment.validate_properties()
开发者ID:jteehan,项目名称:cfme_tests,代码行数:33,代码来源:test_middleware_deployment.py


示例4: test_disable_upgrade_enable

def test_disable_upgrade_enable(provider):
    """Tests upgrading disabled archive into EAP7 server

    Steps:
        * Get servers list from UI
        * Chooses JBoss EAP server from list
        * Deploys some deployment archive into server.
        * Disable that archive.
        * Verified the recently disabled archive's status is Disabled.
        * Deploys newer version of the same deployment archive into server as Disabled.
        * Enables that archive.
        * Verified the recently enabled archive's status is Enabled.
        * Verify the content of new archive,
    """
    server = get_eap_server(provider)
    runtime_name = deploy(provider, server, RESOURCE_WAR_NAME)
    check_deployment_enabled(provider, server, runtime_name)
    check_deployment_content(provider, server, runtime_name.replace(WAR_EXT, ''),
                             RESOURCE_WAR_CONTENT)
    deployment = get_deployment_from_list(provider, server, runtime_name)
    deployment.disable()
    check_deployment_disabled(provider, server, runtime_name)
    deploy(provider, server, RESOURCE_WAR_NAME_NEW,
        runtime_name=runtime_name, enabled=False, overwrite=True)
    check_deployment_disabled(provider, server, runtime_name)
    check_no_deployment_content(provider, server, runtime_name.replace(WAR_EXT, ''))
    deployment.enable()
    check_deployment_enabled(provider, server, runtime_name)
    check_deployment_content(provider, server, runtime_name.replace(WAR_EXT, ''),
                             RESOURCE_WAR_CONTENT_NEW)
开发者ID:jteehan,项目名称:cfme_tests,代码行数:30,代码来源:test_middleware_deployment.py


示例5: test_create_datasource_select_driver

def test_create_datasource_select_driver(provider, datasource):
    """Tests datasource creation and deletion on EAP server
    Method is executed for all database types

    Steps:
        * Get servers list from UI
        * Chooses JBoss EAP server from list
        * Invokes 'Add JDBC Driver' toolbar operation
        * Fills all necessary fields and saves
        * Invokes 'Add Datasource' toolbar operation
        * Selects Datasource type.
        * Click Next.
        * Input Datasource Name.
        * Input Datasource JNDI Name.
        * Click Next.
        * Choose the tab "Existing Driver".
        * Select just created driver
        * Click Next.
        * Input Database Connection URL.
        * Input Database username.
        * Input Database password.
        * Submits the form.
        * Checks if newly created datasource is listed.
    """
    server = get_eap_server(provider)
    file_path = download_jdbc_driver(datasource.driver.database_name)
    deploy_jdbc_driver(provider, server, file_path,
                       driver_name=datasource.driver.driver_name,
                       module_name=datasource.driver.module_name,
                       driver_class=datasource.driver.driver_class,
                       xa_class=datasource.driver.xa_class,
                       major_version=datasource.driver.major_version,
                       minor_version=datasource.driver.minor_version)
    verify_server_running(provider, server)
    verify_driver_listed(provider, datasource, server)
开发者ID:hhovsepy,项目名称:cfme_tests,代码行数:35,代码来源:test_middleware_datasource.py


示例6: test_deploy_driver

def test_deploy_driver(provider, driver):
    """Tests Deployment of provided JDBC Driver into EAP7 server

    Steps:
        * Get servers list from UI
        * Chooses JBoss EAP server from list
        * Invokes 'Add JDBC Driver' toolbar operation
        * Selects JDBC driver file to upload.
        * Input Driver Name.
        * Input Module Name.
        * Input Driver Name.
        * Input Driver Class.
        * Input Major Version.
        * Input Minor Version.
        * Submits the form.
        * Checks that notification message is shown.
    """
    server = get_eap_server(provider)
    file_path = download_jdbc_driver(driver.database_name)
    deploy_jdbc_driver(provider, server, file_path,
                       driver_name=driver.driver_name,
                       module_name=driver.module_name,
                       driver_class=driver.driver_class,
                       xa_class=driver.xa_class,
                       major_version=driver.major_version,
                       minor_version=driver.minor_version)
开发者ID:dajohnso,项目名称:cfme_tests,代码行数:26,代码来源:test_middleware_drivers.py


示例7: gen_ds_creation_events

def gen_ds_creation_events(provider, datasource_params):
    server = get_eap_server(provider)
    ds_name = generate_ds_name(datasource_params[1])
    jndi_name = generate_ds_name(datasource_params[2])
    server.add_datasource(datasource_params[0], ds_name, jndi_name,
                          datasource_params[3], datasource_params[4], datasource_params[5],
                          datasource_params[6], datasource_params[7], datasource_params[8])
    return ds_name
开发者ID:jteehan,项目名称:cfme_tests,代码行数:8,代码来源:test_provider_timelines.py


示例8: gen_deploy_fail_events

def gen_deploy_fail_events(provider):
    server = get_eap_server(provider)
    file_path = get_resource_path(RESOURCE_EAR_NAME)
    runtime_name = generate_runtime_name(file_path)
    deploy_archive(provider, server, file_path, runtime_name)
    runtime_name2 = generate_runtime_name(file_path)
    deploy_archive(provider, server, file_path, runtime_name2, overwrite=True)
    return runtime_name
开发者ID:hhovsepy,项目名称:cfme_tests,代码行数:8,代码来源:test_provider_timelines.py


示例9: gen_deploy_fail_events

def gen_deploy_fail_events(provider):
    server = get_eap_server(provider)
    file_path = get_resource_path(RESOURCE_WAR_NAME)
    runtime_name = generate_runtime_name(file_path)
    deploy_archive(provider, server, file_path, runtime_name)
    check_deployment_appears(provider, server, runtime_name)
    with error.expected('Deployment "{}" already exists on this server.'
                     .format(runtime_name)):
            deploy_archive(provider, server, file_path, runtime_name)
    check_deployment_appears(provider, server, runtime_name)
    return runtime_name
开发者ID:jteehan,项目名称:cfme_tests,代码行数:11,代码来源:test_provider_timelines.py


示例10: test_create_delete_datasource

def test_create_delete_datasource(provider):
    """Tests datasource creation and deletion on EAP server

    Steps:
        * Get servers list from UI
        * Chooses JBoss EAP server from list
        * Invokes 'Add JDBC Driver' toolbar operation
        * Fills all necessary fields and saves
        * Invokes 'Add Datasource' toolbar operation
        * Selects Datasource type.
        * Click Next.
        * Input Datasource Name.
        * Input Datasource JNDI Name.
        * Click Next.
        * Input Driver Name.
        * Input Module Name.
        * Input Driver Name.
        * Input Driver Class.
        * Click Next.
        * Input Database Connection URL.
        * Input Database username.
        * Input Database password.
        * Submits the form.
        * Checks if newly created datasource is listed. Selects it.
        * Deletes that Datasource via UI operation.
        * Checks whether resource is deleted.
    """
    server = get_eap_server(provider)
    datasource = ORACLE_12C_DS
    file_path = download_jdbc_driver(datasource.driver.database_name)
    deploy_jdbc_driver(provider, server, file_path,
                       driver_name=datasource.driver.driver_name,
                       module_name=datasource.driver.module_name,
                       driver_class=datasource.driver.driver_class,
                       xa_class=datasource.driver.xa_class,
                       major_version=datasource.driver.major_version,
                       minor_version=datasource.driver.minor_version)
    server.add_datasource(ds_type=datasource.database_type,
                          ds_name=datasource.datasource_name,
                          jndi_name=datasource.jndi_name,
                          driver_name=datasource.driver.driver_name,
                          driver_module_name=datasource.driver.module_name,
                          driver_class=datasource.driver.driver_class,
                          ds_url=datasource.connection_url.replace("\\", ""),
                          username=datasource.username,
                          password=datasource.password)
    datasource_name = "Datasource [{}]".format(datasource.datasource_name)
    verify_datasource_listed(provider, datasource_name, server)
    """ @TODO enable when BZ#1460296 is fixed
开发者ID:dajohnso,项目名称:cfme_tests,代码行数:49,代码来源:test_middleware_datasource.py


示例11: test_server_jdr

def test_server_jdr(provider):
    """Tests EAP7 Standalone server's Generate JDR button.

    Steps:
        * Chooses EAP7 Standalone server.
        * Clicks on Generate JDR button.
        * Verifies that JDR report is queued.
        * Waits until JDR Report is generated.
    """
    server = get_eap_server(provider)
    verify_server_running(provider, server)
    before_test_date = datetime.utcnow()
    server.generate_jdr()
    jdr_rc = JDRReportCollection(parent=server)
    verify_report_ready(jdr_rc, date_after=before_test_date)
开发者ID:hhovsepy,项目名称:cfme_tests,代码行数:15,代码来源:test_jdr_report.py


示例12: test_create_xa_datasource

def test_create_xa_datasource(provider, datasource):
    """Tests XA datasource creation and deletion on EAP server
    Method is executed for all database types

    Steps:
        * Get servers list from UI
        * Chooses JBoss EAP server from list
        * Invokes 'Add JDBC Driver' toolbar operation
        * Fills all necessary fields and saves
        * Invokes 'Add Datasource' toolbar operation
        * Selects Datasource type.
        * Selects XA Datasource type.
        * Click Next.
        * Input Datasource Name.
        * Input Datasource JNDI Name.
        * Click Next.
        * Input Driver Name.
        * Input Module Name.
        * Input Driver Name.
        * Input Driver Class.
        * Click Next.
        * Input Database Connection URL.
        * Input Database username.
        * Input Database password.
        * Submits the form.
        * Checks if newly created datasource is listed.
    """
    server = get_eap_server(provider)
    file_path = download_jdbc_driver(datasource.driver.database_name)
    deploy_jdbc_driver(provider, server, file_path,
                       driver_name=datasource.driver.driver_name,
                       module_name=datasource.driver.module_name,
                       driver_class=datasource.driver.driver_class,
                       xa_class=datasource.driver.xa_class,
                       major_version=datasource.driver.major_version,
                       minor_version=datasource.driver.minor_version)
    server.add_datasource(ds_type='{} XA'.format(datasource.database_type),
                          ds_name='{}XA'.format(datasource.datasource_name),
                          jndi_name='{}XA'.format(datasource.jndi_name),
                          xa_ds=True,
                          driver_name=datasource.driver.driver_name,
                          driver_module_name=datasource.driver.module_name,
                          driver_class=datasource.driver.xa_class,
                          ds_url=datasource.connection_url.replace("\\", ""),
                          username=datasource.username,
                          password=datasource.password)
    datasource_name = "XA Datasource [{}XA]".format(datasource.datasource_name)
    verify_datasource_listed(provider, datasource_name, server)
开发者ID:dajohnso,项目名称:cfme_tests,代码行数:48,代码来源:test_middleware_datasource.py


示例13: test_redeploy_fail

def test_redeploy_fail(provider):
    """Tests Redeployment of already deployed archive into EAP7 server

    Steps:
        * Get servers list from UI
        * Chooses JBoss EAP server from list
        * Deploys some deployment archive into server.
        * Refreshes the provider.
        * Lists all deployments on EAP server.
        * Verified the recently deployed archive's status is Enabled.
        * Deploys newer version of the same deployment archive into server.
        * Verify that exception is shown that archive already exists.
    """
    server = get_eap_server(provider)
    runtime_name = deploy(provider, server, RESOURCE_WAR_NAME)
    check_deployment_enabled(provider, server, runtime_name)
    with error.expected('Deployment "{}" already exists on this server.'.format(runtime_name)):
        deploy(provider, server, RESOURCE_WAR_NAME_NEW, runtime_name=runtime_name)
开发者ID:jteehan,项目名称:cfme_tests,代码行数:18,代码来源:test_middleware_deployment.py


示例14: test_undeploy

def test_undeploy(provider, archive_name):
    """Tests Undeployment of archive from EAP7 server

    Steps:
        * Get servers list from UI
        * Chooses JBoss EAP server from list
        * Deploys some deployment archive into server.
        * Select that deployment from deployments list.
        * Performs "Undeploy" toolbar operation on it.
        * Refreshes the provider.
        * Lists all deployments on EAP server.
        * Verified the recently undeployed archive is not listed anymore.
    """
    server = get_eap_server(provider)
    runtime_name = deploy(provider, server, archive_name)
    check_deployment_enabled(provider, server, runtime_name)
    deployment = get_deployment_from_list(provider, server, runtime_name)
    deployment.undeploy()
    check_deployment_not_listed(provider, server, runtime_name)
开发者ID:jteehan,项目名称:cfme_tests,代码行数:19,代码来源:test_middleware_deployment.py


示例15: test_deploy

def test_deploy(provider, archive_name):
    """Tests Deployment of provided archive into EAP7 server

    Steps:
        * Get servers list from UI
        * Chooses JBoss EAP server from list
        * Invokes 'Add Deployment' toolbar operation
        * Selects "war" file to upload.
        * Chose random Runtime Name.
        * Checks that notification message is shown.
        * Refreshes the provider.
        * Verifies that deployment is shown in list and is Enabled.
        * Selects deployment to show the details.
        * Verified details properties.
    """
    server = get_eap_server(provider)
    runtime_name = deploy(provider, server, archive_name)
    check_deployment_enabled(provider, server, runtime_name)
    deployment = get_deployment_from_list(provider, server, runtime_name)
    deployment.validate_properties()
开发者ID:jteehan,项目名称:cfme_tests,代码行数:20,代码来源:test_middleware_deployment.py


示例16: test_redeploy_disable_enabled

def test_redeploy_disable_enabled(provider):
    """Tests force Redeployment and disabling of already deployed and enabled archive into EAP7 server

    Steps:
        * Get servers list from UI
        * Chooses JBoss EAP server from list
        * Deploys some deployment archive into server as Enabled.
        * Refreshes the provider.
        * Lists all deployments on EAP server.
        * Verified the recently deployed archive's status is Enabled.
        * Deploys newer version of the same deployment archive into server as Disabled,
          check to overwrite existing deployment.
        * Refreshes the provider.
        * Lists all deployments on EAP server.
        * Verified the recently deployed archive's status is Disabled.
    """
    server = get_eap_server(provider)
    runtime_name = deploy(provider, server, RESOURCE_WAR_NAME, enabled=True)
    check_deployment_enabled(provider, server, runtime_name)
    deploy(provider, server, RESOURCE_WAR_NAME_NEW, runtime_name=runtime_name, enabled=False, overwrite=True)
    check_deployment_disabled(provider, server, runtime_name)
开发者ID:rananda,项目名称:cfme_tests,代码行数:21,代码来源:test_middleware_deployment.py


示例17: test_restart

def test_restart(provider, archive_name):
    """Tests Restart of archive from EAP7 server

    Steps:
        * Get servers list from UI
        * Chooses JBoss EAP server from list
        * Deploys some deployment archive into server.
        * Select that deployment from deployments list.
        * Performs "Restart" toolbar operation on it.
        * Refreshes the provider.
        * Lists all deployments on EAP server.
        * Verified the recently restarted archive is listed and is Enabled.
    """
    server = get_eap_server(provider)
    runtime_name = deploy(provider, server, archive_name)
    check_deployment_enabled(provider, server, runtime_name)
    deployment = get_deployment_from_list(provider, server, runtime_name)
    deployment.restart()
    check_deployment_enabled(provider, server, runtime_name)
    deployment = get_deployment_from_list(provider, server, runtime_name)
    deployment.validate_properties()
开发者ID:jteehan,项目名称:cfme_tests,代码行数:21,代码来源:test_middleware_deployment.py


示例18: gen_ds_creation_events

def gen_ds_creation_events(provider, datasource):
    server = get_eap_server(provider)
    ds_name = generate_ds_name(datasource.datasource_name)
    jndi_name = generate_ds_name(datasource.jndi_name)
    file_path = download_jdbc_driver(datasource.driver.database_name)
    deploy_jdbc_driver(provider, server, file_path,
                       driver_name=datasource.driver.driver_name,
                       module_name=datasource.driver.module_name,
                       driver_class=datasource.driver.driver_class,
                       major_version=datasource.driver.major_version,
                       minor_version=datasource.driver.minor_version)
    server.add_datasource(ds_type=datasource.database_type,
                          ds_name=ds_name,
                          jndi_name=jndi_name,
                          driver_name=datasource.driver.driver_name,
                          driver_module_name=datasource.driver.module_name,
                          driver_class=datasource.driver.driver_class,
                          ds_url=datasource.connection_url.replace("\\", ""),
                          username=datasource.username,
                          password=datasource.password)
    ds_name = "Datasource [{}]".format(ds_name)
    return ds_name
开发者ID:hhovsepy,项目名称:cfme_tests,代码行数:22,代码来源:test_provider_timelines.py


示例19: server

def server(provider):
    server = get_eap_server(provider)
    yield server
    server.restart_server()
开发者ID:dajohnso,项目名称:cfme_tests,代码行数:4,代码来源:test_middleware_server.py


示例20: server

def server(provider):
    server = get_eap_server(provider)
    yield server
开发者ID:hhovsepy,项目名称:cfme_tests,代码行数:3,代码来源:test_middleware_server_compliance.py



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python server_mgr_logger.ServerMgrlogger类代码示例发布时间:2022-05-27
下一篇:
Python utilities.print_and_log函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap