Ejemplo n.º 1
0
 def setUp(self):
     super(OpenDaylightMechanismDriverTestCase, self).setUp()
     config.cfg.CONF.set_override('mechanism_drivers',
                                  ['logger', 'opendaylight'], 'ml2')
     config.cfg.CONF.set_override('url', 'http://127.0.0.1:9999', 'ml2_odl')
     config.cfg.CONF.set_override('username', 'someuser', 'ml2_odl')
     config.cfg.CONF.set_override('password', 'somepass', 'ml2_odl')
     self.mech = driver.OpenDaylightMechanismDriver()
     self.mech.initialize()
Ejemplo n.º 2
0
    def setUp(self):
        # Set URL/user/pass so init doesn't throw a cfg required error.
        # They are not used in these tests since sendjson is overwritten.
        config.cfg.CONF.set_override('url', 'http://127.0.0.1:9999', 'ml2_odl')
        config.cfg.CONF.set_override('username', 'someuser', 'ml2_odl')
        config.cfg.CONF.set_override('password', 'somepass', 'ml2_odl')

        super(OpenDaylightTestCase, self).setUp()
        self.port_create_status = 'DOWN'
        self.mech = driver.OpenDaylightMechanismDriver()
        client.OpenDaylightRestClient.sendjson = (self.check_sendjson)
Ejemplo n.º 3
0
 def setUp(self):
     super(TestODLShim, self).setUp()
     self.context = context.get_admin_context()
     self.plugin = mock.Mock()
     self.driver = driver.OpenDaylightMechanismDriver()
     self.driver.odl_drv = mock.Mock()