Commit Graph

75 Commits

Author SHA1 Message Date
Jon Beilke
67a0e06059 allow for adding and removing tags on rds snapshots 2018-09-21 13:54:07 -05:00
Jon Beilke
245e3a5f71 formatting fix for E111 indentation is not a multiple of four 2018-09-21 13:33:10 -05:00
Jon Beilke
7daee905a5 remove merge_taglists as AWS will only take submitted tags or tags from db but not both when creating snapshot 2018-09-21 13:28:13 -05:00
Jon Beilke
6eb490ac78 add support for tags to rds snapshots 2018-09-21 12:03:13 -05:00
Jon Beilke
1b8b32a663 add CopyTagsToSnapshot to db_kwargs 2018-09-21 11:13:33 -05:00
Jon Beilke
276da06168 added new merge_taglists() to moto.core.utils for merging lists of tags with precedence (ie. during rds2.create_snapshot) 2018-09-21 10:39:42 -05:00
Jon Beilke
881afc8f4a update RDS models to include CopyTagsToSnapshot 2018-09-21 08:31:31 -05:00
Steve Pulec
23b51c39a1
Merge pull request #1585 from bpandola/fix-1569
Fix rds.describe_db_snapshots bugs
2018-05-30 23:10:20 -04:00
Brian Pandola
37d6388640 Fix rds.describe_db_snapshots bugs
* Correctly return all snapshots for a given DBInstanceIdentifier.
* If an invalid DBInstanceIdentifier is passed in, return an empty array
  instead of raising a ClientError (which is what AWS actually does).

Fixes #1569
2018-04-19 20:21:27 -07:00
Steve Pulec
311966e28d Add IAMDatabaseAuthenticationEnabled and DbiResourceId to RDS response. Closes #1465. 2018-04-18 22:47:02 -04:00
Koudai Aono
518282dbd3 change get_param method to get_int_param 2018-01-25 00:51:14 +09:00
Koudai Aono
e4cf58d6fa cast MaxRecords to int on describe_db_instances 2018-01-25 00:51:14 +09:00
Ben Slusky
796fa6647b modify_db_instance should be able to rename DB instances (#1367) 2017-11-30 11:41:25 +00:00
justinsr20
17b8396a9c updated rds status from shutdown to stopped to match aws (#1347) 2017-11-20 09:07:36 +00:00
Terry Cain
596bf84480
Fixed typo 2017-10-25 20:14:39 +01:00
Terry Cain
9ddf7fe436
Fixed some tests.
Some subnets were bogus so fixed that. Fixed issue where EC2-Classic was not respected.
RDS Deepcopy was breaking on subnet generator
2017-10-25 19:29:56 +01:00
rocky4570fft
1c1ef9dc25 the linter is too linty 2017-08-15 00:58:33 +10:00
rocky4570fft
c84e8c86f0 modify to use create_snapshot, add extra tests for certain error conditions 2017-08-15 00:55:09 +10:00
rocky4570fft
f2cc60b999 satisfy the flake tests - doesnt like my flakey code :( 2017-08-14 00:41:26 +10:00
rocky4570fft
85dd2440f4 oopsie on api version dates for delete and create snapshot_templates, should be on stop/start rds instances 2017-08-14 00:32:08 +10:00
rocky4570fft
ed39c2ea4e fix up some issues found in unittests - comment out snapshotting until later 2017-08-14 00:27:15 +10:00
rocky4570fft
9687b6e03e get appropritate parameters - doh 2017-08-13 12:05:22 +10:00
rocky4570fft
6c3c6623bf should only call create_snapshot if db_snapshot_identifier is filled 2017-08-13 12:02:49 +10:00
rocky4570fft
7afd3532c6 fixup typos and cleanup code a little 2017-08-13 12:00:21 +10:00
rocky4570fft
ecf77d64cd add rds stop-start 2017-08-13 11:52:27 +10:00
Jack Danger Canty
c3d9f4e056 Persisting selected LicenseModel in RDS instances 2017-07-05 16:02:45 -07:00
Jack Danger Canty
e57798cb96 Implementing snapshots on rds instance deletion 2017-06-20 14:46:13 -07:00
Jack Danger Canty
8df7169915 Snapshots are optional 2017-06-20 14:01:30 -07:00
Jack Danger Canty
fb2efb1c6d Implementing snapshots on rds delete 2017-06-20 14:00:56 -07:00
Jack Danger Canty
ccb4ffde7c Supporting io1 type 2017-06-20 13:53:22 -07:00
Jack Danger Canty
63f01039c3 Implementing RDS Snapshots 2017-06-20 13:52:21 -07:00
Jack Danger Canty
559a863d7f Include db_name when describing RDS instances 2017-06-13 17:09:09 -07:00
Steve Pulec
bbfd307f5e Merge pull request #935 from JackDanger/support-rds-default-ports
support default ports in RDS
2017-05-10 22:24:03 -04:00
Steve Pulec
0adebeed24 Merge #913. 2017-05-10 21:58:42 -04:00
Jack Danger Canty
6d8aa9d8f1 support default ports in RDS 2017-05-08 20:05:46 -10:00
Steve Pulec
a5da348fba Fix lint. 2017-03-15 23:43:48 -04:00
Steve Pulec
25e2af0320 Fix camelcase_to_underscore. Closes #767. 2017-03-15 23:39:36 -04:00
Adam Stauffer
c5853b48da update RDS responses to return DBInstanceArn 2017-03-13 16:48:22 -04:00
Steve Pulec
6d422d1f37 Add BaseModel to all models. 2017-03-11 23:41:12 -05: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
Steve Pulec
d3df810065 Generalize decorator code. 2017-02-12 00:22:29 -05:00
Michael Nussbaum
74bbd9c8e5 Various RDS, RDS/Cloudformation, RDS/KMS improvements. (#789)
We need to mock out deploying RDS instances with full disk encryption
and detailed tagging. We also need to be able do deploy these instances
with Cloudformation, and then access them with both boto and boto3.

* Join RDS and RDS2 backends - this makes RDS resources created via
  either of the two boto RDS APIs visible to both, more closely
  mirroring how AWS works
* Fix RDS responses that were returning JSON but should be returning XML
* Add mocking of RDS Cloudformation calls
* Add mocking of RDS full disk encryption with KMS
* Add mocking of RDS DBParameterGroups
* Fix mocking of RDS DBSecurityGroupIngress rules
* Make mocking of RDS OptionGroupOptions more accurate
* Fix mocking of RDS cross-region DB replication
* Add RDS tag support to:
  * DBs
  * DBSubnetGroups
  * DBSecurityGroups

Signed-off-by: Andrew Garrett <andrew.garrett@getbraintree.com>
2017-01-11 21:02:51 -05:00
Yoriyasu Yano
f0cc561aa7 Use correct kwarg when creating database 2015-10-20 09:12:59 -07:00
Jeffrey Gelens
c2f2c16892 Fixed non threadsafe code 2015-03-16 13:13:40 +01:00
Chris Henry
af41f69da0 fix: put db name in quotes, if present. 2015-02-15 18:51:34 -05:00
Mike Fuller
41507e4baa Fixes for tests run on python 2.6.9 2015-01-30 19:54:43 +11:00
Mike Fuller
cff5238929 Fixed up use of format using {} instead of {0} which seams to break python 2.6.x 2015-01-30 17:28:41 +11:00
Mike Fuller
0d958e9b1c Added read replica support 2015-01-30 17:12:51 +11:00
Mike Fuller
42ab9312bb Added db_subnet_group support 2015-01-30 08:18:15 +11:00