tempest 配置文件修改 用例执行

本文档详细介绍了如何在Devstack环境中配置Tempest,包括复制并修改tempest.conf样本文件,设置认证密码和URI,以及使用nosetests和testr工具执行不同类型的测试用例。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >



1、在devstack环境上,执行

    vagrant@precise64:/opt/stack/tempest/tempest/api/network$  cp /opt/stack/tempest/etc/tempest.conf.sample /opt/stack/tempest/etc/tempest.conf       

    vagrant@precise64:/opt/stack/tempest/tempest/api/network$ vi /opt/stack/tempest/etc/tempest.conf 


2、修改如下配置

# API key to use when authenticating. (string value)
password=Galax8800


# API key to use when authenticating as admin. (string value)
admin_password=Galax8800


# Full URI of the OpenStack Identity API (Keystone), v2
# (string value)
uri=http://127.0.0.1:35357/v2.0/tokens


# API key to use when authenticating. (string value)
password=Galax8800


# Valid secondary image reference to be used in tests. (string
# value)
image_ref=cf6dcac3-f1f3-44be-9f77-e18dd65b680e


# Whether or not neutron is expected to be available (boolean
# value)
neutron=true


3、执行用例(nosetests工具)

执行一个py文件

nosetests -v tempest.api.compute.test_auth_token 

执行py文件中的一个方法

nosetests -v tempest.api.compute.flavors.test_flavors:FlavorsTestJSON.test_list_flavors

执行一个特性

 nosetests -v tempest.api.compute.flavors   

执行所有的tempest

nosetests -v tempest


4、执行用例(testr工具)

执行一个py文件

nosetests -v tempest.api.compute.test_auth_token 

执行py文件中的一个方法

nosetests -v tempest.api.compute.flavors.test_flavors:FlavorsTestJSON.test_list_flavors

执行一个特性

 nosetests -v tempest.api.compute.flavors   

执行所有的tempest

nosetests -v tempest



nosetests -v tempest.api.compute.admin.test_aggregates:AggregatesAdminTestJSON.test_aggregate_create_invalid_aggregate_name


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值