【问题标题】:unable to run openstack tempest testcases in group无法在组中运行 openstack tempest 测试用例
【发布时间】:2014-08-19 13:03:47
【问题描述】:

我在 tempest 文件夹中创建了一个 sampletest.txt 文件,并在该文件中写入了 tempest 测试用例位置。

现在我想使用 testr 或 nosetest 运行该文件,以便执行该文件中存在的所有测试用例。 例子 sampletest.txt 文件中的内容

tempest.api.identity.admin.test_users:UsersTestJSON.test_create_user_with_enabled

tempest.api.identity.admin.test_roles:RolesTestJSON.test_role_create_delete

tempest.api.identity.admin.test_roles:RolesTestJSON.test_get_role_by_id

tempest.api.identity.admin.test_roles:RolesTestJSON.test_remove_user_role

现在我想执行这个 sampletest.txt 文件,以便执行所有测试用例... 如果我正在执行此文件 nosetests -vx sampletest.txt ,我会收到错误

【问题讨论】:

    标签: python-2.7 ubuntu openstack testr


    【解决方案1】:

    尝试使用tilt和cat文件例如:

     nosetest -vx `cat sampletest.txt`
    

    请确保您的 etc/tempest.conf 配置如下,

      [identity]
      uri=http://127.0.0.1:5000/v2.0/
      uri_v3 = http://127.0.0.1:5000/v3/
      auth_version=v2
      admin_domain_name = Default
      admin_tenant_name = admin
      admin_password = {your_openstack_admin_login_password}
      admin_username = admin
      tenant_name = {non-admin-tenant-eg-demo}
      username = {non-admin-user-eg-demo}
      password = {non-admin-user-password}
    
      [dashboard]
    
      login_url=http://127.0.0.1/auth/login/
      uri_v3 = http://127.0.0.1:5000/v3/
    

    如果您仍然遇到任何错误,请发布您的错误日志。

    你也可以参考我的帖子:http://naggappan.wordpress.com/2014/10/15/configure-and-execute-tempest-in-openstack-environment/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-07-22
      • 2021-10-31
      相关资源
      最近更新 更多