@@ -2,7 +2,6 @@ package sumologic
22
33import (
44 "fmt"
5- "os"
65 "strings"
76 "testing"
87
@@ -25,7 +24,7 @@ func TestAccSumologicSCEMatchList_createAndUpdate(t *testing.T) {
2524 liDescription := "Match List Item Description"
2625 liExpiration := "2122-02-27T04:00:00"
2726 liValue := "value"
28- liCount := 1
27+ liCount := 2
2928
3029 // Update values
3130 uDefaultTtl := 3600
@@ -40,7 +39,7 @@ func TestAccSumologicSCEMatchList_createAndUpdate(t *testing.T) {
4039 Providers : testAccProviders ,
4140 CheckDestroy : testAccCSEMatchListDestroy ,
4241 Steps : []resource.TestStep {
43- // Creates a match list with 1 match list item
42+ // Creates a match list with 2 match list items
4443 {
4544 Config : testCreateCSEMatchListConfig (nDefaultTtl , nDescription , nName , nTargetColumn , liDescription , liExpiration , liValue , liCount ),
4645 Check : resource .ComposeTestCheckFunc (
@@ -50,7 +49,7 @@ func TestAccSumologicSCEMatchList_createAndUpdate(t *testing.T) {
5049 resource .TestCheckResourceAttrSet (resourceName , "id" ),
5150 ),
5251 },
53- // Updates the match list and its 1 match list item
52+ // Updates the match list and its 2 match list items
5453 {
5554 Config : testCreateCSEMatchListConfig (uDefaultTtl , uDescription , nName , nTargetColumn , liDescription , liExpiration , liValue , liCount ),
5655 Check : resource .ComposeTestCheckFunc (
@@ -60,7 +59,7 @@ func TestAccSumologicSCEMatchList_createAndUpdate(t *testing.T) {
6059 resource .TestCheckResourceAttrSet (resourceName , "id" ),
6160 ),
6261 },
63- // Deletes the 1 match list item and adds 3 new ones
62+ // Deletes the 2 old match list items and adds 3 new ones
6463 {
6564 Config : testCreateCSEMatchListConfig (uDefaultTtl , uDescription , nName , nTargetColumn , uliDescription , uliExpiration , uliValue , uliCount ),
6665 Check : resource .ComposeTestCheckFunc (
@@ -123,8 +122,6 @@ resource "sumologic_cse_match_list" "match_list" {
123122 target_column = "%s" %s
124123}` , nDefaultTtl , nDescription , nName , nTargetColumn , itemsStr )
125124
126- fmt .Fprintln (os .Stdout , "testCreateCSEMatchListConfig: " , str )
127-
128125 return str
129126}
130127
0 commit comments