fuel-plugin-contrail/plugin_test/vapor
Yevgeniy 37e62a4ca7 update Docker file for mcp virtual lab
Change-Id: Ie65bc5432f29afdca9908c18671f77e380fbb56e
2017-03-21 14:05:41 +02:00
..
vapor add test_diff_proj_same_vn_vm_add_delete 2017-03-01 22:39:29 +03:00
.dockerignore Add Dockerfile 2017-02-17 11:52:46 +03:00
Dockerfile update Docker file for mcp virtual lab 2017-03-21 14:05:41 +02:00
README.rst Add Dockerfile 2017-02-17 11:52:46 +03:00
cloud.key update Docker file for mcp virtual lab 2017-03-21 14:05:41 +02:00
exports.sh Add test_virtual_function_exhaustion_and_reuse 2017-02-21 15:28:33 +03:00
pytest.ini Add stepler plugins to ini file 2017-02-21 17:26:55 +03:00
requirements.txt update Docker file for mcp virtual lab 2017-03-21 14:05:41 +02:00
roles_distribution_example.yaml Fixes for MK 2017-02-10 17:11:17 +03:00
roles_mk22_qa_lab01.yaml Add roles.yaml for mk22-qa-lab01 2017-02-06 15:20:29 +02:00
setup.py add vapor tests 2016-12-15 12:55:29 +03:00
tox.ini Add stepler plugins to ini file 2017-02-21 17:26:55 +03:00
xfail.yaml Add plugin to mark tests as expected to fail 2017-02-07 17:34:46 +03:00

README.rst

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