<div dir="ltr">Hi<div><br></div><div>A long time ago, I was asked to do the same job. I tried to come up with a "programmed" way of doing this.</div><div><br></div><div>For some openstack component, there's a python object called "router" which holds the routes (the URLs that form the API).</div><div>For nova : <a href="https://github.com/openstack/nova/blob/master/nova/api/openstack/__init__.py#L197">https://github.com/openstack/nova/blob/master/nova/api/openstack/__init__.py#L197</a></div><div>For glance : <a href="https://github.com/openstack/glance/blob/master/glance/api/v1/router.py#L117">https://github.com/openstack/glance/blob/master/glance/api/v1/router.py#L117</a></div><div>For cinder : <a href="https://github.com/openstack/cinder/blob/master/cinder/api/openstack/__init__.py#L86">https://github.com/openstack/cinder/blob/master/cinder/api/openstack/__init__.py#L86</a></div><div>For neutron <a href="https://github.com/openstack/neutron/blob/master/neutron/api/v2/router.py#L122">https://github.com/openstack/neutron/blob/master/neutron/api/v2/router.py#L122</a> and <a href="https://github.com/openstack/neutron/blob/master/neutron/api/extensions.py#L320">https://github.com/openstack/neutron/blob/master/neutron/api/extensions.py#L320</a></div><div><br></div><div>If you inspect this object (and more precisely what is called 'the mapper') you can get all the URLs that form the API. Then you could "sanitize" the URLs.</div><div><br></div><div>Then, you run Tempest with debug=True, parse all the URLs in tempest.log.</div><div><br></div><div>Finally you make a match (comparison) between the URLs in tempest.log and the URLs defined in the 'mapper' of each project.</div><div><br></div><div>Does it make sense ? </div><div><br></div><div>Hope it helps,</div><div>Jordan</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 3, 2015 at 8:28 AM, Rohan Kanade <span dir="ltr"><<a href="mailto:openstack@rohankanade.com" target="_blank">openstack@rohankanade.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>So i have been tracking API test coverage in tempest in a ad-hoc way where i check the actual tempest tests and the API documentation for that specific component eg. Neutron</div><div><br></div><div>Is there a better way or documentation maintained by Tempest team for data about API test coverage per OpenStack project?</div><div><br></div><div>Regards,</div><div>Rohan Kanade</div></div>
<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</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></div>