Python 2.7 无法在组中运行openstack tempest测试用例
我在tempest文件夹中创建了一个sampletest.txt文件,并在该文件中写入了tempest测试用例的位置 现在我想使用testr或nosetest运行该文件,以便执行该文件中的所有测试用例。。 例子 sampletest.txt文件中的内容 tempest.api.identity.admin.test_users:UsersTestJSON.test_create_user_启用_ tempest.api.identity.admin.test\u角色:rolestjson.test\u角色\u创建\u删除 tempest.api.identity.admin.test_roles:rolestjson.test_get_role_by_id tempest.api.identity.admin.test\u角色:rolestjson.test\u删除用户角色 现在我想执行这个sampletest.txt文件,以便执行所有的测试用例。。。Python 2.7 无法在组中运行openstack tempest测试用例,python-2.7,ubuntu,openstack,testr,Python 2.7,Ubuntu,Openstack,Testr,我在tempest文件夹中创建了一个sampletest.txt文件,并在该文件中写入了tempest测试用例的位置 现在我想使用testr或nosetest运行该文件,以便执行该文件中的所有测试用例。。 例子 sampletest.txt文件中的内容 tempest.api.identity.admin.test_users:UsersTestJSON.test_create_user_启用_ tempest.api.identity.admin.test\u角色:rolestjson.tes
如果我正在执行此文件nosetests-vx sampletest.txt,我会遇到错误尝试使用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/
如果仍然出现任何错误,请发布错误日志
你也可以参考我的帖子: