AWS API raises an exception if both AZ and VPCZoneIdentifier params are empty. mock that exception, fix
tests to follow that pattern.
This commit is contained in:
parent
6a29800ec8
commit
59cf81fd56
5 changed files with 137 additions and 62 deletions
|
|
@ -7,8 +7,11 @@ import sure # noqa
|
|||
|
||||
from moto import mock_autoscaling_deprecated
|
||||
|
||||
from utils import setup_networking
|
||||
|
||||
|
||||
def setup_autoscale_group():
|
||||
mocked_networking = setup_networking()
|
||||
conn = boto.connect_autoscale()
|
||||
config = LaunchConfiguration(
|
||||
name='tester',
|
||||
|
|
@ -22,6 +25,7 @@ def setup_autoscale_group():
|
|||
max_size=2,
|
||||
min_size=2,
|
||||
launch_config=config,
|
||||
vpc_zone_identifier=mocked_networking['subnet1'],
|
||||
)
|
||||
conn.create_auto_scaling_group(group)
|
||||
return group
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue