import mock
from neutronclient.v2_0.client import Client
-from osm_ro import vimconn
-from osm_ro.vimconn_openstack import vimconnector
+from osm_ro_plugin import vimconn
+from osm_rovim_openstack.vimconn_openstack import vimconnector
__author__ = "Igor D.C."
@mock.patch.object(Client, 'create_sfc_flow_classifier')
def test_new_classification_unsupported_type(self, create_sfc_flow_classifier):
- self.assertRaises(vimconn.vimconnNotSupportedException,
+ self.assertRaises(vimconn.VimConnNotSupportedException,
self._test_new_classification,
create_sfc_flow_classifier, 'h265')
def test_new_sfi_bad_ingress_ports(self, create_sfc_port_pair):
ingress_ports = ['5311c75d-d718-4369-bbda-cdcc6da60fcc',
'a0273f64-82c9-11e7-b08f-6328e53f0fa7']
- self.assertRaises(vimconn.vimconnNotSupportedException,
+ self.assertRaises(vimconn.VimConnNotSupportedException,
self._test_new_sfi,
create_sfc_port_pair, True, ingress_ports=ingress_ports)
ingress_ports = []
- self.assertRaises(vimconn.vimconnNotSupportedException,
+ self.assertRaises(vimconn.VimConnNotSupportedException,
self._test_new_sfi,
create_sfc_port_pair, True, ingress_ports=ingress_ports)
def test_new_sfi_bad_egress_ports(self, create_sfc_port_pair):
egress_ports = ['230cdf1b-de37-4891-bc07-f9010cf1f967',
'b41228fe-82c9-11e7-9b44-17504174320b']
- self.assertRaises(vimconn.vimconnNotSupportedException,
+ self.assertRaises(vimconn.VimConnNotSupportedException,
self._test_new_sfi,
create_sfc_port_pair, True, egress_ports=egress_ports)
egress_ports = []
- self.assertRaises(vimconn.vimconnNotSupportedException,
+ self.assertRaises(vimconn.VimConnNotSupportedException,
self._test_new_sfi,
create_sfc_port_pair, True, egress_ports=egress_ports)
def test_new_sf_inconsistent_sfc_encap(self, create_sfc_port_pair_group,
get_sfi):
get_sfi.return_value = {'sfc_encap': 'nsh'}
- self.assertRaises(vimconn.vimconnNotSupportedException,
+ self.assertRaises(vimconn.VimConnNotSupportedException,
self._test_new_sf, create_sfc_port_pair_group)
@mock.patch.object(Client, 'create_sfc_port_chain')
]}
# call the VIM connector
- self.assertRaises(vimconn.vimconnConflictException,
+ self.assertRaises(vimconn.VimConnConflictException,
self.vimconn.get_classification,
'3196bafc-82dd-11e7-a205-9bf6c14b0721')
list_sfc_flow_classifiers.return_value = {'flow_classifiers': []}
# call the VIM connector
- self.assertRaises(vimconn.vimconnNotFoundException,
+ self.assertRaises(vimconn.VimConnNotFoundException,
self.vimconn.get_classification,
'3196bafc-82dd-11e7-a205-9bf6c14b0721')
]}
# call the VIM connector
- self.assertRaises(vimconn.vimconnConflictException,
+ self.assertRaises(vimconn.VimConnConflictException,
self.vimconn.get_sfi,
'c0436d92-82db-11e7-8f9c-5fa535f1261f')
list_sfc_port_pairs.return_value = {'port_pairs': []}
# call the VIM connector
- self.assertRaises(vimconn.vimconnNotFoundException,
+ self.assertRaises(vimconn.VimConnNotFoundException,
self.vimconn.get_sfi,
'b22892fc-82d9-11e7-ae85-0fea6a3b3757')
]}
# call the VIM connector
- self.assertRaises(vimconn.vimconnConflictException,
+ self.assertRaises(vimconn.VimConnConflictException,
self.vimconn.get_sf,
'b22892fc-82d9-11e7-ae85-0fea6a3b3757')
list_sfc_port_pair_groups.return_value = {'port_pair_groups': []}
# call the VIM connector
- self.assertRaises(vimconn.vimconnNotFoundException,
+ self.assertRaises(vimconn.VimConnNotFoundException,
self.vimconn.get_sf,
'b22892fc-82d9-11e7-ae85-0fea6a3b3757')
]}
# call the VIM connector
- self.assertRaises(vimconn.vimconnConflictException,
+ self.assertRaises(vimconn.VimConnConflictException,
self.vimconn.get_sfp,
'5d002f38-82de-11e7-a770-f303f11ce66a')
list_sfc_port_chains.return_value = {'port_chains': []}
# call the VIM connector
- self.assertRaises(vimconn.vimconnNotFoundException,
+ self.assertRaises(vimconn.VimConnNotFoundException,
self.vimconn.get_sfp,
'5d002f38-82de-11e7-a770-f303f11ce66a')