Ask Your Question

tempest - new testcases for new service

asked 2014-07-08 15:10:29 -0600

drajsingh2304 gravatar image

Thanks a lot for the informative and helpful post.

We have written UTs and FTs for our new service say 'abc' These tests are present at /opt/stack/abc/abc/tests/functional and /opt/stack/abc/abc/tests/unit We need to run these testcases as part of tempest now !

So, we have copied our test cases at /opt/stack/tempest/tempest/tests/abc and we are trying to execute the same from nossetests. nosetest is not considering our testcases, can you please guide us here ! Yes, we have also tried to keep the same under /opt/stack/tempest/tempest/tests/cli and execute but still no use.

On a liter note, please let us know, how to disable the pylint kind of errors or warnings Thanks a lot for your patience.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-11-26 07:40:07 -0600

You have to define tests to make nosetests accept the tests. for example

> @test.attr(type='smoke')
>     def test01_nova_image_list(self):
>         self.nova('image list')

This is for cli and you have to name tests as "test_ " naming convenction for example ur script name is hello world.

You have to name it as

and also be sure to import tests from tempest

from tempest import test import testtools

edit flag offensive delete link more


i followed this, but is there a way to find out from where we get new tests from? for example u mentioned image list. What if i want to launch an instance?

codecave gravatar imagecodecave ( 2014-12-13 12:22:48 -0600 )edit

You can get full cli documentation from openstack website

mav3r1cksandy gravatar imagemav3r1cksandy ( 2014-12-14 08:11:25 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-07-08 15:10:29 -0600

Seen: 185 times

Last updated: Nov 26 '14