def setUp(self):
     CloudStackLBDriver.connectionCls.conn_classes = \
         (None, CloudStackMockHttp)
     self.driver = CloudStackLBDriver('apikey', 'secret')
     self.driver.path = '/test/path'
     self.driver.type = -1
     self.driver.name = 'CloudStack'
     CloudStackMockHttp.fixture_tag = 'default'
    def setUp(self):
        CloudStackLBDriver.connectionCls.conn_class = CloudStackMockHttp

        CloudStackLBDriver.path = '/test/path'
        CloudStackLBDriver.type = -1
        CloudStackLBDriver.name = 'CloudStack'
        self.driver = CloudStackLBDriver('apikey', 'secret')
        CloudStackMockHttp.fixture_tag = 'default'
        self.driver.connection.poll_interval = 0.0
Exemple #3
0
    def setUp(self):
        CloudStackLBDriver.connectionCls.conn_class = CloudStackMockHttp

        CloudStackLBDriver.path = "/test/path"
        CloudStackLBDriver.type = -1
        CloudStackLBDriver.name = "CloudStack"
        self.driver = CloudStackLBDriver("apikey", "secret")
        CloudStackMockHttp.fixture_tag = "default"
        self.driver.connection.poll_interval = 0.0