File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
novaclient/tests/functional Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 1919from keystoneauth1 import session as ksession
2020from keystoneclient import client as keystoneclient
2121from keystoneclient import discover as keystone_discover
22- from neutronclient .v2_0 import client as neutronclient
2322import openstack .config
2423import openstack .config .exceptions
2524import openstack .connection
@@ -234,8 +233,7 @@ def setUp(self):
234233
235234 if "network" not in CACHE :
236235 # Get the networks from neutron.
237- neutron = neutronclient .Client (session = session )
238- neutron_networks = neutron .list_networks ()['networks' ]
236+ neutron_networks = self .openstack .network .networks ()
239237 # Convert the neutron dicts to Network objects.
240238 nets = []
241239 for network in neutron_networks :
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ coverage>=4.4.1 # Apache-2.0
44ddt>=1.0.1 # MIT
55fixtures>=3.0.0 # Apache-2.0/BSD
66python-keystoneclient>=3.8.0 # Apache-2.0
7- python-neutronclient>=6.7.0 # Apache-2.0
87requests-mock>=1.2.0 # Apache-2.0
98openstacksdk>=0.11.2 # Apache-2.0
109osprofiler>=1.4.0 # Apache-2.0
You can’t perform that action at this time.
0 commit comments