Commit Graph

69 Commits

Author SHA1 Message Date
Bert Blommers
a7f3b367b4 Introduce mock_aws() (#7194) 2024-01-27 19:38:09 +00:00
tungol
55c589072f
Admin: sorting imports with ruff (#7075) 2023-11-30 14:55:51 -01:00
Bert Blommers
d6377ff905
Techdebt: Improve some type annotations (#7072) 2023-11-28 21:01:56 -01:00
Bert Blommers
e3d1ae6815
Techdebt: Replace sure with regular assertions in ELB (#6548) 2023-07-21 17:52:11 +00:00
Bert Blommers
e5a1115834
ELB: describe_instance_health() should check LB existence (#5706) 2022-11-23 18:10:18 -01:00
Bert Blommers
1a8ddc0f2b
Techdebt: Replace string-format with f-strings (for tests dirs) (#5678) 2022-11-17 21:41:08 -01:00
Bert Blommers
9340335d73
EC2 availability zones in us-west-1: use A and B (#5515) 2022-10-02 13:03:03 +00:00
Bert Blommers
37c5be725a
EC2: Fix us-west-1 availability zones to b and c (#5513) 2022-10-01 22:33:22 +00:00
Bert Blommers
3d913f8f15
MultiAccount support (#5192) 2022-08-13 09:49:43 +00:00
Bert Blommers
096a89266c
ELB:describe_instance_health() - implement OutOfService status (#5154) 2022-05-21 22:55:36 +00:00
Bert Blommers
d60df32a25
Upgrade flake8 to 4.x (#5066) 2022-04-27 11:58:59 +00:00
Bert Blommers
2d18ec5a7b
Remove print-statement 2022-03-24 22:38:17 -01:00
Bert Blommers
47ce689cb7
ELB/ELBv2 improvements (#4956) 2022-03-21 19:55:19 -01:00
Bert Blommers
29d01c35bc
Update Black + formatting (#4926) 2022-03-10 13:39:59 -01:00
Bert Blommers
aa70ee254d
Remove deprecated decorators + boto dependency (#4378) 2022-01-18 14:18:57 -01:00
Bert Blommers
14a69c7524
Techdebt: Enable pylint rules (#4432) 2021-10-18 19:44:29 +00:00
Bert Blommers
1f13d6c406
Feature: ACM: in_use_by (#4414) 2021-10-14 21:43:10 +00:00
Bert Blommers
e9a4100324
Rewrite deprecated CloudFormation tests (#3842) 2021-10-04 13:47:40 +00:00
Bert Blommers
8ab76cb1d5
Rewrite deprecated ELB tests (#4342) 2021-09-24 20:00:10 +00:00
Brian Pandola
f4b81e69b8
Address pytest warnings (#3629)
* Address `boto` deprecation warnings

This commit eliminates the following warning:

../boto/ec2/connection.py:582:
  PendingDeprecationWarning: The current get_all_instances implementation will be replaced with get_all_reservations.

`boto` isn't likely to ever make good on this warning, but doing the replacement will
declutter the `moto` test output.

* Remove `invoke_lambda` tracebacks from unit test logging

If an exception is encountered, the details are returned in the response payload.
Printing the traceback was just adding noise to the pytest output.

* Use known AMIs in unit tests

This commit eliminates the following warning in the pytest output:

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

Known, pre-loaded AMI image ids are used instead of random ids that don't actually
exist in the moto backend.  The integrity of the tests is unaffected by this change.

A test has been added to provide explicit coverage of the PendingDeprecationWarning
raised when an invalid AMI image id is passed to moto.
2021-01-29 11:31:56 +00:00
Matěj Cepl
5697ff87a8 Back to Black 2020-11-10 14:12:38 +01:00
Matěj Cepl
ea489bce6c Finish porting from nose to pytest. 2020-11-10 08:25:05 +01:00
Matěj Cepl
77dc60ea97 Port test suite from nose to pytest.
This just eliminates all errors on the tests collection. Elimination of
failures is left to the next commit.
2020-11-10 08:23:44 +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
David
868d0107bf Autoscaling instance azs (#2030)
* Add instance AZ support in autoscaling

* Resolve py36-py27 format string error in test_autoscaling
2019-05-25 11:18:16 +01:00
Benoît Faucon
5d7a432af2 Tests on Travis: specify region name. 2018-08-06 11:01:33 +02:00
Benoît Faucon
ae2e6fef63 Add support for unregistered instances in ELB DescribeInstancesHealth API. 2018-08-06 10:47:00 +02:00
Jack Danger
2f05f6c9ea Adding version string to server tests 2017-08-02 13:41:39 -07:00
Jack Danger
45d7230440 fixing typo 2017-07-19 16:01:00 -07:00
Jack Danger
6ed8d12317 Enforcing ELB security groups must be real 2017-07-19 15:58:49 -07:00
Jack Danger
b512316c82 removing further unused imports 2017-07-19 12:36:04 -07:00
Jack Danger
7d0a575ab1 Removing unused import 2017-07-19 12:20:58 -07:00
Jack Danger
73ede75c39 Adding test for ELBv1 security groups 2017-07-19 12:20:01 -07:00
Jack Danger
98342bfcc3 Raise error on duplicate elbv1 listener
AWS returns an error condition when a listener is defined that interferes with an existing listener on the same load balancer port.
2017-07-06 21:52:01 -07:00
Jack Danger Canty
dbbbc01f88 Test boto3 elb listener deletion 2017-07-06 21:29:18 -07:00
Jack Danger Canty
c8794e842d create_load_balancer requires port definitions
Throw the appropriate error when defining a loadbalancer with no ports
2017-06-12 16:42:43 -07:00
Jack Danger Canty
b0c83c4e70 Testing ELB connection draining timeouts 2017-05-31 15:53:39 -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
Marco Rucci
e47fc4cafc Disallow creation of ELBs with duplicate names. 2016-05-15 20:04:00 +02:00
Daniel Hepper
105ba83835 Fix an assertion that was always true 2016-04-14 15:51:32 +02:00
Daniel Hepper
6eee995dcf Honor Tags when creating a load balancer 2016-04-14 15:50:51 +02:00
Daniel Hepper
35a60fbf49 Removed unwanted whitespace 2016-04-14 14:48:57 +02:00
Daniel Hepper
ce3fdaa012 Implemented subnet handling in ELB backend
The ELB backend now honors the Subnets parameter in CreateLoadBalancer calls. When a load balancer is created with subnets, the VPC is also set to the VPC of the subnets.
2016-04-14 14:43:03 +02:00
Oleksandr Shulgin
ef4332d892 Fix dict syntax for python-2.6 in test_elb 2015-12-14 12:55:34 +01:00
Oleksandr Shulgin
1ed5f50d56 Fix ELB.describe_tags with multiple LoadBalancerNames. 2015-12-14 12:38:10 +01:00