Add failing test for database creation with iam
This commit is contained in:
parent
da40c7125a
commit
c36371e235
@ -1689,3 +1689,18 @@ def test_create_parameter_group_with_tags():
|
|||||||
ResourceName="arn:aws:rds:us-west-2:1234567890:pg:test"
|
ResourceName="arn:aws:rds:us-west-2:1234567890:pg:test"
|
||||||
)
|
)
|
||||||
result["TagList"].should.equal([{"Value": "bar", "Key": "foo"}])
|
result["TagList"].should.equal([{"Value": "bar", "Key": "foo"}])
|
||||||
|
|
||||||
|
|
||||||
|
@mock_rds2
|
||||||
|
def test_create_database_with_iam_authentication():
|
||||||
|
conn = boto3.client("rds", region_name="us-west-2")
|
||||||
|
|
||||||
|
database = conn.create_db_instance(
|
||||||
|
DBInstanceIdentifier="rds",
|
||||||
|
DBInstanceClass="db.t1.micro",
|
||||||
|
Engine="postgres",
|
||||||
|
EnableIAMDatabaseAuthentication=True,
|
||||||
|
)
|
||||||
|
|
||||||
|
db_instance = database["DBInstance"]
|
||||||
|
db_instance["IAMDatabaseAuthenticationEnabled"].should.equal(True)
|
||||||
|
Loading…
Reference in New Issue
Block a user