Add failing test for EnableIAMDatabaseAuthentication snapshot
This commit is contained in:
parent
51e787fba6
commit
eb0687eeaa
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user