<div dir="ltr">Thanks everyone for feedback. Will follow the standard approach with HTTP requests in tempest tests.<div><br></div><div>Thanks</div><div>Georgy</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Dec 10, 2013 at 2:47 PM, Sean Dague <span dir="ltr"><<a href="mailto:sean@dague.net" target="_blank">sean@dague.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Pretty much 100% agree with Russell and Ryan.<br>
<br>
Webtest is interesting for in tree testing with Solum, because it's<br>
specifically *not* bringing up the full stack.<br>
<br>
When it comes to Tempest, you are hitting a live OpenStack cloud, most<br>
likely not on the same machine as Tempest is on (not true in the gate<br>
today... but we try to act like it is). So you must hit HTTP.<br>
<br>
        -Sean<br>
<div class="HOEnZb"><div class="h5"><br>
On 12/10/2013 04:24 PM, Ryan Petrello wrote:<br>
> My opinion is that there’s value in both.  Writing functional tests for Solum’s test suite using WebTest can be pretty useful for testing the API’s logic without having to involve HTTP (to e.g., call API endpoints with certain POST arguments and assert that certain mocked functions end up being called down the line).<br>

><br>
> When you involve Tempest, though, you’re generally pointing at a real HTTP server and testing for correctness, so using HTTP here makes sense (imo).<br>
><br>
> ---<br>
> Ryan Petrello<br>
> Senior Developer, DreamHost<br>
> <a href="mailto:ryan.petrello@dreamhost.com">ryan.petrello@dreamhost.com</a><br>
><br>
> On Dec 10, 2013, at 4:12 PM, Russell Bryant <<a href="mailto:rbryant@redhat.com">rbryant@redhat.com</a>> wrote:<br>
><br>
>> On 12/10/2013 04:10 PM, Georgy Okrokvertskhov wrote:<br>
>>> Hi,<br>
>>><br>
>>> In Solum project we are currently creating tests environments for future<br>
>>> test. We split unit tests and functional tests in order to use tempest<br>
>>> framework from the beginning.<br>
>>><br>
>>> Tempest framework assumes that you run your service and test APi<br>
>>> endpoints by sending HTTP requests. Solum uses Pecan WSGI framework<br>
>>> which has its own test framework based on WebTest. This framework allows<br>
>>> to test application without sending actual HTTP traffic. It mocks low<br>
>>> level stuff related to transport but keeps all high level WSGI part as<br>
>>> it is a real life application\service.<br>
>>><br>
>>> There is a question to QA\Tempest teams, what do you think about using<br>
>>> pecan test framework in tempest for Pecan based applications?<br>
>><br>
>> I don't think that makes sense.  Then we're not using the code like it<br>
>> would be used normally (via HTTP).<br>
>><br>
>> --<br>
>> Russell Bryant<br>
>><br>
>> _______________________________________________<br>
>> OpenStack-dev mailing list<br>
>> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
>> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
><br>
><br>
> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
><br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Sean Dague<br>
<a href="http://dague.net" target="_blank">http://dague.net</a><br>
<br>
</font></span><br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Georgy Okrokvertskhov<br>
Technical Program Manager,<br>Cloud and Infrastructure Services,<br>
Mirantis<br>
<a href="http://www.mirantis.com/" target="_blank">http://www.mirantis.com</a><br>
Tel. +1 650 963 9828<br>
Mob. +1 650 996 3284<br>
</div>