Bert Blommers
9dccebc184
Deprecate RDS2 ( #4920 )
2022-03-09 10:05:18 -01:00
steffyP
b6f4584737
RDS: enable add and remove tag for resources ( #4882 )
2022-02-24 13:18:43 -01:00
steffyP
e3fc799b95
RDS modify-db-instance: raise DBParameterGroupNotFoundError if the DBParameterGroupName does not exist ( #4879 )
2022-02-21 22:32:37 -01:00
Dmytro Kazanzhy
a94f72cb90
RDS cluster engines' versions fix ( #4844 )
2022-02-08 16:37:05 -01:00
Dmytro Kazanzhy
cb60761510
Added event subscriptions: create_event_subscription, delete_event_subscription, describe_event_subscriptions ( #4807 )
2022-01-29 11:24:28 -01:00
Dmytro Kazanzhy
f158f0e985
Add RDS methods: start_export_task, cancel_export_task, describe_export_tasks ( #4803 )
2022-01-28 21:40:30 -01:00
Dmytro Kazanzhy
3ae6841b48
Local: Add RDS methods: copy_db_snapshot, copy_db_cluster_snapshot, create_db_cluster_snapshot, delete_db_cluster_snapshot, describe_db_cluster_snapshots ( #4790 )
2022-01-27 22:22:51 -01:00
Bert Blommers
ea67a15dcd
RDS - Implement DeletionProtection for Instances/Clusters ( #4614 )
2021-11-22 16:07:05 -01:00
Bert Blommers
14a69c7524
Techdebt: Enable pylint rules ( #4432 )
2021-10-18 19:44:29 +00:00
Bert Blommers
4795888fda
RDS - Cluster-methods + restore_db_from_snapshot ( #4247 )
2021-10-10 19:18:19 +00:00
Bert Blommers
e9a4100324
Rewrite deprecated CloudFormation tests ( #3842 )
2021-10-04 13:47:40 +00:00
Bert Blommers
79f0cc9e9e
Tech debt - remove dead DynamoDB code and add RDS tests ( #4136 )
2021-08-04 17:24:26 +01:00
Bert Blommers
0388b778dd
EC2/RDS2 - New tests ( #4127 )
2021-08-03 15:06:06 +01:00
Bert Blommers
5e4bccc22d
Use centralized ACCOUNT_ID ( #4029 )
2021-06-23 18:03:11 +01:00
David Baumgold
3af87963d1
Py3: use unittest.mock instead of mock ( #3481 )
...
* Py3: use unittest.mock instead of mock
* noqa
* oops
* just pull in patch()
* ignore RuntimeError when stopping patch
* ignore RuntimeError from default_session_mock.stop()
2021-04-06 10:22:42 +01:00
Brian Pandola
ae2865d559
Minor RDS Clean up ( #3682 )
...
* Fix `DBInstanceNotFound` error message
Changed from `Database` to `DBInstance`, which is actually what comes back from AWS.
* Remove duplicate test
The removed test actually fails if run in isolation because `rds2` is not a
valid boto3 client service. The reason this test never caused CI to fail is
because it is redefined later in the test suite, effectively making it dead
code that will never run.
Duplicate test has been removed and the remaining test has been improved
with more explicit asserts.
2021-02-13 11:12:02 +00:00
Brian Pandola
8557fb8439
Add support for RDS resource filtering ( #3669 )
...
* Add support for RDS resource filtering
* Extensive testing was performed against real AWS endpoints in order to
nail down the filter behavior under various scenarios, ensuring that
`moto` returns the proper response or error.
* Full test coverage of all utility functions as well as several
filter/parameter combinations.
* Split up filter tests, per PR feedback
* Remove unused import
* Fix pytest teardown failure on Python 2.7
2021-02-10 09:06:54 +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
usmangani1
b2adcdf518
Fix:RDS:add DBParameterGroupArn in describe-db-parameter-groups & cre… ( #3462 )
...
* Fix:RDS:add DBParameterGroupArn in describe-db-parameter-groups & create-db-parameter-group
* Test change
* Fixed tests
* tests change acconutID
* linting
Co-authored-by: usmankb <usman@krazybee.com>
2020-12-01 19:53:01 +00:00
Brian Pandola
d29475ed19
Fix: TagList
missing in rds:DescribeDBInstance response ( #3459 )
...
Previously, tags were only available via rds:ListTagsForResource, but are now
included in the Create/DescribeDBInstance responses as of Botocore 1.18.17[1]
[1]: f29d23c53e (diff-d10722c0e11ded323c8d240066d7ed31e93a1e6423d54e091b7d54b86e6bd4e0)
Fixes #3458
2020-11-16 09:30:53 +00: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
Hugo Lopes Tavares
4dc46a697d
Bugfix: Allow stop_db_instance for compatible engines
...
From the RDS documentation:
You can stop and start a DB instance whether it is configured for a single Availability Zone or for Multi-AZ, for database engines that support Multi-AZ deployments. You can't stop an Amazon RDS for SQL Server DB instance in a Multi-AZ configuration.
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_StopInstance.html#USER_StopInstance.Limitations
2020-04-16 15:14:37 -04:00
Guilherme Martins Crocetti
9f8388e402
Change test name in favor of abbreviation
2020-02-02 13:19:50 -03:00
Guilherme Martins Crocetti
eb0687eeaa
Add failing test for EnableIAMDatabaseAuthentication snapshot
2020-02-02 13:08:13 -03:00
Guilherme Martins Crocetti
c36371e235
Add failing test for database creation with iam
2020-02-02 12:47:54 -03:00
Asher Foa
d9d055c75d
Fix more typos.
2020-01-23 10:15:02 -08:00
Asher Foa
96e5b1993d
Run black on moto & test directories.
2019-10-31 10:36:05 -07:00
Stephen Huff
7b1cf9eecd
fix(rds2): handle create_db_instance when AllocatedStorage is not specified
...
In all of the tests of `create_db_instance()`, the `AllocatedStorage`
parameter is provided. The [RDS API
reference](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html )
says this parameter is optional; however, when none is provided, moto
returns an obscure error message:
```
self = <botocore.parsers.QueryParser object at 0x113745890>, shape = <Shape(Integer)>, text = 'None'
@_text_content
def _handle_integer(self, shape, text):
> return int(text)
E ValueError: invalid literal for int() with base 10: 'None'
/usr/local/Cellar/pyenv/1.2.13_1/versions/3.7.4/envs/rds_encrypt/lib/python3.7/site-packages/botocore/parsers.py:466: ValueError
```
This PR adds default values that correspond to the current default API
behaviors.
2019-10-15 16:18:37 -04:00
Berislav Kovacki
4ed189c454
Add support for VpcSecurityGroups set/update in RDS
2019-07-13 08:19:23 +02:00
Berislav Kovacki
4fd0b5c710
Add support for OptionGroupName in create_db_instance
2019-07-11 22:43:42 +02:00
Berislav Kovacki
c51ce76ee9
Add InstanceCreateTime to DBInstance
2019-07-09 02:10:33 +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
Jon Beilke
6eb490ac78
add support for tags to rds snapshots
2018-09-21 12:03:13 -05:00
Jon Beilke
bf9b37142e
no need for [DBSnapshot] with list_tags_for_resource as the retuned snapshot already handles it
2018-09-21 08:49:45 -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
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
rocky4570fft
592bf868ff
remove test for rds snapshot quota exceed as moto_server doesnt support it
2017-08-15 10:34:10 +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
ed39c2ea4e
fix up some issues found in unittests - comment out snapshotting until later
2017-08-14 00:27:15 +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
63f01039c3
Implementing RDS Snapshots
2017-06-20 13:52:21 -07:00
Jack Danger Canty
05ddcef2a0
Re-enabling tests on Python3
2017-06-20 11:58:18 -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