Added sample files to aid in configuration

These files are the minimum to start with when configuring
tempest to run with refstack-client. Including these as a
reference point.

Change-Id: I19e1898f2927e0073fe8fd4a9e2e0226435cfe54
This commit is contained in:
Chris Hoge 2017-10-26 11:17:28 -07:00
parent a2d5654879
commit 6320cf53f6
3 changed files with 63 additions and 1 deletions

View File

@ -42,7 +42,10 @@ Usage
##### #####
1. Prepare a tempest configuration file that is customized to your cloud 1. Prepare a tempest configuration file that is customized to your cloud
environment. environment. Samples of minimal Tempest configurations are provided in
the ``etc`` directory in ``tempest.conf.sample`` and ``accounts.yaml.sample``.
Note that these samples will likely need changes or additional information
to work with your cloud.
Note: Use Tempest Pre-Provisioned credentials_ to provide user test accounts. :: Note: Use Tempest Pre-Provisioned credentials_ to provide user test accounts. ::

8
etc/accounts.yaml.sample Normal file
View File

@ -0,0 +1,8 @@
# A minimal accounts.yaml file
# Will likely not work with swift, since additional
# roles are required. For more documentation see:
# https://git.openstack.org/cgit/openstack/tempest/tree/etc/accounts.yaml.sample
- username: '$USERNAME'
project_name: '$PROJECTNAME'
password: '$PASSWORD'

51
etc/tempest.conf.sample Normal file
View File

@ -0,0 +1,51 @@
# This is a minimal example of what your tempest.conf file
# can look like. You will need to supply your own values
# and possibly add additional configurations for your cloud
# You can use this as a starting point for configuring
# tempest for the refstack client.
[auth]
test_accounts_file = $ACCOUNTS_YAML
use_dynamic_credentials = false
[compute]
image_ref = $IMAGE_REF_1
image_ref_alt = $IMAGE_REF_2
flavor_ref = $FLAVOR_REF_1
flavor_ref_alt = $FLAVOR_REF_2
fixed_network_name = $FIXED_NETWORK_NAME
[compute-feature-enabled]
resize = true
[identity]
uri_v3 = $KEYSTONE_V3_ENDPOINT
auth_version = v3
[identity-feature-enabled]
api_v2 = false
api_v3 = true
[network]
public_network_id = $PUBLIC_NETWORK_ID
floating_network_name = $FLOATING_NETWORK_ID
[object-storage]
operator_role = SwiftOperator
reseller_admin_role = ResellerAdmin
[oslo_concurrency]
lock_path = /tmp/tempest
[service_available]
cinder = true
neutron = true
glance = true
swift = true
nova = true
heat = false
[validation]
run_validation = true
connect_method = floating
auth_method = keypair