From eb0687eeaa3fb544c139c0dec43b2b6b828dbaa8 Mon Sep 17 00:00:00 2001 From: Guilherme Martins Crocetti Date: Sun, 2 Feb 2020 13:08:13 -0300 Subject: [PATCH] Add failing test for EnableIAMDatabaseAuthentication snapshot --- tests/test_rds2/test_rds2.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/test_rds2/test_rds2.py b/tests/test_rds2/test_rds2.py index 6dc42fbc1..7e6670e9b 100644 --- a/tests/test_rds2/test_rds2.py +++ b/tests/test_rds2/test_rds2.py @@ -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)