Skip to content

Commit

Permalink
chore: update test to handle CloudFormation API change
Browse files Browse the repository at this point in the history
The CloudFormation API now reports tag-only changes to
`AWS::SecretsManager::Secret` with
`ResourceTargetDefinition::Properties`.
  • Loading branch information
connec committed Jul 28, 2023
1 parent 72fe8e1 commit 0824777
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/it/change_set_detail.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,10 @@ async fn secrets_manager_secret_tags_only() -> Result<(), Box<dyn std::error::Er
.flatten()
.collect();
assert!(!targets.is_empty());
assert!(targets
.iter()
.all(|target| matches!(target, ResourceTargetDefinition::Tags)));
assert!(targets.iter().all(|target| matches!(
target,
ResourceTargetDefinition::Properties { name, .. } if name == "Tags"
)));

clean_up(stack_name).await?;

Expand Down

0 comments on commit 0824777

Please sign in to comment.