Skip to content

Commit

Permalink
Don't execute change set instead of waiting for input (#5730)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucashuy committed Aug 8, 2023
1 parent c18893c commit e79955e
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tests/integration/delete/test_delete_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,17 +479,12 @@ def test_delete_stack_review_in_progress(self):
s3_bucket=self.bucket_name,
s3_prefix=self.s3_prefix,
force_upload=True,
no_execute_changeset=False,
confirm_changeset=True,
no_execute_changeset=True,
region=self._session.region_name,
)

# run deploy command and wait for it to ask about change set
deploy_process = start_persistent_process(deploy_command)
read_until_string(deploy_process, "Deploy this changeset? [y/N]:")

# kill the deploy process so that the stack is stuck in REVIEW_IN_PROGRESS
kill_process(deploy_process)
# run deploy command but don't execute changeset to force it in REVIEW_IN_PROGRESS
run_command(deploy_command)

delete_command = self.get_delete_command_list(
stack_name=stack_name, region=self._session.region_name, no_prompts=True
Expand Down

0 comments on commit e79955e

Please sign in to comment.