Skip to content
This repository has been archived by the owner. It is now read-only.
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

VMware has ended active development of this project, this repository will no longer be updated.

tosca-vcloud-plugin

Running Integration Tests

Create virtual environment and install plugin in dev-mode

virtualenv venv && source venv/bin/activate
pip install -r tosca-vcloud-plugin/dev-requirements.txt
pip install -r tosca-vcloud-plugin/test-requirements.txt
pip install -e tosca-vcloud-plugin

Copy configuration files from examples folder, fill them with relevant data

cp tosca-vcloud-plugin/examples/vcloud_config.yaml.example vcloud_config.yaml
cp tosca-vcloud-plugin/examples/vcloud_integration_test_config.yaml.example vcloud_integration_test_config.yaml

Export config files with environment variables

export VCLOUD_CONFIG_PATH="~/vcloud_config.yaml"
export VCLOUD_INTEGRATION_TEST_CONFIG_PATH="~/vcloud_intergation_test_config.yaml"

Run tests using nosetests. For subscription account use the following command

nosetests --tc=subscription: tosca-vcloud-plugin/tests/integration

For OnDemand

nosetests --tc=ondemand: tosca-vcloud-plugin/tests/integration

Run tests using tox. For subscription account use the following command

tox -e py27-subscription

For OnDemand

tox -e py27-ondemand

For all accounts

tox

For specify particular test, you can add full test name after '--'. For example

tox -e ondemand -- \test_network_plugin.py
tox -e ondemand -- \test_network_plugin.py:ValidationOperationsTestCase
tox -e ondemand -- \test_network_plugin.py:ValidationOperationsTestCase.test_validation

About

vCloud Plugin for Cloudify TOSCA-based Orchestrator

Resources

License

Packages

No packages published

Languages