示例#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')
示例#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
示例#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
示例#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')