3.3 KiB
3.3 KiB
Vapor
Open Stack Contrail plugin test suite
Requirements
It's strongly advised to use virtualenv and update pip, tox, virtualenv and setuptools.
virtualenv venv
. venv/bin/activate
pip install -U pip tox virtualenv setuptools
Run tests
>> tox
Use Docker for run tests
Build image
Fill env file
# os-faults config
OS_FAULTS_CLOUD_DRIVER=fuel
OS_FAULTS_CLOUD_DRIVER_ADDRESS=10.109.0.2
OS_FAULTS_CLOUD_DRIVER_KEYFILE=/opt/app/cloud.key
OS_FAULTS_CLOUD_DRIVER_USERNAME=root
CONTRAIL_ROLES_DISTRIBUTION_YAML=/opt/app/roles_distribution.yaml
EOF
Set path to files
Run tests
Results will be written to $(pwd)/reports folder
Run only some tests (look tests under vapor directory, filter by "smoke" in test/class/path, exit after first fail)
Use Docker for developing tests
Build image (only for dependencies)
Go to tests directory
Copy private key and contrail roles files to current directory
Fill env file
# os-faults config
OS_FAULTS_CLOUD_DRIVER=fuel
OS_FAULTS_CLOUD_DRIVER_ADDRESS=10.109.0.2
OS_FAULTS_CLOUD_DRIVER_KEYFILE=/opt/app/$PRIVATE_KEY
OS_FAULTS_CLOUD_DRIVER_USERNAME=root
CONTRAIL_ROLES_DISTRIBUTION_YAML=/opt/app/$ROLES_DISTRIBUTION
EOF
Make any changes in current directory and run tests with changes