@@ -145,7 +145,7 @@ func TestAccResourceAgentPolicy(t *testing.T) {
145
145
},
146
146
{
147
147
SkipFunc : versionutils .CheckIfVersionIsUnsupported (agent_policy .MinVersionInactivityTimeout ),
148
- Config : testAccResourceAgentPolicyCreateWithInactivityTimeout (policyName , false , "2m" ),
148
+ Config : testAccResourceAgentPolicyCreateWithInactivityTimeout (policyName ),
149
149
Check : resource .ComposeTestCheckFunc (
150
150
resource .TestCheckResourceAttr ("elasticstack_fleet_agent_policy.test_policy" , "name" , fmt .Sprintf ("Policy %s" , policyName )),
151
151
resource .TestCheckResourceAttr ("elasticstack_fleet_agent_policy.test_policy" , "namespace" , "default" ),
@@ -308,7 +308,7 @@ data "elasticstack_fleet_enrollment_tokens" "test_policy" {
308
308
` , fmt .Sprintf ("Policy %s" , id ), skipDestroy )
309
309
}
310
310
311
- func testAccResourceAgentPolicyCreateWithInactivityTimeout (id string , skipDestroy bool , inactivityTimeout string ) string {
311
+ func testAccResourceAgentPolicyCreateWithInactivityTimeout (id string ) string {
312
312
return fmt .Sprintf (`
313
313
provider "elasticstack" {
314
314
elasticsearch {}
@@ -321,15 +321,15 @@ resource "elasticstack_fleet_agent_policy" "test_policy" {
321
321
description = "Test Agent Policy with Inactivity Timeout"
322
322
monitor_logs = true
323
323
monitor_metrics = false
324
- skip_destroy = %t
325
- inactivity_timeout = "%s "
324
+ skip_destroy = false
325
+ inactivity_timeout = "2m "
326
326
}
327
327
328
328
data "elasticstack_fleet_enrollment_tokens" "test_policy" {
329
329
policy_id = elasticstack_fleet_agent_policy.test_policy.policy_id
330
330
}
331
331
332
- ` , fmt .Sprintf ("Policy %s" , id ), skipDestroy , inactivityTimeout )
332
+ ` , fmt .Sprintf ("Policy %s" , id ))
333
333
}
334
334
335
335
func testAccResourceAgentPolicyCreateWithBadGlobalDataTags (id string , skipDestroy bool ) string {
0 commit comments