← Back to team overview

openstack team mailing list archive

Re: [Tempest] unable to run subset of tests via nosetests

 

To run a single test from Tempest:

~/openstack_projects/tempest$ nosetests -sv tempest/tests/compute/flavors/test_flavors.py
The expected flavor details should be returned ... ok
Ensure 404 returned for non-existant flavor ID ... ok
flavor details are not returned for non existant flavors ... ok
List of all flavors should contain the expected flavor ... ok
The detailed list of flavors should be filtered by disk space ... ok
The detailed list of flavors should be filtered by RAM ... ok
Only the expected number of flavors (detailed) should be returned ... ok
The list of flavors should start from the provided marker ... ok
The list of flavors should be filtered by disk space ... ok
The list of flavors should be filtered by RAM ... ok
Only the expected number of flavors should be returned ... ok
The list of flavors should start from the provided marker ... ok
Detailed list of all flavors should contain the expected flavor ... ok
The expected flavor details should be returned ... ok
Ensure 404 returned for non-existant flavor ID ... ok
flavor details are not returned for non existant flavors ... ok
List of all flavors should contain the expected flavor ... ok
The detailed list of flavors should be filtered by disk space ... ok
The detailed list of flavors should be filtered by RAM ... ok
Only the expected number of flavors (detailed) should be returned ... ok
The list of flavors should start from the provided marker ... ok
The list of flavors should be filtered by disk space ... ok
The list of flavors should be filtered by RAM ... ok
Only the expected number of flavors should be returned ... ok
The list of flavors should start from the provided marker ... ok
Detailed list of all flavors should contain the expected flavor ... ok

----------------------------------------------------------------------
Ran 26 tests in 7.230s

OK

Regards,

Ravi

From: openstack-bounces+ravikumar.venkatesan=hp.com@xxxxxxxxxxxxxxxxxxx [mailto:openstack-bounces+ravikumar.venkatesan=hp.com@xxxxxxxxxxxxxxxxxxx] On Behalf Of Stef T
Sent: Friday, November 09, 2012 4:06 PM
To: openstack@xxxxxxxxxxxxxxxxxxx
Subject: [Openstack] [Tempest] unable to run subset of tests via nosetests

Hey Everyone,
    So, I was trying to run only a single test from Tempest, and I naively tried the usual nosetest syntax of;

nosetests -v tempest.tests.compute.servers.test_server_actions:ServerActionsTestBase.test_resize_server_confirm

    No dice, so, I then tried the slightly more bulky but still relatively quick;

nosetests -v tempest.tests.compute.servers.test_server_actions

    And I got 8 errors. I got this down to 4 by moving the __init__.py from tempest/tests/compute into tempest/tests/compure/servers but, this can't be right. Can it ? Is Tempest not designed to run a single functional test or a subset ? I find this hard to believe, and I pray I am doing something 'duh'. Python 2.7.2, tempest -TRUNK.

    Regards
    S.

Follow ups

References