Beispiel #1
0
 def test_bgpvpn_list(self):
     bgpvpns = {'bgpvpns': self.api_bgpvpns.list()}
     neutronclient.list_ext('bgpvpns', '/bgpvpn/bgpvpns',
                            True).AndReturn(bgpvpns)
     self.mox.ReplayAll()
     ret_val = api.bgpvpn.bgpvpns_list(self.request)
     for n in ret_val:
         self.assertIsInstance(n, api.bgpvpn.Bgpvpn)
 def test_bgpvpn_list(self):
     bgpvpns = {'bgpvpns': self.api_bgpvpns.list()}
     neutronclient.list_ext('bgpvpns',
                            '/bgpvpn/bgpvpns', True).AndReturn(bgpvpns)
     self.mox.ReplayAll()
     ret_val = api.bgpvpn.bgpvpns_list(self.request)
     for n in ret_val:
         self.assertIsInstance(n, api.bgpvpn.Bgpvpn)
 def test_network_association_list(self):
     bgpvpn = self.bgpvpns.first()
     na = {'network_associations': self.api_network_associations.list()}
     uri = BGPVPN_NETWORK_ASSOCIATION_PATH % bgpvpn.id
     neutronclient.list_ext('network_associations', uri, True).AndReturn(na)
     self.mox.ReplayAll()
     ret_val = api.bgpvpn.network_association_list(self.request, bgpvpn.id)
     for n in ret_val:
         self.assertIsInstance(n, api.bgpvpn.NetworkAssociation)
 def test_router_association_list(self):
     bgpvpn = self.bgpvpns.first()
     ra = {'router_associations': self.api_network_associations.list()}
     uri = BGPVPN_ROUTER_ASSOCIATION_PATH % bgpvpn.id
     neutronclient.list_ext('router_associations', uri, True).AndReturn(ra)
     self.mox.ReplayAll()
     ret_val = api.bgpvpn.router_association_list(self.request, bgpvpn.id)
     for n in ret_val:
         self.assertIsInstance(n, api.bgpvpn.RouterAssociation)
Beispiel #5
0
 def test_network_association_list(self):
     bgpvpn = self.bgpvpns.first()
     na = {'network_associations': self.api_network_associations.list()}
     neutronclient.list_ext(
         'network_associations',
         '/bgpvpn/bgpvpns/%s/network_associations' % bgpvpn.id,
         True).AndReturn(na)
     self.mox.ReplayAll()
     ret_val = api.bgpvpn.network_association_list(self.request, bgpvpn.id)
     for n in ret_val:
         self.assertIsInstance(n, api.bgpvpn.NetworkAssociation)
 def test_network_association_list(self):
     bgpvpn = self.bgpvpns.first()
     na = {'network_associations': self.api_network_associations.list()}
     neutronclient.list_ext(
         'network_associations',
         '/bgpvpn/bgpvpns/%s/network_associations' % bgpvpn.id,
         True).AndReturn(na)
     self.mox.ReplayAll()
     ret_val = api.bgpvpn.network_association_list(self.request, bgpvpn.id)
     for n in ret_val:
         self.assertIsInstance(n, api.bgpvpn.NetworkAssociation)