Skip to content

Commit

Permalink
DET-362: Add rule tuning expression import test.
Browse files Browse the repository at this point in the history
  • Loading branch information
pwardecki-sumo committed Jan 19, 2024
1 parent baabd1d commit fc5df75
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sumologic/resource_sumologic_cse_rule_tuning_expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func resourceSumologicCSERuleTuningExpressionRead(d *schema.ResourceData, meta i
d.Set("enabled", CSERuleTuningExpressionGet.Enabled)
d.Set("exclude", CSERuleTuningExpressionGet.Exclude)
d.Set("is_global", CSERuleTuningExpressionGet.IsGlobal)
d.Set("rule_Ids", CSERuleTuningExpressionGet.RuleIds)
d.Set("rule_ids", CSERuleTuningExpressionGet.RuleIds)

return nil
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ func TestAccSumologicSCERuleTuningExpression_create(t *testing.T) {
resource.TestCheckResourceAttrSet(resourceName, "id"),
),
},
{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
},
},
})
}
Expand Down

0 comments on commit fc5df75

Please sign in to comment.