Skip to content

Commit 29b0166

Browse files
committed
fix test
1 parent 6fd2ef3 commit 29b0166

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

sysdig/data_source_sysdig_secure_rule_stateful.go

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,28 +28,31 @@ func dataSourceSysdigSecureRuleStateful() *schema.Resource {
2828
Required: true,
2929
ForceNew: true,
3030
},
31+
"id": {
32+
Type: schema.TypeInt,
33+
Computed: true,
34+
},
3135
"version": {
3236
Type: schema.TypeInt,
3337
Computed: true,
3438
},
3539
"source": {
3640
Type: schema.TypeString,
37-
Required: true,
41+
Computed: true,
3842
ValidateDiagFunc: validateDiagFunc(validateStatefulRuleSource),
3943
},
4044
"ruletype": {
4145
Type: schema.TypeString,
42-
Required: true,
46+
Computed: true,
4347
ValidateDiagFunc: validateDiagFunc(validateStatefulRuleType),
4448
},
4549
"append": {
4650
Type: schema.TypeBool,
47-
Optional: true,
48-
Default: true,
51+
Computed: true,
4952
},
5053
"exceptions": {
5154
Type: schema.TypeList,
52-
Required: true,
55+
Computed: true,
5356
Elem: &schema.Resource{
5457
Schema: map[string]*schema.Schema{
5558
"name": {

sysdig/data_source_sysdig_secure_rule_stateful_test.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,6 @@ func ruleStatefulDataSource() string {
4646
4747
data "sysdig_secure_rule_stateful" "data_stateful_rule_append" {
4848
name = "API Gateway Enumeration Detected"
49-
source = "awscloudtrail_stateful"
50-
ruletype = "STATEFUL_SEQUENCE"
51-
exceptions {
52-
values = jsonencode([["user_abc", ["12345"]]])
53-
name = "user_accountid"
54-
}
5549
depends_on = [ sysdig_secure_rule_stateful.stateful_rule_append ]
5650
}
5751
`, ruleStatefulAppend())

0 commit comments

Comments
 (0)