Skip to content
This repository has been archived by the owner on May 26, 2021. It is now read-only.

Commit

Permalink
test(cloudformation): update test
Browse files Browse the repository at this point in the history
  • Loading branch information
kazhala committed Aug 11, 2020
1 parent 3777f89 commit 89e57f9
Show file tree
Hide file tree
Showing 2 changed files with 212 additions and 136 deletions.
8 changes: 4 additions & 4 deletions fzfaws/cloudformation/helper/cloudformationargs.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,11 @@ def _set_creation(self) -> None:
def _set_rollback(self, update: bool = False) -> None:
"""Set rollback configuration for cloudformation.
:param update: show previous values if true
:param update: show previous values and set default values if true
:type update: bool, optional
"""
cloudwatch = Cloudwatch(self.cloudformation.profile, self.cloudformation.region)
header: str = "select a cloudwatch alarm to monitor the stack"
header: str = "select cloudwatch alarms to monitor the stack"
questions: List[Dict[str, str]] = [
{"type": "input", "message": "MonitoringTimeInMinutes", "name": "answer"}
]
Expand Down Expand Up @@ -213,7 +213,7 @@ def _set_notification(self, update: bool = False) -> None:
sns = SNS(
profile=self.cloudformation.profile, region=self.cloudformation.region
)
header = "select sns topic to notify"
header = "select sns topics to notify"
if update:
header += "\nOriginal value: %s" % self.cloudformation.stack_details.get(
"NotificationARNs"
Expand Down Expand Up @@ -290,7 +290,7 @@ def _set_tags(self, update: bool = False) -> None:
}
]
:param update: determine if is updating the stack, it will show different prompt
:param update: determine if is updating the stack, it will set default tag value
:type update: bool, optional
"""
print("Tag format should be a URL Query alike string (e.g. foo=boo&name=yes)")
Expand Down
Loading

0 comments on commit 89e57f9

Please sign in to comment.