Skip to content

Commit

Permalink
Add support for copy_db_cluster_snapshot for rds_cluster_snapshot (an…
Browse files Browse the repository at this point in the history
…sible-collections#840)

Add support for copy_db_cluster_snapshot for rds_cluster_snapshot

SUMMARY

Add support for copy_db_cluster_snapshot for rds_cluster_snapshot

Necessary for ansible-collections/community.aws#788
Just to verify:
Depends-On: ansible/ansible-zuul-jobs#1520
ISSUE TYPE


Feature Pull Request

COMPONENT NAME

module_utils/rds.py
ADDITIONAL INFORMATION

Reviewed-by: Joseph Torcasso <None>
Reviewed-by: Jill R <None>
  • Loading branch information
alinabuzachis authored and jatorcasso committed Jun 24, 2022
1 parent eacf4c0 commit 773852e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/module_utils/rds.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

cluster_snapshot_method_names = [
'create_db_cluster_snapshot', 'delete_db_cluster_snapshot', 'add_tags_to_resource', 'remove_tags_from_resource',
'list_tags_for_resource'
'list_tags_for_resource', 'copy_db_cluster_snapshot'
]

instance_snapshot_method_names = [
Expand Down
16 changes: 16 additions & 0 deletions tests/unit/module_utils/test_rds.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,22 @@ def test__get_rds_method_attribute_instance(method_name, params, expected, error
)
),
),
(
"copy_db_cluster_snapshot",
{
"source_db_cluster_snapshot_identifier": "test",
"db_cluster_snapshot_identifier": "test-copy"
},
*expected(
rds.Boto3ClientMethod(
name="copy_db_cluster_snapshot",
waiter="db_cluster_snapshot_available",
operation_description="copy DB cluster snapshot",
resource='cluster_snapshot',
retry_codes=['InvalidDBClusterSnapshotState']
)
),
),
(
"list_tags_for_resource",
{
Expand Down

0 comments on commit 773852e

Please sign in to comment.