Peter Van Bouwel
2f1f993793
Extend the DESCRIBE_SNAPSHOTS_RESPONSE to include the tagSet as documented by AWS. Also refactor the names of the tests I introduced in previous commits to be more descriptive. Finally some code cleanup, removing the get_tags method from classes and instead inherit from the TaggedEC2Resource class.
2014-11-09 15:00:40 +01:00
Peter Van Bouwel
53fdf330ee
Tests are added that verify that when a tag is being set on an (EBS) volume or on an instance that upon retrieval
...
from the resource, the tag are set on the instance. Important is that the tags are set using create_tags but that
the presence is validated by getting the resource using either (get_all_volumes or get_all_instances).
When running the tests using nosetests it shows that the tags for the instances are correctly retrieved but the tags
for the volume are missing
2014-11-08 12:12:20 +01:00
Hugo Lopes Tavares
32af875386
Implement InternetGateway filters support
...
More information about IGW filters: http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeInternetGateways.html#query-DescribeInternetGateways-filters
2014-11-05 12:26:29 -05:00
Hugo Lopes Tavares
faa55efe21
Implement vpc-id Instance filter
2014-11-05 11:06:14 -05:00
Steve Pulec
41282c9e48
Merge pull request #251 from joekiller/cfn_eni
...
enable cloudformation of NetworkInterface
2014-11-04 17:22:32 -05:00
Hugo Lopes Tavares
8a0a10b0d1
Add support to filtering instances by source-dest-check
2014-11-04 16:56:56 -05:00
Joseph Lawson
8299b5c312
enable cloudformation of NetworkInterface
2014-11-03 14:24:22 -05:00
Steve Pulec
93f56322d8
Fix merge conflicts for cloudwatch.
2014-10-30 23:51:09 -04:00
Steve Pulec
2d65b0a020
Some EC2 fixes for alternative regions.
2014-10-30 22:46:24 -04:00
Steve Pulec
5c9fec17b5
Merge pull request #248 from ttacon/master
...
Add create_login_profile for iam service
2014-10-29 20:07:33 -04:00
ttacon
5aec4d9de5
Add create_login_profile for iam service
2014-10-29 15:31:49 -04:00
Joseph Lawson
1152939ecd
add notification arns to cloudformation
2014-10-29 11:59:41 -04:00
Steve Pulec
2881c9b20c
Merge pull request #244 from DataDog/master
...
Add support for DescribeInstanceStatus' IncludeAllInstances option
2014-10-27 11:21:00 -04:00
Arthur Wang
3bafebee04
Limit test for describe instance status filter by boto version
2014-10-27 14:48:17 +00:00
Steve Pulec
83481b589b
Merge pull request #241 from DreadPirateShawn/RouteVPCPeeringConnection
...
Route vpc peering connection
2014-10-26 20:02:51 -04:00
Arthur Wang
d67c5b80a3
Add describe instance status test for new option
2014-10-24 16:18:52 -04:00
Joseph Lawson
04d22082c4
remove some test details for 2.6
2014-10-23 22:32:20 -04:00
Joseph Lawson
3015fd0216
python 2.6 assert_raises
2014-10-23 22:21:00 -04:00
Joseph Lawson
08b1c3bc0c
test delete stack
2014-10-23 14:57:46 -04:00
dreadpirateshawn
b10d16e583
Routes: Fixed vpc_peering_connection_id in describe route tables. (Upgrade: Boto 2.32.1 ~> 2.34.0)
2014-10-23 11:54:20 -07:00
Joseph Lawson
04b5389e31
Add test for bad describe stack request
2014-10-23 14:46:54 -04:00
Joseph Lawson
94e969fed5
Enhance DescribeStacks. Keep track of deleted stacks. Stack status.
...
Made describe_stacks more in line with http://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeStackResource.html
2014-10-22 23:58:42 -04:00
Steve Pulec
ef3fcecc87
Merge pull request #238 from DreadPirateShawn/ModifyInstanceAttributeSourceDestCheck
...
ModifyInstanceAttribute: Added support for 'SourceDestCheck.Value'.
2014-10-22 20:25:09 -04:00
dreadpirateshawn
4f847cfb4b
ModifyInstanceAttribute: Added support for 'SourceDestCheck.Value'.
2014-10-22 15:11:37 -07:00
Joseph Lawson
832e903f26
test sqs with xml characters
2014-10-22 16:03:42 -04:00
Steve Pulec
c02ed667d5
Merge pull request #235 from joekiller/enhance/cloudformation_getatt_tags_and_resource_naming
...
Enhance/cloudformation getatt tags and resource naming
2014-10-21 22:37:01 -04:00
Steve Pulec
bcef13700d
Merge pull request #234 from DataDog/add_instance_reason
...
EC2: Add instance state reason
2014-10-21 22:11:23 -04:00
Joseph Lawson
8aabda0786
add test for Fn::Join
2014-10-21 22:05:27 -04:00
Joseph Lawson
835259607a
test eip allocation via CloudFormation for VPC and EC2 classic
2014-10-21 21:55:08 -04:00
Steve Pulec
9559c6f746
Merge pull request #230 from joekiller/fix_unsupported_metadata
...
raise NotImplementedError on unknown metadata path
2014-10-21 19:02:41 -04:00
Joseph Lawson
9301b46346
another python 3 fix on dict
2014-10-21 15:55:08 -04:00
Joseph Lawson
83f187fa7e
fix python 3 issue merging dicts
2014-10-21 13:49:25 -04:00
Joseph Lawson
1d9ffafaa5
create CloudFormation outputs and enable 'Fn::GetAtt' to work.
2014-10-21 12:45:03 -04:00
Arthur Wang
c0049578cb
Test filtering get_instances by reason code
2014-10-20 21:00:33 +00:00
Joseph Lawson
832769b8a7
Name resources via CloudFormation naming convention and tag EC2 resources.
...
* Make sure taggable resources are tagged per convention: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stack-parameters.html
* Update CloudFormation parsing to use logical resource ids and name resources as CloudFomation would.
* Fix tests for CloudFormation stack integration.
2014-10-20 15:16:39 -04:00
Joseph Lawson
91a74424e5
Handle Name Type resources for CloudFormation
2014-10-20 11:45:47 -04:00
Joseph Lawson
cb88b8783d
raise NotImplementedError on unknown metadata path
2014-10-15 13:43:38 -04:00
dreadpirateshawn
89fd71eb16
Route Tables: Added support for associate/disassociate subnets. (fixed idempotency)
2014-10-14 14:23:14 -07:00
dreadpirateshawn
50d74b4811
Route Tables: Added support for associate/disassociate subnets. (added test threshold for Boto 2.16)
2014-10-14 11:34:58 -07:00
dreadpirateshawn
db044df0a9
Route Tables: Added support for associate/disassociate subnets. (added replace route table association)
2014-10-14 11:23:42 -07:00
dreadpirateshawn
d6b93af7fd
Route Tables: Added support for associate/disassociate subnets. (removed wayward print)
2014-10-14 07:55:36 -07:00
dreadpirateshawn
5d046c76e5
Route Tables: Added support for associate/disassociate subnets.
2014-10-13 16:19:54 -07:00
Steve Pulec
68d2db55d4
Add VPC state.
2014-10-12 21:51:12 -04:00
Hugo Lopes Tavares
aee47395f7
Implement "name" filter to ec2.models.AMI
2014-10-10 15:14:46 -04:00
Joseph Lawson
b9f747fb4f
test ip_ranges when authorizing security group ingress rules
2014-10-06 14:49:37 -04:00
Steve Pulec
b82507e41b
Add instance_id to spot instance requests. Closes #210 .
2014-10-05 22:55:36 -04:00
Steve Pulec
9de7969d2b
Fix merge conflicts.
2014-10-05 21:55:23 -04:00
Steve Pulec
8ab284a9d2
Merge pull request #222 from ralfas/master
...
Added basic support for SQS MessageAttributes.
2014-10-05 21:10:48 -04:00
Ralfas
76aa9a8b22
Added basic support for SQS MessageAttributes.
2014-10-05 19:10:49 +01:00
Steve Pulec
f0724d458e
Merge pull request #216 from DreadPirateShawn/ImplementCopyImage
...
AMI: Implement copy_image.
2014-10-05 10:55:48 -04:00
Omer Katz
efa687f41d
Added tag filters to some of the entities.
2014-10-01 16:18:46 +03:00
Omer Katz
4ec95bac74
Merge branch 'feature/vpc-filters'
2014-10-01 15:56:23 +03:00
Omer Katz
298cf65569
Added the ability to filter by tag-value and refactored the filters to be generic.
2014-10-01 15:44:54 +03:00
Omer Katz
444ab96b4f
Added the ability to filter by tag-key.
2014-10-01 15:33:12 +03:00
Steve Pulec
27ef345b64
Merge pull request #218 from thedrow/feature/vpc-filters
...
Added the cider block, dhcp options id and tag filter to the VPC backend
2014-10-01 08:04:12 -04:00
Omer Katz
8b50844961
Tests will now pass on Python 3.3.
2014-10-01 12:56:32 +03:00
Joseph Lawson
7fca88e732
Test Fixes and tag:
filter.
...
* fixed test_ec2.test_amis.test_ami_filters to test for AMIs in the state of 'available'
* enhanced AMI's to be able to take `tag:` filter.
* added tag: tests for AMIs
2014-09-30 16:42:52 -04:00
Joseph Lawson
866d8b4ea8
allow get_filter_value to return state of ami and test
...
* updated Ami.get_filter_value to return the state value of the AMI
* updated test_ec2.test_amis.test_ami_filters to test for AMIs in the state of 'available'
2014-09-30 16:12:23 -04:00
Omer Katz
89bd78b927
Added the ability to filter vpcs by tags.
2014-09-30 17:58:02 +03:00
Omer Katz
ecb23485d0
VPCs can now be filtered by cider block and dhcp options id
2014-09-30 17:29:50 +03:00
Omer Katz
a1be4b7f61
VPCs can now be filtered by id.
2014-09-30 17:08:36 +03:00
dreadpirateshawn
635a0e0f64
AMI: Implement copy_image. (part 3, added boto version threshold)
2014-09-29 12:28:53 -07:00
dreadpirateshawn
a4fdce2e55
AMI: Implement copy_image.
2014-09-29 12:06:36 -07:00
dreadpirateshawn
b847d420e9
Network Interfaces: Added attach/detach support. (added test threshold for Boto 2.32)
2014-09-12 11:51:50 -07:00
dreadpirateshawn
04a4ae88bf
Network Interfaces: Added attach/detach support.
2014-09-12 10:53:37 -07:00
dreadpirateshawn
f4d2623a4c
DescribeInstances: Added block_device_mapping to XML
2014-09-11 11:29:20 -07:00
Steve Pulec
b8afb3be90
Merge pull request #198 from DreadPirateShawn/VPCDefaultSecurityGroup
...
VPC: Added default security group upon creation.
2014-09-10 20:57:47 -04:00
Steve Pulec
85f9193dc7
Merge pull request #196 from DreadPirateShawn/SecurityGroupsFilteringFix
...
Security Groups: Fix for filtering support.
2014-09-10 20:55:47 -04:00
Shawn Falkner-Horine
632ea41d5f
Tests: Tweaked two tests to be version-gated to Boto 2.8+.
2014-09-10 13:29:45 -07:00
Shawn Falkner-Horine
fd42d19f0e
Tests: Tweaked two tests to be compatible with Boto 2.7, now-removed kwarg has its own version-gated test.
2014-09-10 13:02:55 -07: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
Shawn Falkner-Horine
8d0d5cb963
Tests: Fixed 'requires_boto_gte' to apply to target test only.
2014-09-10 12:49:20 -07:00
Shawn Falkner-Horine
c2cd5b346f
Routes: Fixed vpc_peering_connection_id in describe route tables.
2014-09-10 12:22:01 -07:00
Shawn Falkner-Horine
2cf97ef193
VPC: Added default security group upon creation.
2014-09-10 11:15:43 -07:00
Shawn Falkner-Horine
3f266ebc2b
Security Groups: Fix for filtering support.
2014-09-10 09:42:38 -07:00
Steve Pulec
f0a6510ca3
Merge pull request #191 from DreadPirateShawn/ImplementNetworkInterfaces
...
Network Interfaces: Initial implementation.
2014-09-09 21:12:06 -04:00
Steve Pulec
1bbb7a70ad
Merge pull request #188 from DreadPirateShawn/ImplementRouteTables
...
Route Tables / Routes: Initial implementation.
2014-09-09 20:48:43 -04:00
DreadPirateShawn
182436a5bf
Network Interfaces: Initial implementation. (Fixed unit test Boto version threshold for modify_network_interface_attribute.)
2014-09-08 23:05:40 -07:00
Steve Pulec
2cbdef663f
Merge pull request #186 from bobbyi/spot_instance_tags
...
Spot instance tags
2014-09-08 23:22:13 -04:00
Steve Pulec
3feaa39bd3
Merge pull request #185 from bobbyi/filter_instances_by_tag
...
Support filtering instances by tag
2014-09-08 23:19:43 -04:00
Steve Pulec
2f66709583
Merge pull request #184 from invenia/master
...
Additional IAM endpoints
2014-09-08 23:06:37 -04:00
Steve Pulec
79e31e7287
Fix route53 hosted zone id parsing.
...
The zone id previously contained hostedzone/<zone_id>
2014-09-08 22:00:55 -04:00
Shawn Falkner-Horine
42f8cea5e6
Network Interfaces: Initial implementation.
2014-09-08 16:50:18 -07:00
Shawn Falkner-Horine
02f1dc0b3e
Route Tables / Routes: Initial implementation. (Fixed deletion of main route table via deletion of VPC.)
2014-09-05 08:45:36 -07:00
Shawn Falkner-Horine
8aaa4c9873
Route Tables / Routes: Initial implementation. (Fixed unit test Boto version threshold for interface_id kwarg.)
2014-09-04 17:13:25 -07:00
Shawn Falkner-Horine
c4bae8af4f
Route Tables / Routes: Initial implementation. (Commented out test which requires not-yet-released Boto 2.32.2.)
2014-09-04 16:50:36 -07:00
Shawn Falkner-Horine
22e6166e4e
Route Tables / Routes: Initial implementation.
2014-09-04 16:23:59 -07:00
Bobby Impollonia
8ac549569e
Add support for filtering spot instance requests
2014-09-04 12:39:14 -07:00
Bobby Impollonia
f029fe672d
Add support for getting spot instance request tags
2014-09-04 12:38:09 -07:00
Bobby Impollonia
4403ea955f
Support filtering instances by tag
2014-09-04 07:30:19 -07:00
Rory-Finnegan
bf996f1461
Fixed py26 errors related to using assert_raises in tests.
2014-09-03 19:24:05 -04:00
Rory-Finnegan
665beda466
Added support to get_all_security_groups endpoint to actually filter groups.
...
- Filters by groupnames, group_ids and a filters. However, the filters option doesn't
support owner-id and tags since neither attribute was readily available via the SecurityGroup object.
- Also included a basic test to confirm it works.
2014-09-03 16:57:51 -04:00
Rory-Finnegan
a3b02f3f8b
Added get_user and delete_access_key endpoints.
2014-09-03 16:57:51 -04:00
Rory-Finnegan
ac74af4085
Added several new endpoints for accessing iam groups and users,
...
include unit tests.
2014-09-03 16:57:03 -04:00
David Baumgold
eedb4c4b73
Support Python 3 using six
2014-08-28 10:57:43 -04:00
Steve Pulec
cfda83dcba
Merge pull request #180 from DreadPirateShawn/AMIsModifyAndDescribe
...
AMIs: Added ModifyImageAttribute and DescribeImages filtering.
2014-08-27 21:28:15 -04:00
Steve Pulec
ca13c141d3
Merge pull request #176 from singingwolfboy/unicode_literals
...
Unicode literals
2014-08-27 21:19:50 -04:00
Shawn Falkner-Horine
f9246def75
AMIs: Added ModifyImageAttribute and DescribeImages filtering.
2014-08-27 11:53:44 -07:00
Shawn Falkner-Horine
acaad7026b
Remove VIM swap files.
2014-08-27 08:59:51 -07:00
David Baumgold
b4205cf267
Fix tests that fail due to bad unicode support
2014-08-27 11:58:03 -04:00
David Baumgold
4201e6b430
from __future__ import unicode_literals
2014-08-27 11:33:55 -04:00
Steve Pulec
b69179818c
Merge pull request #175 from DreadPirateShawn/SnapshotAttributes
...
Implementation for ModifySnapshotAttribute and DescribeSnapshotAttribute.
2014-08-26 20:53:46 -04:00
Steve Pulec
8f79d71f3f
Merge pull request #172 from DreadPirateShawn/CreateSubnetVPCValidation
...
Create subnet vpc validation
2014-08-26 20:36:26 -04:00
Steve Pulec
1846f28b41
Merge pull request #170 from DreadPirateShawn/DescribeSubnetsFiltering
...
DescribeSubnets: Added support for 'filters' parameter.
2014-08-26 20:35:19 -04:00
Hugo Lopes Tavares
55400038a8
Change test_regions.py to work with old boto versions
2014-08-26 18:44:19 -04:00
Shawn Falkner-Horine
ebc0037659
Implementation for ModifySnapshotAttribute and DescribeSnapshotAttribute.
2014-08-26 15:16:58 -07:00
Hugo Lopes Tavares
7e69c69ae0
Add multi-region support to Autoscaling
2014-08-26 17:56:56 -04:00
Hugo Lopes Tavares
82eef28937
Add multi-region support to EC2 Instances
2014-08-26 17:56:56 -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
5b56e89b60
Error handling: Model-level validations, proper error responses. (fixed typo)
2014-08-25 15:14:45 -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
9938995e05
Error handling: Model-level validations, proper error responses. (added coverage for new instance status call)
2014-08-25 14:00:35 -07:00
Shawn Falkner-Horine
5c46898b17
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
moto/ec2/responses/instances.py
2014-08-25 13:43:23 -07:00
Shawn Falkner-Horine
071c03e216
Error handling: Model-level validations, proper error responses.
2014-08-25 10:54:47 -07:00
Andres Riancho
c65ff170b2
Fix NotImplementedError: The describe_instance_status action has not been implemented #163
2014-08-20 14:52:23 -03:00
Steve Pulec
195505948b
Merge pull request #162 from andresriancho/master
...
Fix block device mapping #160
2014-08-20 07:39:24 -04:00
Steve Pulec
9d06ccf0cd
Merge pull request #156 from DreadPirateShawn/VPCPeeringConnections
...
Add support for VPCPeeringConnections.
2014-08-20 07:38:28 -04:00
Andres Riancho
9c1032da58
Fix #160 , implemented blockDeviceMapping modify_attribute set
2014-08-20 08:20:08 -03:00
Andres Riancho
e94a7ed6ff
First, we make it crash #160
2014-08-20 08:20:06 -03:00
Shawn Falkner-Horine
bfafaf70df
Update support for VPCPeeringConnections. (New boto version in Travis matrix and gte threshold for tests.)
2014-08-18 11:54:11 -07:00
Steve Pulec
64ed605c14
Ignore S3 ACL for now since we do not implement it.
2014-08-13 22:13:23 -04:00
Steve Pulec
d2fc7bb7f9
Merge pull request #139 from kouk/backendaccess
...
general support for access to backend models
2014-08-02 10:43:35 -04:00
Shawn Falkner-Horine
42a305239c
Add support for VPCPeeringConnections.
2014-07-31 14:41:30 -07:00
Konstantinos Koukopoulos
955bd6feef
add a test for model accessor
2014-07-29 15:29:52 +03:00
Steve Pulec
63799f3af8
Restrict tests to new version since we have change the behavior.
2014-07-22 21:53:54 -04:00
Steve Pulec
12d61ede41
Updating dynamodb2 tests for newer boto.
2014-07-22 21:47:56 -04:00
Steve Pulec
1d2bf48e40
Remove dupe line.
2014-07-18 20:56:02 -04:00
Steve Pulec
4b5b072b27
Merge pull request #150 from kevgliss/enhanced_ssl_support
...
Enhanced ssl support
2014-07-18 20:55:02 -04:00
Kevin Glisson
fc30f5ba1f
adding tests
2014-07-18 17:31:57 -07:00
Steve Pulec
3a063862a7
Merge pull request #148 from mrucci/fix-describe-asg
...
Fix retrieval of autoscaling group instances.
2014-07-14 20:37:26 -04:00
Marco Rucci
ada20cea61
Fix retrieval of autoscaling group instances.
2014-07-13 20:47:35 +02:00
Marco Rucci
9f092e6192
Route 53 GET request honors the Name parameter.
...
Now record sets can be retrieved by name via get_all_rrsets.
2014-07-13 19:48:20 +02:00
Steve Pulec
5e35348c0d
Cleanup S3 model methods to better deal with missing buckets.
2014-07-08 21:20:29 -04:00
Steve Pulec
be25a2ba99
Fix S3 to work with other regions.
2014-07-08 20:35:48 -04:00
Richard Eames
4cc45c3ac5
Implementation of bucket.list_versions
2014-06-27 16:21:32 -06:00
Richard Eames
e972000bb4
Keep track of previous versions of keys
2014-06-27 15:37:51 -06:00
Richard Eames
5409d99ca2
Added basic implementation of key/bucket versioning
2014-06-27 11:34:00 -06:00
Clint Ecker
ca6a9bad4f
use proper message encoding
2014-06-23 13:53:46 -05:00
Clint Ecker
a9ef2eaaf4
typos
2014-06-22 13:34:32 -05:00
Clint Ecker
049b73485f
test changing visibility improperly
2014-06-20 16:29:40 -05:00
Clint Ecker
c18e0cc82e
Enhanced SQS support
...
- Support for delaying messages
- Support for visibility timeouts
- Support for actually deleting messages
- Support for message bodies longer than 27 characters
- Support for message attributes
- Support for accurate queue attributes
Caveats:
- All message attributes are returned regardless of whether or not
attributes were requested when reading messages
- I’m not sure why messages longer than 27 characters were breaking in
my tests. Boto seems to expect the body to be base64 encoded and bodies
less than 27 characters would be fine, but if I attempted to use a
larger body it would mangle the content. I now base64 encode the body
if the raw string is longer than 27 characters and all is fine.
2014-06-20 15:00:36 -05:00
Steve Pulec
aec7d8e998
Merge pull request #138 from IlyaSukhanov/master
...
Implement internet gateway mocking
2014-06-17 22:28:16 -04:00
Ilya Sukhanov
bcb0e7a3d4
Implement internet gateway mocking
2014-06-08 09:45:18 -04:00
Christian Wittwer
6f3a056171
add test for instance filtering by instance-id
2014-06-05 11:12:55 +02:00
Steve Pulec
216750c05b
Add basic SNS support.
2014-05-11 22:56:44 -04:00
Steve Pulec
955b4c6c4a
Add tagging to all applicable EC2 objects. Closes #66 .
2014-05-11 19:00:28 -04:00
Steve Pulec
06481ebe7e
Require a GroupDescription for security group creation. Closes #112 .
2014-05-11 17:37:00 -04:00
Steve Pulec
8182b3baa8
Extend security group testing for VPC.
2014-05-11 17:13:48 -04:00
Chris St. Pierre
745368242e
Allow passing security groups by ID when creating instances
2014-05-07 10:04:07 -04:00