Skip to content

Commit

Permalink
testAccIndexingConfiguration_allAttributes: Test '$' in 'named_shadow…
Browse files Browse the repository at this point in the history
…_names'.
  • Loading branch information
ewbankkit committed Jan 10, 2024
1 parent d7ecfb5 commit 11c3e6a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/service/iot/indexing_configuration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ func testAccIndexingConfiguration_allAttributes(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "thing_indexing_configuration.0.named_shadow_indexing_mode", "ON"),
resource.TestCheckResourceAttr(resourceName, "thing_indexing_configuration.0.thing_connectivity_indexing_mode", "STATUS"),
resource.TestCheckResourceAttr(resourceName, "thing_indexing_configuration.0.thing_indexing_mode", "REGISTRY_AND_SHADOW"),
resource.TestCheckResourceAttr(resourceName, "thing_indexing_configuration.0.filter.0.named_shadow_names.#", "1"),
resource.TestCheckResourceAttr(resourceName, "thing_indexing_configuration.0.filter.0.named_shadow_names.0", "thing1shadow"),
resource.TestCheckResourceAttr(resourceName, "thing_indexing_configuration.0.filter.0.named_shadow_names.#", "2"),
resource.TestCheckTypeSetElemAttr(resourceName, "thing_indexing_configuration.0.filter.0.named_shadow_names.*", "thing1shadow"),
resource.TestCheckTypeSetElemAttr(resourceName, "thing_indexing_configuration.0.filter.0.named_shadow_names.*", "$package"),
),
},
{
Expand Down Expand Up @@ -131,7 +132,7 @@ resource "aws_iot_indexing_configuration" "test" {
named_shadow_indexing_mode = "ON"
filter {
named_shadow_names = ["thing1shadow"]
named_shadow_names = ["thing1shadow", "$package"]
}
custom_field {
Expand Down

0 comments on commit 11c3e6a

Please sign in to comment.