Skip to content

vasichkin/openstack-test-suite

Repository files navigation

openstack-test-suite

This suite was created to test functionality of openstack.

Prerequisites

To run tests you need - Preconfigured openstack (essex release) with working keystone authorization; - Services must be installed and ready to run without errors: nova- (api,compute,sceduler,cert,network,volume), glance, keystone; - Image for instance spawning must be uploaded and changed in config.yaml - Test should be run under user, able to run sudo wuthout password or by root user.

What this suite does

In a scenario scripts directory (integration-tests/ubuntu-essex/) you can see what steps are perfomed. It's human readble text.

In a short, basic test does (01-keystone-instance.test):
  • Makes changes to configuration files to perform initial keystone configuration;
  • Creates project, user, network, user keys, checking tha all goes fine;
  • Spawns instance and check it is accessible from outside;
  • Stops instance, removes project, user, network, user keys checking every step does what it should.

There are also tests to check security groups, floating ip, volumes functionality. All scripts using BDD style, so it's human-readble text.

Installation

Get code as tarball or via github. Unpack it.
cd openstack-test-suite python setup.py install

Configuration

Configuration file located in scenario folder, - integration-tests/ubuntu-essex/config.yaml In general to run tests you need to configure: - image.name - name of preloaded image (shown by nova image-list). - server.external - ip address of cloud controller (if needed. 127.0.0.1 by default) - location of conf files of services (if needed) - net.cloud.cidr - network for instances (if needed) Other parameters' meaning can be clearly understood while reading test scenarios.

Running test

cd openstack-test-suite/integration-tests bunch ubuntu-essex ./result_dir

Results of this run will be available in "./result_dir/ubuntu-essex" dir

After running tests, in a result dir, you can find:
  • reports for every scenario run
  • log file "bash.log"
  • keys and other authorization files

Troubleshooting

Progress of the tests is reported to ./result_dir/bash.log in details, so you can always repeat actions performed to debug them.

About

Test suite for openstack. Checking main functionality

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published