[openstack-dev] [nova] Thoughts on testing novaclient functional with neutron

Dean Troyer dtroyer at gmail.com
Fri Aug 12 18:03:31 UTC 2016

On Fri, Aug 12, 2016 at 10:13 AM, Matt Riedemann <mriedem at linux.vnet.ibm.com
> wrote:

> Another idea is the base functional test that sets up the client just
> checks the keystone service catalog for a 'network' service entry,
> somewhere in here:

This is exactly the route OSC takes for those CLI commands that work
against both nova-network and neutron.  It's only been released since
earlier this year but appears to be working well in the field.  It boils
down to:

  if 'network' in service_catalog.get_endpoints():
      # neutron
      # nova-net

(service_catalog is from KSA's AccessInfo class)



Dean Troyer
dtroyer at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160812/4f01fa4b/attachment.html>

More information about the OpenStack-dev mailing list