Skip to content

Commit 5728f0a

Browse files
author
Garison Draper
committed
updating previous written test with data sample returned by the get_events method
1 parent 409e24f commit 5728f0a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

stacker/tests/actions/test_build.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,15 @@ def get_stack(name, *args, **kwargs):
244244
'Outputs': [],
245245
'Tags': []}
246246

247+
def get_events(name, *args, **kwargs):
248+
return [{'ResourceStatus': 'ROLLBACK_IN_PROGRESS',
249+
'ResourceStatusReason': 'CFN fail'}]
250+
247251
patch_object(self.provider, 'get_stack', side_effect=get_stack)
248252
patch_object(self.provider, 'update_stack')
249253
patch_object(self.provider, 'create_stack')
250254
patch_object(self.provider, 'destroy_stack')
255+
patch_object(self.provider, 'get_events', side_effect=get_events)
251256

252257
patch_object(self.build_action, "s3_stack_push")
253258

0 commit comments

Comments
 (0)