Ejemplo n.º 1
0
 def setUp(self):
     EucNodeDriver.connectionCls.conn_classes = (None, EucMockHttp)
     EC2MockHttp.use_param = 'Action'
     EC2MockHttp.type = None
     self.driver = EucNodeDriver(key=EC2_PARAMS[0],
                                 secret=EC2_PARAMS[1],
                                 host='some.eucalyptus.com')
Ejemplo n.º 2
0
class EucTests(LibcloudTestCase, TestCaseMixin):
    def setUp(self):
        EucNodeDriver.connectionCls.conn_classes = (None, EucMockHttp)
        EC2MockHttp.use_param = 'Action'
        EC2MockHttp.type = None
        self.driver = EucNodeDriver(key=EC2_PARAMS[0], secret=EC2_PARAMS[1],
                                    host='some.eucalyptus.com')

    def test_list_locations_response(self):
        try:
            self.driver.list_locations()
        except Exception:
            pass
        else:
            self.fail('Exception was not thrown')

    def test_list_location(self):
        pass
Ejemplo n.º 3
0
class EucTests(LibcloudTestCase, TestCaseMixin):
    def setUp(self):
        EucNodeDriver.connectionCls.conn_classes = (None, EucMockHttp)
        EC2MockHttp.use_param = 'Action'
        EC2MockHttp.type = None
        self.driver = EucNodeDriver(key=EC2_PARAMS[0], secret=EC2_PARAMS[1],
                                    host='some.eucalyptus.com')

    def test_list_locations_response(self):
        try:
            self.driver.list_locations()
        except Exception:
            pass
        else:
            self.fail('Exception was not thrown')

    def test_list_location(self):
        pass
Ejemplo n.º 4
0
 def setUp(self):
     EucNodeDriver.connectionCls.conn_classes = (None, EucMockHttp)
     EC2MockHttp.use_param = 'Action'
     EC2MockHttp.type = None
     self.driver = EucNodeDriver(key=EC2_PARAMS[0], secret=EC2_PARAMS[1],
                                 host='some.eucalyptus.com')