Commit Graph

274 Commits

Author SHA1 Message Date
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
Colin Johnson
853d6768ce moto-152 - return vpc.id if exists else return nothing 2014-07-25 05:16:53 +00:00
Konstantinos Koukopoulos
60bba47624 switch to using boto's SpotInstanceRequest in backend 2014-06-17 19:04:38 +03:00
Ilya Sukhanov
bcb0e7a3d4 Implement internet gateway mocking 2014-06-08 09:45:18 -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
Chris St. Pierre
fab37942c4 Consistent _get_multi_param() function in responses
This abstracts _get_multi_param() into BaseResponse and makes it
always ensure that the string it has been given ends with a '.'.  It
had been implemented in three different places, and in use it rarely
postpended a trailing period, which could make it match parameters it
shouldn't have.
2014-05-08 10:44:41 -04:00
Chris St. Pierre
745368242e Allow passing security groups by ID when creating instances 2014-05-07 10:04:07 -04:00
Chris St. Pierre
b244457c4f Added key_name support to instances 2014-05-07 10:04:07 -04:00
Chris St. Pierre
4ba4dd5e26 Added subnet_id support to instances 2014-05-07 10:04:07 -04:00
Chris St. Pierre
5ba2b3cb9a Added instance_type support to instances 2014-05-07 10:04:07 -04:00
Ilya Sukhanov
15b750a277 Implement ec2 dhcp_options 2014-04-22 17:47:40 -04:00
Steve Pulec
815bb8846c Change subnets to only have a reference to the vpc_id. 2014-03-28 16:37:55 -04:00
Steve Pulec
ef876dd27e Fix merge conflicts. Add basic cloudformation support. Closes #111. 2014-03-27 19:12:53 -04:00
Steve Pulec
140f1c2000 Add ability to launch instances with security groups. 2014-03-22 14:02:47 -04:00
Jon Haddad
2b4fe552d1 VPC support for adding rules improving 2014-03-20 17:52:49 -07:00
Jon Haddad
cbdc8ba183 We're getting back the correct group from get_security_group_from_id,
but hitting another issue with the source_group_name also using an id
rather than a name
2014-03-20 17:26:08 -07:00
Konstantinos Koukopoulos
8db4097861 raise NotImplementedError when Filters are used in describe_key_pairs 2014-02-24 16:35:03 +02:00
Konstantinos Koukopoulos
e19967b7d5 support names in DescribeKeyPairs 2014-02-24 15:22:08 +02:00
Konstantinos Koukopoulos
72ae98128c really delete key pair 2014-02-24 13:38:46 +02:00
Konstantinos Koukopoulos
e7d2c2687a implement delete_key_pair, test zero case 2014-02-24 13:34:39 +02:00
Konstantinos Koukopoulos
99c6b8acbe test DescribeKeyPairs with more than one key pair 2014-02-24 13:20:47 +02:00
Konstantinos Koukopoulos
35063ca743 make duplicate key pair test pass 2014-02-24 13:13:23 +02:00
Konstantinos Koukopoulos
ddfe478479 implement test for create_key_pair 2014-02-24 13:03:26 +02:00
Konstantinos Koukopoulos
65beb30054 create KeyPairBackend in ec2 model, use in keypair test 2014-02-24 12:42:50 +02:00
Konstantinos Koukopoulos
d438b05d41 return empty key pairs response 2014-02-24 12:18:52 +02:00
sgarcialaguna
e1366165d1 Fixed typo in REQUEST_POST_INSTANCES_TEMPLATE 2014-01-29 19:41:47 +01:00
Hugo Lopes Tavares
90aa87d53e Fix DescribeImages to throw error if AMI requested does not exist 2014-01-28 18:15:29 -05:00
Steve Pulec
c1f224954e Cleanup some style 2013-12-29 08:59:07 -05:00
Steve Pulec
74e2c19865 Cleanup unused imports 2013-12-29 08:40:38 -05:00
Steve Pulec
f3890ffc31 Fix for EC2Response MRO 2013-12-29 08:34:07 -05:00
Steve Pulec
ec938ef904 Convert all EC2Response Mixins to subclasses. 2013-12-29 08:25:13 -05:00
Jon Haddad
48ee4b600b updated SC methods to work with a group_id, which must be used if it's a group in a VPC 2013-12-06 14:34:13 -08:00
Jon Haddad
0712d40f71 added vpc_id to deletion 2013-12-05 16:39:25 -08:00
Jon Haddad
6ad8e109e4 more concise jinja 2013-10-30 18:59:21 -07:00
Jon Haddad
9ae144bad8 correctly getting the vpc address back 2013-10-30 18:50:42 -07:00
Ilya Sukhanov
f8f8d25426 Implement Elastic IP 2013-10-08 22:30:21 -04:00
Ilya Sukhanov
a63601e481 Implement ImageId parameter in DescribeImages 2013-10-08 22:30:21 -04:00
Ilya Sukhanov
b5a454e0da When manipulating instance save end states instead of transitional
When starting an instance it should eventually enter running state. At
least in the normal case. So we report pending but save running, this
way when client requests state of instance a second time, we reply with
running.

Similar thing for stop/terminate/reboot.
2013-10-08 22:30:21 -04:00
Steve Pulec
3bddbb4af3 Test out py26 with new HTTPretty 2013-10-03 20:34:13 -04:00
Steve Pulec
a0e2cb3d98 Add EC2 spot instances 2013-08-17 18:11:29 -04:00
Steve Pulec
421a5e60af Fix EC2 response tags. Closes #37. 2013-07-17 12:48:21 -04:00
Steve Pulec
46f9430bdd Fix bug with modifying original reservations 2013-07-08 22:20:55 -04:00
Steve Pulec
257ca9f771 Add ec2 filtering by instance state 2013-07-08 21:18:05 -04:00
Steve Pulec
76ea9172da Clean up ec2 instance state 2013-07-08 20:29:13 -04:00
Steve Pulec
fda5f83f87 Properly implement ec2.get_all_instances filtering by instance id 2013-07-08 19:25:47 -04:00
Steve Pulec
9f19662d1c allow passing user data to run_instances 2013-05-17 19:35:53 -04:00
Steve Pulec
47bd4c49a3 attempting to move to upstream httpretty 2013-05-03 19:33:13 -04:00
Steve Pulec
cd518d060e move to httpretty fork instead of bundling it. 2013-03-17 18:13:21 -04:00
Steve Pulec
2d98a9caef some more tests to bump coverage 2013-03-11 00:12:22 -04:00
Steve Pulec
316418df55 add subnets 2013-03-05 22:53:53 -05:00
Steve Pulec
584f1f01b6 add vpc commands 2013-03-05 22:33:41 -05:00
Steve Pulec
0d51349662 add get_console_output 2013-03-05 22:11:58 -05:00
Steve Pulec
e993917d4c pep8 2013-03-05 08:35:18 -05:00
Steve Pulec
a728b2581a Adding server mode 2013-03-05 08:14:43 -05:00
Steve Pulec
98fc1eeab9 update ec2 calls for boto 2.5 compat 2013-02-28 00:08:35 -05:00
Steve Pulec
459697508e remove extra newline 2013-02-27 01:20:10 -05:00
Steve Pulec
d32059f301 pep8 2013-02-26 00:31:01 -05:00
Steve Pulec
935e6bd95d fix tag deletion 2013-02-25 23:37:01 -05:00
Steve Pulec
89364ed864 Adding sqs queue creation 2013-02-23 22:26:46 -05:00
Steve Pulec
e261b82f29 add most of the snapshot implementation 2013-02-23 18:01:41 -05:00
Steve Pulec
f92a3ec00f volume attaching and detaching working 2013-02-23 17:37:55 -05:00
Steve Pulec
7464fcbbe9 clean up ec2 response init 2013-02-23 16:35:25 -05:00
Steve Pulec
0927e107fb when things arent implemented yet raise exception, not pdb 2013-02-23 16:32:40 -05:00
Steve Pulec
1c8af2881a add security group ingress rules 2013-02-23 16:27:43 -05:00
Steve Pulec
31f992fbe5 add, delete, describe security groups 2013-02-23 15:26:54 -05:00
Steve Pulec
fbd9206f23 add basic zone and region endpoints 2013-02-23 14:51:19 -05:00
Steve Pulec
351aca3c68 clean up instance attribute modification and add base AMI stuff 2013-02-23 14:22:09 -05:00
Steve Pulec
0bd4d57ef2 raise NotImplementedError if not implemented 2013-02-22 07:55:48 -05:00
Steve Pulec
27a086409e adding ec2 stubs 2013-02-21 23:13:01 -05:00
Steve Pulec
0df2864f99 convert ugly camelcase methods to nice, clean underscores 2013-02-21 19:34:57 -05:00
Steve Pulec
f824110ceb add ec2 tags 2013-02-20 23:19:43 -05:00
Steve Pulec
568d99dd42 refactor ec2 response structure 2013-02-20 22:21:55 -05:00