Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
update app stack
Browse files Browse the repository at this point in the history
  • Loading branch information
konz committed Nov 11, 2015
1 parent 7eac2cf commit 78e59d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/integrationtest/python/crassus_integration_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_create_stacks_and_update(self):
crassus_stack_creation = CreateStack("CrassusCreationThread", crassus_config)
crassus_stack_creation.start()

subnet_ids, vpc_id = self.get_vpc_and_subnets()
subnet_ids, vpc_id = self.get_first_vpc_and_subnets()

self.app_stack_name = "app-{0}".format(self.test_id)
app_config = Config(config_dict={
Expand Down Expand Up @@ -136,7 +136,7 @@ def test_create_stacks_and_update(self):
}
cfn_client = boto3.client('cloudformation')

crassus_stack_outputs = cfn_client.describe_stacks(StackName=self.test_id)[0]['Outputs']
crassus_stack_outputs = cfn_client.describe_stacks(StackName=self.test_id)['Stacks'][0]['Outputs']
for output in crassus_stack_outputs:
if output['OutputKey'] == "inputSnsTopicARN":
crassus_input_topic_arn = output['OutputValue']
Expand All @@ -147,7 +147,7 @@ def test_create_stacks_and_update(self):
crassus_input_topic_arn, message, message_id
))

def get_vpc_and_subnets(self):
def get_first_vpc_and_subnets(self):
ec2_client = boto3.client("ec2")
vpc_id = ec2_client.describe_vpcs()['Vpcs'][0]['VpcId']
subnet_ids = []
Expand Down

0 comments on commit 78e59d1

Please sign in to comment.