-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored get_load_balancer_name to be used when getting stack health
- Loading branch information
Arjun Naik
committed
Mar 22, 2017
1 parent
b362a33
commit 157a2a7
Showing
4 changed files
with
20 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
from senza.utils import camel_case_to_underscore | ||
from senza.utils import camel_case_to_underscore, get_load_balancer_name | ||
|
||
|
||
def test_camel_case_to_underscore(): | ||
assert camel_case_to_underscore('CamelCaseToUnderscore') == 'camel_case_to_underscore' | ||
assert camel_case_to_underscore('ThisIsABook') == 'this_is_a_book' | ||
assert camel_case_to_underscore('InstanceID') == 'instance_id' | ||
|
||
|
||
def test_get_load_balancer_name(): | ||
assert get_load_balancer_name(stack_name='really-long-application-name', | ||
stack_version='cd871c54') == 'really-long-application-cd871c54' | ||
assert get_load_balancer_name(stack_name='app-name', stack_version='1') == 'app-name-1' |