Brandon Clodius
81859f9180
(fix) Fixes #3648 ( #3649 )
...
* (fix) Fixes #3648
* (fix) formatting
* (review) add assertion for exception thrown
2021-02-02 15:21:16 +00:00
Brian Pandola
cd044ef00b
Remove redundant test code ( #3640 )
...
These tests, when run, do not execute any `moto` code. They fail the
parameter validation check in `botocore`, which raises an exception
before ever sending a request. These tests do not cover or verify
any `moto` behavior and have been removed.
2021-01-31 12:21:24 +00:00
Brian Pandola
779d18e00c
Fix: Golang aws-sdk fails to parse elbv2:CreateLoadBalancer response ( #3639 )
...
The `botocore` response parsers are forgiving when it comes to timestamps,
but a real AWS backend does return time zone details for this attribute.
Verified failure/fix using the Go repo included in the issue report.
Fixes #3516
2021-01-31 11:39:11 +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
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
Bert Blommers
0ab21f62a8
Linting
2020-09-13 19:42:38 +01:00
Bert Blommers
db1d7123f6
List dependencies for services - add integration test to verify
2020-09-13 16:08:23 +01:00
Adrian
73813460b6
Fix condition filtering bug in elbv2.create_rule() ( #3092 )
...
* Fix condition filtering bug
* Update test_handle_listener_rules unit test
* Run black
2020-06-27 09:42:32 +01:00
Asher Foa
d9d055c75d
Fix more typos.
2020-01-23 10:15:02 -08: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
Jessie Nadler
2b8bdc9bca
Validate elbv2 FixedResponseConfig attributes
2019-09-12 12:29:03 -04:00
Jessie Nadler
2983a63c0d
Allow fixed-response action type for elbv2
2019-09-12 12:25:43 -04:00
acsbendi
675db17ace
Implemented deregistering terminated instances from ELB target groups.
2019-08-30 18:21:11 +02:00
Steve Pulec
7b3846f6a1
Refactor Actions to be a real class. Add elb cognito.
2019-08-09 23:34:52 -05:00
acsbendi
44e93c94e8
Created test for describing health of a stopped instance target.
2019-07-18 16:25:41 +02:00
Bendegúz Ács
f408709ef9
VPC IPv4 validation ( #2026 )
...
* Implemented throwing invalid subnet range error and fixed breaking tests.
* Implemented throwing invalid CIDR block parameter error for vpcs and subnets.
* Implemented throwing invalid destination CIDR block error.
* IPv6 addresses not accepted, strict checking disabled.
* Implemented throwing invalid subnet conflict error and fixed breaking tests.
* Implemented throwing invalid VPC range error and fixed breaking tests.
* Fixed accidentally removed ).
* Fixed test case trying to create two subnets with the same CIDR range.
2019-05-25 18:35:07 +01:00
William Richard
1b91534165
Add support for redirect actions on ELBv2 listeners ( #2029 )
2019-05-25 11:18:39 +01:00
William Richard
eb018c01a5
Handle edge case where you can end up with double dashes in target group names
2018-06-06 11:57:42 -04:00
William Richard
81381cd035
Correctly generate resource name for target groups when using cloudformation
...
They need to have less than 32 character names, so when you don't specify a name
cloudformation generates a name that is less than 32 characters.
And make sure that flake8 passes
2018-06-06 11:07:14 -04:00
Dave Golombek
9a8b36debc
ELBv2.create_listener links TargetGroup to LB
...
In order to search target_groups by LB, we need this link in place.
Resolves #1500
2018-03-06 16:57:56 -05:00
Toshiya Kawasaki
49a2724d76
Set default value to elbv2 FakeTargetGroup ( #1349 )
2017-11-20 11:18:21 +00:00
Jack Danger
7c3d78e7c5
validate protocol on target group creation
2017-11-06 14:19:03 -08:00
Terry Cain
c186733129
Merge branch 'master' into jack/validate-protocol-on-target-group-creation
2017-11-05 01:58:40 +00:00
Terry Cain
92a0d96101
Fixed testcase
2017-10-29 16:06:03 +00:00
Terry Cain
2a52a0f91b
Completed ELBv2 implementation
2017-10-29 14:14:17 +00:00
Jack Danger
23ad62a4f9
validate protocol on target group creation
2017-10-27 03:16:06 +02:00
Jack Danger
068c0617da
fixing last pep8 violations on elbv2 test
2017-10-02 12:38:36 -07:00
Jack Danger
f6166f841a
running autopep8 against test_elbv2.py
2017-10-02 12:36:47 -07:00
Jack Danger
04542dccc0
implement elbv2 ResourceInUseError
2017-10-02 12:35:52 -07:00
Jack Danger
4b7a157560
implement target group tagging
2017-09-16 19:53:09 -07:00
Toshiya Kawasaki
8f0e2e7954
fix TargetGroupNnotFoundError is not definied correctly ( #1099 )
2017-09-07 11:25:59 -07:00
Toshiya Kawasaki
2ace59a60e
fix bug that remove_rule doesnt remove rule correctly ( #1074 )
2017-08-21 12:30:03 -07:00
Toshiya Kawasaki
b6cc208534
ELBv2 modify_rule changes listener rule partially ( #1073 )
...
* modify_rule changes listener rule partially
* fix syntax
* fix outdated code
* fix outdated code
2017-08-21 12:28:58 -07:00
Jack Danger
bd98996a19
Merge pull request #1065 from kawasakitoshiya/toshitanian/validate_elbv2_target_group_name
...
validate target group name
2017-08-18 08:46:39 -07:00
Toshiya Kawasaki
775b8a953a
add validation for target name
2017-08-19 00:36:12 +09:00
Toshiya Kawasaki
d4c6111c40
raise error when name is more than 32 when creating target group
2017-08-18 23:54:28 +09:00
Toshiya Kawasaki
469cfb7b3e
fix bug that Names filter dont work at describe_target_groups
2017-08-18 15:56:53 +09:00
Toshiya Kawasaki
2b10ef8517
dont use base64 for marker at describe_rules
2017-08-17 04:37:42 +09:00
Toshiya Kawasaki
5c0d5e920a
rename test_create_listener_rules to test_handle_listener_rules
2017-08-17 04:28:32 +09:00
Toshiya Kawasaki
e07bce003c
add set_rule_priorities to elbv2
2017-08-17 03:15:30 +09:00
Toshiya Kawasaki
0aaa624205
Fix respose number of rules of create_rule
2017-08-17 02:29:49 +09:00
Toshiya Kawasaki
9bc6779485
add modify_rules to elbv2
2017-08-17 02:25:39 +09:00
Toshiya Kawasaki
a73fa64043
add describe_rules to elbv2
2017-08-17 01:57:02 +09:00
Toshiya Kawasaki
3ac10945c1
add delete_rule to elbv2
2017-08-17 00:38:05 +09:00
Toshiya Kawasaki
05a2715f4b
add create_rule to elbv2
2017-08-17 00:22:00 +09:00
Jack Danger
7cff406778
fixing case of comments
2017-08-02 15:58:32 -07:00