Add failing test for EnableIAMDatabaseAuthentication snapshot

This commit is contained in:
Guilherme Martins Crocetti 2020-02-02 13:08:13 -03:00
parent 51e787fba6
commit eb0687eeaa

View File

@ -1704,3 +1704,21 @@ def test_create_database_with_iam_authentication():
db_instance = database["DBInstance"]
db_instance["IAMDatabaseAuthenticationEnabled"].should.equal(True)
@mock_rds2
def test_create_db_snapshot_with_iam_authentication():
conn = boto3.client("rds", region_name="us-west-2")
conn.create_db_instance(
DBInstanceIdentifier="rds",
DBInstanceClass="db.t1.micro",
Engine="postgres",
EnableIAMDatabaseAuthentication=True,
)
snapshot = conn.create_db_snapshot(
DBInstanceIdentifier="rds", DBSnapshotIdentifier="snapshot"
).get("DBSnapshot")
snapshot.get("IAMDatabaseAuthenticationEnabled").should.equal(True)