1bf965888f
In addition, implements global file walk function on utils module Also adds unit tests for checksum module Implements blueprint: backup-consistency Change-Id: I3ab23c2dfaacbaf4f0b293afa0a204a76e928b04 Depends-On: I294d7d3ad023c38e0639baa5934731bb46e875a2 |
||
---|---|---|
.. | ||
services | ||
tests | ||
README.rst | ||
__init__.py | ||
config.py | ||
plugin.py |
README.rst
Tempest Integration of Freezer
This directory contains Tempest tests to cover the freezer project.
Instructions for Running/Developing Tempest Tests with Freezer Project
- Need Devstack or other Environment for running Keystone
- Clone the Tempest Repo
- Create virtual env for Tempest
- Activate the Tempest virtual env
-
run 'source ~/virtualenvs/tempest-freezer/bin/activate'
- Make sure you have latest pip installed
-
run 'pip install --upgrade pip'
6. install Tempest requirements.txt and test-requirements.txt in the Tempest virtual env run 'pip install -r requirements.txt -r test-requirements.txt'
- Install Tempest project into virtual env
-
run ‘python setup.py develop’
Create logging.conf in Tempest Repo home dir/etc
Make a copy of logging.conf.sample as logging.conf
In logging configuration
You will see this error on Mac OS X
socket.error: [Errno 2] No such file or directory Edit logging.conf
Change ‘/dev/log/ to '/var/run/syslog’ in logging.conf
Create tempest.conf in Tempest Repo home dir/etc
run 'oslo-config-generator --config-file etc/config-generator.tempest.conf --output-file etc/tempest.conf'
Add the following sections to tempest.conf
[identity]
username = freezer password = secretservice tenant_name = service domain_name = default admin_username = admin admin_password = secretadmin admin_domain_name = default admin_tenant_name = admin alt_username = admin alt_password = secretadmin alt_tenant_name = admin use_ssl = False auth_version = v3 uri = http://10.10.10.6:5000/v2.0/ uri_v3 = http://10.10.10.6:35357/v3/
[auth]
allow_tenant_isolation = true tempest_roles = admin
Modify the uri and the uri_v3 to point to the host where Keystone is running
Clone freezer Repo
Set virtualenv to the Tempest virtual env run 'source ~/virtualenvs/tempest-freezer/bin/activate'
12. pip install freezer requirements.txt and test-requirements.txt in Tempest virtualenv run 'pip install -r requirements.txt -r test-requirements.txt'
- Install nose in virtual env run 'pip install nose'
- Install freezer project into virtual env run ‘python setup.py develop’ in Tempest virtual env
- Set project interpreter (pycharm) to Tempest virtual env
- Create test config using Tempest virtual env as python interpreter