Skip to content

Commit ee73d6b

Browse files
committed
Replace neutronclient with openstacksdk
Change-Id: I4c9dd506ada20744367afbe0cbb93482d66ee8ec Signed-off-by: Takashi Natsume <takanattie@gmail.com>
1 parent 06da36e commit ee73d6b

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

novaclient/tests/functional/base.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
from keystoneauth1 import session as ksession
2020
from keystoneclient import client as keystoneclient
2121
from keystoneclient import discover as keystone_discover
22-
from neutronclient.v2_0 import client as neutronclient
2322
import openstack.config
2423
import openstack.config.exceptions
2524
import 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:

test-requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ coverage>=4.4.1 # Apache-2.0
44
ddt>=1.0.1 # MIT
55
fixtures>=3.0.0 # Apache-2.0/BSD
66
python-keystoneclient>=3.8.0 # Apache-2.0
7-
python-neutronclient>=6.7.0 # Apache-2.0
87
requests-mock>=1.2.0 # Apache-2.0
98
openstacksdk>=0.11.2 # Apache-2.0
109
osprofiler>=1.4.0 # Apache-2.0

0 commit comments

Comments
 (0)