[openstack-dev] [qa] [Solum] [tempest] Use of pecan test framework in functional tests

Adrian Otto adrian.otto at rackspace.com
Wed Dec 11 00:53:17 UTC 2013


On Dec 10, 2013, at 3:12 PM, Russell Bryant <rbryant at redhat.com>
 wrote:

> On 12/10/2013 04:10 PM, Georgy Okrokvertskhov wrote:
>> Hi,
>> 
>> In Solum project we are currently creating tests environments for future
>> test. We split unit tests and functional tests in order to use tempest
>> framework from the beginning. 
>> 
>> Tempest framework assumes that you run your service and test APi
>> endpoints by sending HTTP requests. Solum uses Pecan WSGI framework
>> which has its own test framework based on WebTest. This framework allows
>> to test application without sending actual HTTP traffic. It mocks low
>> level stuff related to transport but keeps all high level WSGI part as
>> it is a real life application\service.
>> 
>> There is a question to QA\Tempest teams, what do you think about using
>> pecan test framework in tempest for Pecan based applications?
> 
> I don't think that makes sense.  Then we're not using the code like it
> would be used normally (via HTTP).

I agree. The benefits we might get from bypassing HTTP for testing would likely be limited to speed of execution of the test, right? Unless we are suffering productivity problems from slow tests, I'd rather test it through HTTP just like a user would experience it.

Adrian




More information about the OpenStack-dev mailing list