<div dir="ltr">Hello,<div><br></div><div>The dummy driver allows you to make writes/reads from the database and that's something we should be continuously testing. I think you cannot achieve that mocking the API calls.</div><div><br></div><div>Cheers</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 15, 2017 at 11:50 AM, Daniel Mellado <span dir="ltr"><<a href="mailto:daniel.mellado.es@ieee.org" target="_blank">daniel.mellado.es@ieee.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Ricardo,<br>
<br>
That sounds like a totally valid approach to me, but I was wondering if<br>
there'd be a way to mock that API call. If just using the dummy driver<br>
would achieve that then I'd be more than happy to see that modification.<br>
<br>
Cheers!<br>
<br>
Daniel<br>
<br>
El 15/06/17 a las 06:38, Ricardo Noriega De Soto escribió:<br>
<div><div class="h5">> Hello L2GWers<br>
><br>
> Currently networking-l2gw CI only covers unit tests. However, there is<br>
> an experimental check that starts a devstack VM to be able to run more<br>
> complex tests. That experimental check is not working, and we are trying<br>
> to fix it, however we encountered some difficulties that we wanted to<br>
> share with you.<br>
><br>
> <a href="https://review.openstack.org/#/c/471692/" rel="noreferrer" target="_blank">https://review.openstack.org/#<wbr>/c/471692/</a><br>
><br>
> The configuration of the experimental check uses the L2GW agent which is<br>
> very good, however, the API tests try to create a l2gw connection and<br>
> fail since there is not an ovsdb instance with the vtep schema to execute.<br>
><br>
> If we use the dummy driver, these three failing testcases will be<br>
> skipped and we have a way to test the API (without backend).<br>
><br>
> So for now, our proposal is to modify this experimental check using the<br>
> dummy driver, and convert it to a possible non-voting -> voting gate<br>
> executing pure API tests.<br>
><br>
> Furthermore, we will start working on a new gate with the l2gw agent and<br>
> create a new OVS entity in a namespace or something similar to be able<br>
> to test api and agent together.<br>
><br>
> Any comment is more than welcome!<br>
><br>
> Thanks guys<br>
><br>
> --<br>
> Ricardo Noriega<br>
><br>
> Senior Software Engineer - NFV Partner Engineer | Office of Technology<br>
>  | Red Hat<br>
> irc: rnoriega @freenode<br>
><br>
><br>
><br>
</div></div>> ______________________________<wbr>______________________________<wbr>______________<br>
> OpenStack Development Mailing List (not for usage questions)<br>
> Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.<wbr>openstack.org?subject:<wbr>unsubscribe</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br>
><br>
<br>
<br>
______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.<wbr>openstack.org?subject:<wbr>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Ricardo Noriega<br><div><br></div><div>Senior <span style="font-size:12.8px">Software Engineer - NFV Partner Engineer | Office of Technology  | Red Hat</span><br></div><div><span style="font-size:12.8px">irc: rnoriega @freenode</span></div><div><br></div></div></div></div></div>
</div>