Exemplo n.º 1
0
 def test_query_images(self):
     ctx = AWSContext(AWS_KEY, SECRET_KEY, host='ec2.amazonaws.com',
                      port=443, region='us-east-1')
     image = AWSImageSupport(ctx)
     ret = image.list_images()
     self.assertIsNotNone(ret)
     print(ret)
Exemplo n.º 2
0
 def test_create_image(self):
     ctx = AWSContext(AWS_KEY, SECRET_KEY,
                      host='ec2.amazonaws.com',
                      port=443, region='us-east-1')
     image = AWSImageSupport(ctx)
     rsp = image.create_image(from_instance='i-180872f9', name='wan123')
     print(rsp)
     self.assertIsNotNone(rsp)
Exemplo n.º 3
0
 def test_create_image(self):
     ctx = AWSContext(AWS_KEY,
                      SECRET_KEY,
                      host='ec2.amazonaws.com',
                      port=443,
                      region='us-east-1')
     image = AWSImageSupport(ctx)
     rsp = image.create_image(from_instance='i-180872f9', name='wan123')
     print(rsp)
     self.assertIsNotNone(rsp)
Exemplo n.º 4
0
 def test_query_images(self):
     ctx = AWSContext(AWS_KEY,
                      SECRET_KEY,
                      host='ec2.amazonaws.com',
                      port=443,
                      region='us-east-1')
     image = AWSImageSupport(ctx)
     ret = image.list_images()
     self.assertIsNotNone(ret)
     print(ret)