Testing new version of decorator.
This commit is contained in:
parent
d3df810065
commit
fde721bed7
123 changed files with 2740 additions and 1114 deletions
|
|
@ -5,11 +5,11 @@ from boto.ec2.blockdevicemapping import BlockDeviceType, BlockDeviceMapping
|
|||
|
||||
import sure # noqa
|
||||
|
||||
from moto import mock_autoscaling
|
||||
from moto import mock_autoscaling_deprecated
|
||||
from tests.helpers import requires_boto_gte
|
||||
|
||||
|
||||
@mock_autoscaling
|
||||
@mock_autoscaling_deprecated
|
||||
def test_create_launch_configuration():
|
||||
conn = boto.connect_autoscale()
|
||||
config = LaunchConfiguration(
|
||||
|
|
@ -38,7 +38,7 @@ def test_create_launch_configuration():
|
|||
|
||||
|
||||
@requires_boto_gte("2.27.0")
|
||||
@mock_autoscaling
|
||||
@mock_autoscaling_deprecated
|
||||
def test_create_launch_configuration_with_block_device_mappings():
|
||||
block_device_mapping = BlockDeviceMapping()
|
||||
|
||||
|
|
@ -101,7 +101,7 @@ def test_create_launch_configuration_with_block_device_mappings():
|
|||
|
||||
|
||||
@requires_boto_gte("2.12")
|
||||
@mock_autoscaling
|
||||
@mock_autoscaling_deprecated
|
||||
def test_create_launch_configuration_for_2_12():
|
||||
conn = boto.connect_autoscale()
|
||||
config = LaunchConfiguration(
|
||||
|
|
@ -116,7 +116,7 @@ def test_create_launch_configuration_for_2_12():
|
|||
|
||||
|
||||
@requires_boto_gte("2.25.0")
|
||||
@mock_autoscaling
|
||||
@mock_autoscaling_deprecated
|
||||
def test_create_launch_configuration_using_ip_association():
|
||||
conn = boto.connect_autoscale()
|
||||
config = LaunchConfiguration(
|
||||
|
|
@ -131,7 +131,7 @@ def test_create_launch_configuration_using_ip_association():
|
|||
|
||||
|
||||
@requires_boto_gte("2.25.0")
|
||||
@mock_autoscaling
|
||||
@mock_autoscaling_deprecated
|
||||
def test_create_launch_configuration_using_ip_association_should_default_to_false():
|
||||
conn = boto.connect_autoscale()
|
||||
config = LaunchConfiguration(
|
||||
|
|
@ -144,7 +144,7 @@ def test_create_launch_configuration_using_ip_association_should_default_to_fals
|
|||
launch_config.associate_public_ip_address.should.equal(False)
|
||||
|
||||
|
||||
@mock_autoscaling
|
||||
@mock_autoscaling_deprecated
|
||||
def test_create_launch_configuration_defaults():
|
||||
""" Test with the minimum inputs and check that all of the proper defaults
|
||||
are assigned for the other attributes """
|
||||
|
|
@ -171,7 +171,7 @@ def test_create_launch_configuration_defaults():
|
|||
|
||||
|
||||
@requires_boto_gte("2.12")
|
||||
@mock_autoscaling
|
||||
@mock_autoscaling_deprecated
|
||||
def test_create_launch_configuration_defaults_for_2_12():
|
||||
conn = boto.connect_autoscale()
|
||||
config = LaunchConfiguration(
|
||||
|
|
@ -184,7 +184,7 @@ def test_create_launch_configuration_defaults_for_2_12():
|
|||
launch_config.ebs_optimized.should.equal(False)
|
||||
|
||||
|
||||
@mock_autoscaling
|
||||
@mock_autoscaling_deprecated
|
||||
def test_launch_configuration_describe_filter():
|
||||
conn = boto.connect_autoscale()
|
||||
config = LaunchConfiguration(
|
||||
|
|
@ -202,7 +202,7 @@ def test_launch_configuration_describe_filter():
|
|||
conn.get_all_launch_configurations().should.have.length_of(3)
|
||||
|
||||
|
||||
@mock_autoscaling
|
||||
@mock_autoscaling_deprecated
|
||||
def test_launch_configuration_delete():
|
||||
conn = boto.connect_autoscale()
|
||||
config = LaunchConfiguration(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue