Skip to content

Commit c115ce1

Browse files
authored
datatags -- update test should test the removal of tag2
1 parent 5b9b0e6 commit c115ce1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/fleet/agent_policy/resource_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ func TestAccResourceAgentPolicy(t *testing.T) {
147147
resource.TestCheckResourceAttr("elasticstack_fleet_agent_policy.test_policy", "monitor_metrics", "true"),
148148
resource.TestCheckResourceAttr("elasticstack_fleet_agent_policy.test_policy", "skip_destroy", "false"),
149149
resource.TestCheckResourceAttr("elasticstack_fleet_agent_policy.test_policy", "global_data_tags.tag1.string_value", "value1a"),
150+
resource.TestCheckNoResourceAttr("elasticstack_fleet_agent_policy.test_policy", "global_data_tags.tag2"),
150151
),
151152
},
152153
{

0 commit comments

Comments
 (0)