Adding subnetID so it knows the right VPC to build the node in.

This commit is contained in:
Brett Benassi 2018-10-29 08:57:22 -06:00
parent 6b009b4290
commit 2df611565a
No known key found for this signature in database
GPG key ID: 7056CA43F36FDA8C

View file

@ -111,10 +111,11 @@ class EC2Test(ShellCase):
key = config[profile_str][PROVIDER_NAME]['key']
key_name = config[profile_str][PROVIDER_NAME]['keyname']
sec_group = config[profile_str][PROVIDER_NAME]['securitygroupname'][0]
subnet_id = config[profile_str][PROVIDER_NAME]['subnet_id']
private_key = config[profile_str][PROVIDER_NAME]['private_key']
location = config[profile_str][PROVIDER_NAME]['location']
conf_items = [id_, key, key_name, sec_group, private_key, location]
conf_items = [id_, key, key_name, sec_group, subnet_id, private_key, location]
missing_conf_item = []
for item in conf_items:
@ -123,7 +124,7 @@ class EC2Test(ShellCase):
if missing_conf_item:
self.skipTest(
'An id, key, keyname, security group, private key, and location must '
'An id, key, keyname, security group, subnet id, private key, and location must '
'be provided to run these tests. One or more of these elements is '
'missing. Check tests/integration/files/conf/cloud.providers.d/{0}.conf'
.format(PROVIDER_NAME)