1
# Copyright [2010] [Anso Labs, LLC]
3
# Licensed under the Apache License, Version 2.0 (the "License");
4
# you may not use this file except in compliance with the License.
5
# You may obtain a copy of the License at
7
# http://www.apache.org/licenses/LICENSE-2.0
9
# Unless required by applicable law or agreed to in writing, software
10
# distributed under the License is distributed on an "AS IS" BASIS,
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
18
from boto.ec2.regioninfo import RegionInfo
27
return boto.connect_ec2 (
28
aws_access_key_id=ACCESS_KEY,
29
aws_secret_access_key=SECRET_KEY,
31
region=RegionInfo(None, REGION, CLC_IP),
33
path='/services/Cloud',
37
class APIIntegrationTests(unittest.TestCase):
38
def test_001_get_all_images(self):
39
conn = get_connection()
40
res = conn.get_all_images()
44
if __name__ == '__main__':
47
#print conn.get_all_key_pairs()
48
#print conn.create_key_pair
49
#print conn.create_security_group('name', 'description')