This repository contains Cloudify's system tests which in most cases mean that the entire flow of:
- Bootstrap using CLI.
- CLI interaction with the Cloudify manager.
- Blueprint uploading.
- Deployment creation.
- Workflows execution.
- Manager teardown.
In addition, plugins functionality is tested and Cloudify's examples.
The following example demonstrates how to run Cloudify's node cellar example system test on an OpenStack environment:
- Create a new Python 2.7 virtualenv:
virtualenv venv
source venv/bin/activate
- Install Cloudify's CLI:
git clone https://github.com/cloudify-cosmo/cloudify-cli.git
pip install -e cloudify-cli -r cloudify-cli/dev-requirements.txt
- Install Cloudify's system tests framework:
git clone https://github.com/cloudify-cosmo/cloudify-system-tests.git
pip install -e cloudify-system-tests
- Install Cloudify's OpenStack plugin:
git clone https://github.com/cloudify-cosmo/cloudify-openstack-plugin.git
pip install -e cloudify-openstack-plugin
-
Clone the cloudify-manager-blueprints repository (for the framework to be able to bootstrap a Cloudify manager):
git clone https://github.com/cloudify-cosmo/cloudify-manager-blueprints.git
-
Create an inputs file for your environment (based on cloudify-manager-blueprints/openstack/inputs.yaml.template)
-
Copy the sample handler configuration to your work dir (cloudify-system-tests/suites/suites/sample-handler-configuration.yaml).
-
Set values for the following keys in the handler configuration file:
- handler
- inputs
- manager_blueprint
- properties
-
Run the test using
nosetests
:
export HANDLER_CONFIGURATION=/path/to/sample-handler-configuration.yaml
nosetests -s cosmo_tester/test_suites/test_blueprints/nodecellar_test.py:OpenStackNodeCellarTest