<br><br>вторник, 18 ноября 2014 г. пользователь Mehdi Abaakouk написал:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA256<br>
<br>
<br>
<br>
Le 2014-11-17 22:53, Doug Hellmann a écrit :<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
That’s a good goal, but that’s not what I had in mind for in-tree functional tests.<br>
<br>
</blockquote>
<br>
An interesting idea that might be useful that taskflow implemented/has done...<br>
<br>
The examples @ <a href="https://github.com/openstack/taskflow/tree/master/taskflow/examples" target="_blank">https://github.com/openstack/<u></u>taskflow/tree/master/taskflow/<u></u>examples</a> all get tested during unit test runs to ensure they work as expected. This seems close to your 'simple app' (where app is replaced with example), it might be nice to have a similar approach for oslo.messaging that has 'examples' that are these apps that get ran to probe the functionality of oslo.messaging (as well as useful for documentation to show people how to use it, which is the other usage taskflow has for these examples)<br>
<br>
The hacky example tester could likely be shared (or refactored, since it probably needs it), <a href="https://github.com/openstack/taskflow/blob/master/taskflow/tests/test_examples.py#L91" target="_blank">https://github.com/openstack/<u></u>taskflow/blob/master/taskflow/<u></u>tests/test_examples.py#L91</a><br>
</blockquote>
<br>
Sure, that would be a good way to do it, too.<br>
</blockquote>
<br>
We already have some works done in that ways. Gordon Sim have wrote some tests that use only the public API to test a driver: <a href="https://github.com/openstack/oslo.messaging/blob/master/tests/functional/test_functional.py" target="_blank">https://github.com/openstack/<u></u>oslo.messaging/blob/master/<u></u>tests/functional/test_<u></u>functional.py</a><br>
<br>
You just have to set the TRANSPORT_URL environment variable to start them.<br>
<br>
I'm working to run them on a devstack vm for rabbit, qpid, amqp1.0 driver, the infra patch that add experimental jobs have just landed: <a href="https://review.openstack.org/#/c/130370/" target="_blank">https://review.openstack.org/#<u></u>/c/130370/</a><br>
<br></blockquote><div><br></div><div>Amazing work, Mehdi. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have two other patches waiting to make it works:<br>
* <a href="https://review.openstack.org/#/c/130370/" target="_blank">https://review.openstack.org/#<u></u>/c/130370/</a><br>
* <a href="https://review.openstack.org/#/c/130437/" target="_blank">https://review.openstack.org/#<u></u>/c/130437/</a><br>
<br></blockquote><div><br></div><div>Will take a look at them asap.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So if zmq driver support in devstack is fixed, we can easily add a new job to run them in the same way.<br>
<br></blockquote><div><br></div><div>Btw this is a good question. I will take look at current state of zmq in devstack.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
- ---<br>
Mehdi Abaakouk<br>
mail: <a>sileht@sileht.net</a><br>
irc: sileht<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: OpenPGP.js v.1.20131017<br>
Comment: <a href="http://openpgpjs.org" target="_blank">http://openpgpjs.org</a><br>
<br>
wkYEAREIABAFAlRq6p4JEJZbdE7sD8<u></u>foAAAWnACdHPwDAbga4mfP/tIL1Z9q<br>
A0w2zvAAnA/<u></u>tvfXnAJO4a2n4TKiZYiVGbUdT<br>
=BVDs<br>
-----END PGP SIGNATURE-----<br>
<br>
<br>
______________________________<u></u>_________________<br>
OpenStack-dev mailing list<br>
<a>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/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack-dev</a><br>
</blockquote>