@@ -219,21 +219,21 @@ resource "sumologic_role_v2" "test" {
219219}
220220
221221func TestAccSumologicRoleV2_selectionType_DefaultsToAll (t * testing.T ) {
222- var roleV2 RoleV2
223- testName := acctest .RandomWithPrefix ("tf-acc-test" )
224- testCapabilities := []string {"\" manageContent\" " }
225- testDescription := "Role with default selection_type"
226- testAuditDataFilter := "info"
227- testSecurityDataFilter := "error"
228- testLogAnalyticsFilter := "!_sourceCategory=collector"
222+ var roleV2 RoleV2
223+ testName := acctest .RandomWithPrefix ("tf-acc-test" )
224+ testCapabilities := []string {"\" manageContent\" " }
225+ testDescription := "Role with default selection_type"
226+ testAuditDataFilter := "info"
227+ testSecurityDataFilter := "error"
228+ testLogAnalyticsFilter := "!_sourceCategory=collector"
229229
230- resource .Test (t , resource.TestCase {
231- PreCheck : func () { testAccPreCheck (t ) },
232- Providers : testAccProviders ,
233- CheckDestroy : testAccCheckRoleV2Destroy (roleV2 ),
234- Steps : []resource.TestStep {
235- {
236- Config : fmt .Sprintf (`
230+ resource .Test (t , resource.TestCase {
231+ PreCheck : func () { testAccPreCheck (t ) },
232+ Providers : testAccProviders ,
233+ CheckDestroy : testAccCheckRoleV2Destroy (roleV2 ),
234+ Steps : []resource.TestStep {
235+ {
236+ Config : fmt .Sprintf (`
237237resource "sumologic_role_v2" "test" {
238238 name = "%s"
239239 audit_data_filter = "%s"
@@ -243,13 +243,13 @@ resource "sumologic_role_v2" "test" {
243243 log_analytics_filter = "%s"
244244}
245245` , testName , testAuditDataFilter , testCapabilities , testDescription , testSecurityDataFilter , testLogAnalyticsFilter ),
246- Check : resource .ComposeTestCheckFunc (
247- testAccCheckRoleV2Exists ("sumologic_role_v2.test" , & roleV2 , t ),
248- resource .TestCheckResourceAttr ("sumologic_role_v2.test" , "selection_type" , "All" ),
249- ),
250- },
251- {
252- Config : fmt .Sprintf (`
246+ Check : resource .ComposeTestCheckFunc (
247+ testAccCheckRoleV2Exists ("sumologic_role_v2.test" , & roleV2 , t ),
248+ resource .TestCheckResourceAttr ("sumologic_role_v2.test" , "selection_type" , "All" ),
249+ ),
250+ },
251+ {
252+ Config : fmt .Sprintf (`
253253resource "sumologic_role_v2" "test" {
254254 name = "%s"
255255 audit_data_filter = "%s"
@@ -260,14 +260,14 @@ resource "sumologic_role_v2" "test" {
260260 log_analytics_filter = "%s"
261261}
262262` , testName , testAuditDataFilter , testCapabilities , testDescription , testSecurityDataFilter , testLogAnalyticsFilter ),
263- Check : resource .ComposeTestCheckFunc (
264- testAccCheckRoleV2Exists ("sumologic_role_v2.test" , & roleV2 , t ),
265- // Even if user sets "", internally defaults to "All"
266- resource .TestCheckResourceAttr ("sumologic_role_v2.test" , "selection_type" , "All" ),
267- ),
268- },
269- },
270- })
263+ Check : resource .ComposeTestCheckFunc (
264+ testAccCheckRoleV2Exists ("sumologic_role_v2.test" , & roleV2 , t ),
265+ // Even if user sets "", internally defaults to "All"
266+ resource .TestCheckResourceAttr ("sumologic_role_v2.test" , "selection_type" , "All" ),
267+ ),
268+ },
269+ },
270+ })
271271}
272272
273273func testAccCheckRoleV2Attributes (name string ) resource.TestCheckFunc {
0 commit comments