summaryrefslogtreecommitdiff
path: root/tests/cloud_tests/platforms/ec2
diff options
context:
space:
mode:
authorahosmanmsft <ahosman@microsoft.com>2019-11-26 11:36:00 -0700
committerChad Smith <chad.smith@canonical.com>2019-11-26 11:36:00 -0700
commitaa3e4961ceae5a5c5b5cf13221b5f6721991fe75 (patch)
tree43bcc20bbdeeb44e02911dfb55759377f8aa1a5c /tests/cloud_tests/platforms/ec2
parentb6055c40189afba323986059434b8d8adc85bba3 (diff)
downloadvyos-cloud-init-aa3e4961ceae5a5c5b5cf13221b5f6721991fe75.tar.gz
vyos-cloud-init-aa3e4961ceae5a5c5b5cf13221b5f6721991fe75.zip
cloud_tests: add azure platform support to integration tests
Added Azure to cloud tests supporting upstream integration testing. Implement the inherited platform classes, Azure configurations to release/platform, and docs on how to run Azure CI.
Diffstat (limited to 'tests/cloud_tests/platforms/ec2')
-rw-r--r--tests/cloud_tests/platforms/ec2/image.py1
-rw-r--r--tests/cloud_tests/platforms/ec2/platform.py3
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/cloud_tests/platforms/ec2/image.py b/tests/cloud_tests/platforms/ec2/image.py
index 7bedf59d..d7b2c908 100644
--- a/tests/cloud_tests/platforms/ec2/image.py
+++ b/tests/cloud_tests/platforms/ec2/image.py
@@ -4,6 +4,7 @@
from ..images import Image
from .snapshot import EC2Snapshot
+
from tests.cloud_tests import LOG
diff --git a/tests/cloud_tests/platforms/ec2/platform.py b/tests/cloud_tests/platforms/ec2/platform.py
index f188c27b..7a3d0fe0 100644
--- a/tests/cloud_tests/platforms/ec2/platform.py
+++ b/tests/cloud_tests/platforms/ec2/platform.py
@@ -135,6 +135,7 @@ class EC2Platform(Platform):
def _create_internet_gateway(self):
"""Create Internet Gateway and assign to VPC."""
LOG.debug('creating internet gateway')
+ # pylint: disable=no-member
internet_gateway = self.ec2_resource.create_internet_gateway()
internet_gateway.attach_to_vpc(VpcId=self.vpc.id)
self._tag_resource(internet_gateway)
@@ -190,7 +191,7 @@ class EC2Platform(Platform):
"""Setup AWS EC2 VPC or return existing VPC."""
LOG.debug('creating new vpc')
try:
- vpc = self.ec2_resource.create_vpc(
+ vpc = self.ec2_resource.create_vpc( # pylint: disable=no-member
CidrBlock=self.ipv4_cidr,
AmazonProvidedIpv6CidrBlock=True)
except botocore.exceptions.ClientError as e: