Merge pull request #935 from JackDanger/support-rds-default-ports
support default ports in RDS
This commit is contained in:
commit
bbfd307f5e
2 changed files with 32 additions and 0 deletions
|
|
@ -992,6 +992,20 @@ def test_create_db_instance_with_parameter_group():
|
|||
'ParameterApplyStatus'].should.equal('in-sync')
|
||||
|
||||
|
||||
@disable_on_py3()
|
||||
@mock_rds2
|
||||
def test_create_database_with_default_port():
|
||||
conn = boto3.client('rds', region_name='us-west-2')
|
||||
database = conn.create_db_instance(DBInstanceIdentifier='db-master-1',
|
||||
AllocatedStorage=10,
|
||||
Engine='postgres',
|
||||
DBInstanceClass='db.m1.small',
|
||||
MasterUsername='root',
|
||||
MasterUserPassword='hunter2',
|
||||
DBSecurityGroups=["my_sg"])
|
||||
database['DBInstance']['Endpoint']['Port'].should.equal(5432)
|
||||
|
||||
|
||||
@disable_on_py3()
|
||||
@mock_rds2
|
||||
def test_modify_db_instance_with_parameter_group():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue