88
99 "github.com/hashicorp/terraform-plugin-sdk/helper/resource"
1010 "github.com/hashicorp/terraform-plugin-sdk/terraform"
11- "github.com/hashicorp/terraform/helper/acctest"
1211)
1312
1413func TestAccSumologicToken_basic (t * testing.T ) {
@@ -29,7 +28,7 @@ func TestAccSumologicToken_basic(t *testing.T) {
2928 {
3029 ResourceName : "sumologic_token.foo" ,
3130 ImportState : true ,
32- ImportStateVerify : true ,
31+ ImportStateVerify : false ,
3332 },
3433 },
3534 })
@@ -56,7 +55,7 @@ func TestAccSumologicToken_create(t *testing.T) {
5655 resource .TestCheckResourceAttr ("sumologic_token.test" , "description" , testDescription ),
5756 resource .TestCheckResourceAttr ("sumologic_token.test" , "status" , testStatus ),
5857 resource .TestCheckResourceAttr ("sumologic_token.test" , "type" , testType ),
59- resource .TestCheckResourceAttr ("sumologic_token.test" , "version" , 0 ),
58+ resource .TestCheckResourceAttr ("sumologic_token.test" , "version" , "0" ),
6059 ),
6160 },
6261 },
@@ -126,10 +125,10 @@ func TestAccSumologicToken_update(t *testing.T) {
126125 testAccCheckTokenExists ("sumologic_token.test" , & token , t ),
127126 testAccCheckTokenAttributes ("sumologic_token.test" ),
128127 resource .TestCheckResourceAttr ("sumologic_token.test" , "name" , testName ),
129- resource .TestCheckResourceAttr ("sumologic_token.test" , "discription " , testDescription ),
128+ resource .TestCheckResourceAttr ("sumologic_token.test" , "description " , testDescription ),
130129 resource .TestCheckResourceAttr ("sumologic_token.test" , "status" , testStatus ),
131130 resource .TestCheckResourceAttr ("sumologic_token.test" , "type" , testType ),
132- resource .TestCheckResourceAttr ("sumologic_token.test" , "version" , 0 ),
131+ resource .TestCheckResourceAttr ("sumologic_token.test" , "version" , "0" ),
133132 ),
134133 },
135134 {
@@ -141,7 +140,7 @@ func TestAccSumologicToken_update(t *testing.T) {
141140 resource .TestCheckResourceAttr ("sumologic_token.test" , "description" , testUpdatedDescription ),
142141 resource .TestCheckResourceAttr ("sumologic_token.test" , "status" , testUpdatedStatus ),
143142 resource .TestCheckResourceAttr ("sumologic_token.test" , "type" , testType ),
144- resource .TestCheckResourceAttr ("sumologic_token.test" , "version" , 1 ),
143+ resource .TestCheckResourceAttr ("sumologic_token.test" , "version" , "1" ),
145144 ),
146145 },
147146 },
@@ -177,7 +176,6 @@ resource "sumologic_token" "test" {
177176 description = "%s"
178177 status = "%s"
179178 type = "CollectorRegistration"
180- version = 0
181179}
182180` , name , description , status )
183181}
@@ -189,7 +187,7 @@ func testAccCheckTokenAttributes(name string) resource.TestCheckFunc {
189187 resource .TestCheckResourceAttrSet (name , "description" ),
190188 resource .TestCheckResourceAttrSet (name , "status" ),
191189 resource .TestCheckResourceAttrSet (name , "type" ),
192- resource .TestCheckResourceAttrSet (name , "version" )
190+ resource .TestCheckResourceAttrSet (name , "version" ),
193191 )
194192 return f (s )
195193 }
0 commit comments