@@ -12,12 +12,10 @@ func TestAccSumologicSCEMatchList_createAndUpdate(t *testing.T) {
1212 SkipCseTest (t )
1313
1414 var matchList CSEMatchListGet
15- nActive := true
1615 nDefaultTtl := 10800
1716 nDescription := "New Match List Description"
1817 nName := "Match List Name"
1918 nTargetColumn := "SrcIp"
20- liActive := true
2119 liDescription := "Match List Item Description"
2220 liValue := "value"
2321 liExpiration := "2122-02-27T04:00:00"
@@ -32,15 +30,15 @@ func TestAccSumologicSCEMatchList_createAndUpdate(t *testing.T) {
3230 CheckDestroy : testAccCSEMatchListDestroy ,
3331 Steps : []resource.TestStep {
3432 {
35- Config : testCreateCSEMatchListConfig (nActive , nDefaultTtl , nDescription , nName , nTargetColumn , liActive , liDescription , liExpiration , liValue ),
33+ Config : testCreateCSEMatchListConfig (nDefaultTtl , nDescription , nName , nTargetColumn , liDescription , liExpiration , liValue ),
3634 Check : resource .ComposeTestCheckFunc (
3735 testCheckCSEMatchListExists (resourceName , & matchList ),
3836 testCheckMatchListValues (& matchList , nDefaultTtl , nDescription , nName , nTargetColumn ),
3937 resource .TestCheckResourceAttrSet (resourceName , "id" ),
4038 ),
4139 },
4240 {
43- Config : testCreateCSEMatchListConfig (nActive , uDefaultTtl , uDescription , nName , nTargetColumn , liActive , uliDescription , liExpiration , liValue ),
41+ Config : testCreateCSEMatchListConfig (uDefaultTtl , uDescription , nName , nTargetColumn , uliDescription , liExpiration , liValue ),
4442 Check : resource .ComposeTestCheckFunc (
4543 testCheckCSEMatchListExists (resourceName , & matchList ),
4644 testCheckMatchListValues (& matchList , uDefaultTtl , uDescription , nName , nTargetColumn ),
@@ -73,22 +71,20 @@ func testAccCSEMatchListDestroy(s *terraform.State) error {
7371 return nil
7472}
7573
76- func testCreateCSEMatchListConfig (nActive bool , nDefaultTtl int , nDescription string , nName string , nTargetColumn string , liActive bool , liDescription string , liExpiration string , liValue string ) string {
74+ func testCreateCSEMatchListConfig (nDefaultTtl int , nDescription string , nName string , nTargetColumn string , liDescription string , liExpiration string , liValue string ) string {
7775 return fmt .Sprintf (`
7876resource "sumologic_cse_match_list" "match_list" {
79- active = "%t"
8077 default_ttl = "%d"
8178 description = "%s"
8279 name = "%s"
8380 target_column = "%s"
8481 items {
85- active = "%t"
8682 description = "%s"
8783 expiration = "%s"
8884 value = "%s"
8985 }
9086}
91- ` , nActive , nDefaultTtl , nDescription , nName , nTargetColumn , liActive , liDescription , liExpiration , liValue )
87+ ` , nDefaultTtl , nDescription , nName , nTargetColumn , liDescription , liExpiration , liValue )
9288}
9389
9490func testCheckCSEMatchListExists (n string , matchList * CSEMatchListGet ) resource.TestCheckFunc {
0 commit comments