fuel-plugin-contrail/plugin_test/vapor
Georgy Dyuldin 933873f36f Fix security group tests
Change-Id: I13e05c0b73fe8faef2bf5dd5d54eadfac416dfe2
2017-03-30 12:06:16 +03:00
..
vapor Fix security group tests 2017-03-30 12:06:16 +03:00
.dockerignore Add Dockerfile 2017-02-17 11:52:46 +03:00
Dockerfile fix dockerfile 2017-03-21 14:32:10 +02:00
README.rst Some MCP-related tests fixes 2017-03-27 17:05:28 +03:00
cloud.key update Docker file for mcp virtual lab 2017-03-21 14:05:41 +02:00
exports.sh Some MCP-related tests fixes 2017-03-27 17:05:28 +03:00
pytest.ini Fix some MCP-related issues 2017-03-29 15:50:51 +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