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
Bert Blommers
77dd35e3b8
Use known ImageID in internal tests ( #3555 )
2021-01-13 09:02:11 +00:00
Brian Pandola
93453eba05
Improve ec2:DescribeSubnets filtering ( #3457 )
...
* Add response/model/test coverage for filtering by `state`
* Add explicit test case for filtering by `vpc-id`
Closes #801
2020-11-16 08:17:36 +00:00
Bert Blommers
273ca63d59
Linting
2020-11-11 15:55:37 +00:00
Bert Blommers
cb6731f340
Convert fixtures/exceptions to Pytest
2020-11-11 15:54:01 +00:00
Matěj Cepl
6d364dc7aa
Pytest model of exceptions uses 'value' attribute instead of 'exception'.
2020-11-11 12:21:04 +01: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
davidaah
2fe3aee359
Allow creation of subnets from secondary VPC IPv4 CIDR blocks ( #3391 )
...
* allow subnets to be created from secondary vpc cidr block
* add additional test case for invalid cidr
2020-10-16 16:02:01 +01:00
usmangani1
55e7caccfe
Fix:EC2 Tags in create vpc and create subnet ( #3338 )
...
Co-authored-by: usmankb <usman@krazybee.com>
2020-09-27 09:24:17 +01:00
Bert Blommers
db1d7123f6
List dependencies for services - add integration test to verify
2020-09-13 16:08:23 +01:00
usmangani1
1c939a5f06
Fix:EC2-Create-Subnet availability Zone Id support ( #3198 )
...
* Fix:EC2-Create-Subnet availability Zone Id support
* Linting
* Fix:fixed build errors
* linting
Co-authored-by: Bert Blommers <bblommers@users.noreply.github.com>
Co-authored-by: Bert Blommers <info@bertblommers.nl>
Co-authored-by: usmankb <usman@krazybee.com>
2020-08-27 16:31:39 +01:00
Bert Blommers
8475804a8b
Simplify tests
2020-04-08 14:02:35 +01:00
Bert Blommers
5c7e0b56af
#2877 - Ensure NetworkInterfaces are assigned to the default Subnet
2020-04-08 13:53:53 +01:00
Bert Blommers
179bdd6caa
#2002 - Take ElasticNetworkInterfaces into account when requesting available IP addresses
2019-11-08 16:40:17 +00:00
Asher Foa
96e5b1993d
Run black on moto & test directories.
2019-10-31 10:36:05 -07:00
Bendegúz Ács
8f53b16b9a
Updates to create_subnet and describe_subnets responses ( #2053 )
...
* Removed Tags field from create_subnet response.
* Added DefaultForAz to create_subnet response.
* Added MapPublicIpOnLaunch to create_subnet response.
* Added OwnerId to create_subnet response.
* Added AssignIpv6AddressOnCreation field for create_subnet and describe_subnet and implemented setting it in modify_subnet_attribute.
* Added SubnetArn to create_subnet response.
* Added AvailabilityZoneId to create_subnet and describe_subnet responses, and error for invalid availability zone.
* Added Ipv6CidrBlockAssociationSet to create_subnet response.
* Added missing fields to describe_subnets response.
* Added myself to list of contributors and marked describe_subnet as implemented.
* Fixed linting errors.
* Fixed blank line containing a tab.
* Fixed accidentally deleted ).
* Fixed broken tests.
2019-05-28 16:33:25 +01: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
Nuwan Goonasekera
ca56955a97
Added invalid id exceptions when filtering vpcs and subnets
2017-09-18 23:38:39 +05:30
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
Taro Sato
02324ad708
Add more availability regions and implement default VPC ( #773 )
...
Fix filter name for availability zone
Fix bug assuming dict keys are ordered
Fix tests
Fix tests
Fix bug
2017-01-11 20:37:57 -05:00
Yann Lambret
52a5346c9e
Add support for VPC attributes management, and fix a bug about the default - not default status of a VPC
2016-05-12 22:36:09 +02:00
Yann Lambret
6d4a48b019
Add support for 'ModifySubnetAttribute' action
2016-04-05 00:17:56 +02:00
Marco Rucci
284641e8cf
Add support for default VPCs and subnets.
...
The first VPC created will be elected as default.
All subnets of the default VPC are considered default for their availability zone.
2015-12-06 20:58:54 +01:00
Steve Pulec
4020141478
Fix cloudformation subnet tagging.
2015-07-13 19:27:00 -04:00
Hugo Lopes Tavares
65d51a5844
Make availability zone dynamic in Subnet Response templates
2015-04-08 16:47:43 -04:00
Hugo Lopes Tavares
56cb06041c
Add filter "availabilityZone" to DescribeSubnets and add availability zone support too
2015-04-08 15:07:29 -04:00
David Baumgold
4201e6b430
from __future__ import unicode_literals
2014-08-27 11:33:55 -04:00
Shawn Falkner-Horine
0ecae450a1
CreateSubnet: Added VPC ID validation.
2014-08-26 14:04:34 -07:00
Shawn Falkner-Horine
d683c3b291
DescribeSubnets: Added support for 'filters' parameter.
2014-08-26 13:25:37 -07:00
Shawn Falkner-Horine
c97417d8e7
Error handling: Model-level validations, proper error responses. (backport assert_raises as context manager for Python 2.6)
2014-08-25 15:09:38 -07:00
Shawn Falkner-Horine
071c03e216
Error handling: Model-level validations, proper error responses.
2014-08-25 10:54:47 -07:00
Steve Pulec
955b4c6c4a
Add tagging to all applicable EC2 objects. Closes #66 .
2014-05-11 19:00:28 -04:00
Steve Pulec
59fe1abfdf
Cleanup flake8
2013-08-03 17:21:25 -04:00
Steve Pulec
316418df55
add subnets
2013-03-05 22:53:53 -05:00
Steve Pulec
e993917d4c
pep8
2013-03-05 08:35:18 -05:00
Steve Pulec
27a086409e
adding ec2 stubs
2013-02-21 23:13:01 -05:00