QA:Testcase run the OpenStack smoke tests

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
(Created page with "{{QA/Test_Case |description=A brief description of the functionality being tested. |setup=Optionally include information on preparing the test environment |actions= Be as specifi...")
 
Line 1: Line 1:
 
{{QA/Test_Case
 
{{QA/Test_Case
|description=A brief description of the functionality being tested.
+
|description=Nova comes with a selection of fairly basic smoke tests which you can run against your installation.
|setup=Optionally include information on preparing the test environment
+
It can be useful to use these to sanity check your configuration.
|actions=
+
 
Be as specific as required for the target audience.
+
|setup=First off, you need the nova-adminclient python library which isn't yet packaged:
# Start here ...
+
 
# Next do this ...
+
$> sudo yum install python-pip
# Finally click that
+
$> sudo pip-python install nova-adminclient
 +
 
 +
You also need these packages
 +
 
 +
$> sudo yum install python-nose python-paramiko fedpkg
 +
 
 +
Make sure you have a block of floating IPs created, also as described above.
 +
 
 +
|actions=Then, run the tests from a fedpkg checkout:
 +
 
 +
$> git clone git://pkgs.fedoraproject.org/openstack-nova.git
 +
$> cd openstack-nova
 +
$> git checkout f16
 +
$> fedpkg prep
 +
$> cd nova-2011.3/smoketests
 +
$> python ./run_tests.py
 +
 
 
|results=
 
|results=
The following must be true to consider this a successful test run. Be brief ... but explicit.
+
Ensure all tests pass
# Step #1 completes without error
+
# The system boots into runlevel 5
+
# Program completes wth exit code 0
+
 
}}
 
}}
  
 
[[Category:OpenStack Test Cases]]
 
[[Category:OpenStack Test Cases]]
 
[[Category:Cloud SIG]]
 
[[Category:Cloud SIG]]

Revision as of 11:35, 19 October 2011

Contents

Description

Nova comes with a selection of fairly basic smoke tests which you can run against your installation. It can be useful to use these to sanity check your configuration.

Setup

First off, you need the nova-adminclient python library which isn't yet packaged:

$> sudo yum install python-pip
$> sudo pip-python install nova-adminclient

You also need these packages

$> sudo yum install python-nose python-paramiko fedpkg

Make sure you have a block of floating IPs created, also as described above.

How to test

Then, run the tests from a fedpkg checkout:

$> git clone git://pkgs.fedoraproject.org/openstack-nova.git
$> cd openstack-nova
$> git checkout f16
$> fedpkg prep
$> cd nova-2011.3/smoketests
$> python ./run_tests.py

Expected Results

Ensure all tests pass