diff --git a/tests/test_kms/test_kms.py b/tests/test_kms/test_kms.py index ab7513b4d..0dc93b252 100644 --- a/tests/test_kms/test_kms.py +++ b/tests/test_kms/test_kms.py @@ -623,7 +623,7 @@ def test_kms_encrypt_boto3(): @mock_kms def test_disable_key(): - client = boto3.client('kms') + client = boto3.client('kms', region_name='us-east-1') key = client.create_key(Description='disable-key') client.disable_key( KeyId=key['KeyMetadata']['KeyId'] @@ -636,7 +636,7 @@ def test_disable_key(): @mock_kms def test_enable_key(): - client = boto3.client('kms') + client = boto3.client('kms', region_name='us-east-1') key = client.create_key(Description='enable-key') client.disable_key( KeyId=key['KeyMetadata']['KeyId'] @@ -652,7 +652,7 @@ def test_enable_key(): @mock_kms def test_schedule_key_deletion(): - client = boto3.client('kms') + client = boto3.client('kms', region_name='us-east-1') key = client.create_key(Description='schedule-key-deletion') with freeze_time("2015-01-01 12:00:00"): response = client.schedule_key_deletion( @@ -669,7 +669,7 @@ def test_schedule_key_deletion(): @mock_kms def test_schedule_key_deletion_custom(): - client = boto3.client('kms') + client = boto3.client('kms', region_name='us-east-1') key = client.create_key(Description='schedule-key-deletion') with freeze_time("2015-01-01 12:00:00"): response = client.schedule_key_deletion( @@ -687,7 +687,7 @@ def test_schedule_key_deletion_custom(): @mock_kms def test_cancel_key_deletion(): - client = boto3.client('kms') + client = boto3.client('kms', region_name='us-east-1') key = client.create_key(Description='cancel-key-deletion') client.schedule_key_deletion( KeyId=key['KeyMetadata']['KeyId']