Commit Graph

25 Commits

Author SHA1 Message Date
Bert Blommers
14a69c7524
Techdebt: Enable pylint rules (#4432) 2021-10-18 19:44:29 +00:00
Bert Blommers
f17b4a3904
Rewrite deprecated Autoscaling tests (#3907) 2021-09-22 18:05:28 +00:00
Brian Pandola
e8f1522d1a
Improve autoscaling:CreateLaunchConfiguration request validation (#3687)
AWS requires certain parameters to be mutually inclusive.

Moto wasn't doing anything with the InstanceId parameter, which is now made
clear with a TODO.
2021-02-14 11:38:03 +00:00
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
Matěj Cepl
5697ff87a8 Back to Black 2020-11-10 14:12:38 +01:00
Fabio Dias
743dd46399 black linting 2019-12-16 21:25:20 -05:00
Fabio Dias
fd9ac4b9a5 ACCOUNT_ID moved to moto.core, MOTO_ACCOUNT_ID env var override 2019-12-16 21:05:29 -05:00
Fabio Dias
b83a750630 Added references to moto.iam.models.ACCOUNT_ID instead of hardcoded id 2019-12-16 19:56:11 -05:00
Asher Foa
96e5b1993d Run black on moto & test directories. 2019-10-31 10:36:05 -07:00
Steve Pulec
0adebeed24 Merge #913. 2017-05-10 21:58:42 -04:00
Steve Pulec
f37bad0e00 Lints. 2017-02-23 21:37:43 -05:00
Steve Pulec
fde721bed7 Testing new version of decorator. 2017-02-15 22:35:45 -05:00
Steve Pulec
1814db3dfb Fix launch configuration instance types. 2015-08-03 21:48:17 -04:00
Shawn Falkner-Horine
61d93bfcfc Tests: Tweaked a general test to be compatible with Boto 2.7, attribute check is redundant with a specific version-gated test. 2014-09-10 13:01:32 -07:00
David Baumgold
eedb4c4b73 Support Python 3 using six 2014-08-28 10:57:43 -04:00
David Baumgold
4201e6b430 from __future__ import unicode_literals 2014-08-27 11:33:55 -04:00
Andrew Gross
ce31b0200a Fix tests when using a working boto version 2014-04-25 16:18:26 -04:00
Andrew Gross
a0e48a6cf5 [Block Device] Add block device mapping to launch config backend 2014-04-24 16:49:16 -04:00
Hugo Lopes Tavares
94abf90920 [tests] Update boto version for the AssociatePublicIpAddress boto fix. Refs #82 2014-03-04 17:40:36 -05:00
Hugo Lopes Tavares
8b6facf133 Add support to launch configuration AssociatePublicIpAddress parameter 2014-03-04 17:39:19 -05:00
Steve Pulec
a49bc57279 Adding more boto versions to testing 2013-09-16 21:24:32 -04:00
Steve Pulec
1e11bb1b27 Skip tests for ebs_optimized since it is only in 2.12 2013-09-10 17:04:56 -04:00
Steve Pulec
afad0bed14 Add ebs_optimized parameter to launch configurations 2013-09-10 16:54:57 -04:00
Steve Pulec
59fe1abfdf Cleanup flake8 2013-08-03 17:21:25 -04:00
Steve Pulec
d57157e749 Merge in autoscaling 2013-07-27 16:24:38 -04:00