gpt4 book ai didi

python-2.7 - 无法在组中运行 openstack tempest 测试用例

转载 作者:行者123 更新时间:2023-12-04 19:19:31 24 4
gpt4 key购买 nike

我在 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 ,我会收到错误

最佳答案

尝试使用倾斜和 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/

关于python-2.7 - 无法在组中运行 openstack tempest 测试用例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25384154/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com