Add check for UnknownSnapshotCopyRegionFault error
This commit is contained in:
parent
b4d7d183ab
commit
cf7869d0e2
3 changed files with 21 additions and 0 deletions
|
|
@ -1268,6 +1268,15 @@ def test_enable_snapshot_copy():
|
|||
ex.value.response["Error"]["Message"].should.contain(
|
||||
"SnapshotCopyGrantName is required for Snapshot Copy on KMS encrypted clusters."
|
||||
)
|
||||
with pytest.raises(ClientError) as ex:
|
||||
client.enable_snapshot_copy(
|
||||
ClusterIdentifier="test",
|
||||
DestinationRegion="us-east-1",
|
||||
RetentionPeriod=3,
|
||||
SnapshotCopyGrantName="invalid-us-east-1-to-us-east-1",
|
||||
)
|
||||
ex.value.response["Error"]["Code"].should.equal("UnknownSnapshotCopyRegionFault")
|
||||
ex.value.response["Error"]["Message"].should.contain("Invalid region us-east-1")
|
||||
client.enable_snapshot_copy(
|
||||
ClusterIdentifier="test",
|
||||
DestinationRegion="us-west-2",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue