Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
hila-krut-sysdig committed Sep 30, 2024
1 parent f00e48f commit 8a69dd2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion sysdig/resource_sysdig_secure_accept_posture_risk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestAcceptSecurePostureRisk(t *testing.T) {
Config: acceptPostureRiskResource(),
},
{
ResourceName: "sysdig_secure_posture_accept_risk.accept_resource",
Config: acceptPostureRiskZone(),
},
},
})
Expand All @@ -39,3 +39,14 @@ resource "sysdig_secure_posture_accept_risk" "accept_resource" {
filter = "name in ('system:controller:daemon-set-s') and kind in ('ClusterRole')"
}`
}

func acceptPostureRiskZone() string {
return `
resource "sysdig_secure_posture_accept_risk" "accept_resource" {
description = "test accept posture risk resource"
control_name = "ServiceAccounts with cluster access"
reason = "Risk Transferred"
expires_in = "30 Days"
filter = "name in ('system:controller:daemon-set-s') and kind in ('ClusterRole')"
}`
}

0 comments on commit 8a69dd2

Please sign in to comment.