Tempest是随openstack开发的测试套件,能够对openstack各个service和api进行全面测试。Tempest项目发布在openstack的github上,和openstack代码有相同的分支,用户可以根据自己的openstack环境clone相应的分支测试当前openstack环境。本文针对essex分支的tempest配置进行说明。
事实上,在tempest的配置文件里,已经对各个变量进行了尽可能详尽的说明,本文对相关配置内容进行进一步的说明,方便openstack入门者尽快入手openstack QA测试。
首先,在tempest/etc目录下,将原始配置文件进行拷贝:
# cp tempest.conf.sample tempest.conf
用编辑器打开tempest.conf进行设定,红色字体部分为特殊说明。
======================================== BEGIN ====================================
[identity]
: identity部分是关于keystone相关部分的设定,这部分如无特殊设定,使用缺省值就可以了
# This section contains configuration options that a variety of Tempest
# test clients use when authenticating with different user/tenant
# combinations
# Set to True if your test environment's Keystone authentication service should
# be accessed over HTTPS
use_ssl = False
# This is the main host address of the authentication service API
host = 127.0.0.1
: 因为我们一般在controller node上进行tempest测试,所以设定为127.0.0.1