moto/tests/test_autoscaling
Brian Pandola 9e1fcac9d4
Use known AMI in internal tests (#3620)
Moto's implementation of autoscaling:CreateLaunchConfiguration is a little too loose,
allowing the ImageId parameter to be omitted and defaulting it to None, which results
in dozens of deprecation warnings:

`PendingDeprecationWarning: Could not find AMI with image-id:ami-123456, in the near future this will cause an error.`

This commit refactors calls to CreateLaunchConfiguration to explicitly pass in a known
AMI ImageId in order to avoid these warnings.

The integrity of the tests is unaffected by this change.
2021-01-27 19:49:33 +00:00
..
__init__.py Port test suite from nose to pytest. 2020-11-10 08:23:44 +01:00
test_autoscaling_cloudformation.py Use known AMI in internal tests (#3620) 2021-01-27 19:49:33 +00:00
test_autoscaling.py Use known AMI in internal tests (#3620) 2021-01-27 19:49:33 +00:00
test_elbv2.py Use known AMI in internal tests (#3620) 2021-01-27 19:49:33 +00:00
test_launch_configurations.py Use known AMI in internal tests (#3620) 2021-01-27 19:49:33 +00:00
test_policies.py Use known ImageID in internal tests (#3555) 2021-01-13 09:02:11 +00:00
test_server.py Run black on moto & test directories. 2019-10-31 10:36:05 -07:00
utils.py Run black on moto & test directories. 2019-10-31 10:36:05 -07:00