Ejemplo n.º 1
0
 def setUp(self):
     super(IpamTestCase, self).setUp()
     cfg.CONF.set_override('notify_nova_on_port_status_changes', False)
     self.useFixture(testlib_api.SqlFixture())
     if self.use_pluggable_ipam:
         self._turn_on_pluggable_ipam()
     else:
         self._turn_off_pluggable_ipam()
     self.plugin = base_plugin.NeutronDbPluginV2()
     self.cxt = context.Context(user_id=None,
                                tenant_id=None,
                                is_admin=True,
                                overwrite=False)
     self.tenant_id = 'test_tenant'
     self.network_id = 'test_net_id'
     self.subnet_id = 'test_sub_id'
     self.port_id = 'test_p_id'
     self._create_network()
     self._create_subnet()
Ejemplo n.º 2
0
 def _setUp(self):
     super(PluginClientFixture, self)._setUp()
     self.useFixture(testlib_api.SqlFixture())
     self.useFixture(self.plugin_conf)
     self.useFixture(base.PluginFixture(self.plugin_conf.plugin_name))