Skip to content

Commit d8dee16

Browse files
sjain05ErikAtSumo
authored andcommitted
SUMO-245407: Add support for list apps v2 as data resource
1 parent 28bb50c commit d8dee16

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

sumologic/data_source_sumologic_folder_test.go

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"testing"
77

88
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
9-
"github.com/hashicorp/terraform-plugin-sdk/terraform"
109
)
1110

1211
func TestAccDataSourceFolder_basic(t *testing.T) {
@@ -17,31 +16,13 @@ func TestAccDataSourceFolder_basic(t *testing.T) {
1716
{
1817
Config: folderConfig("/Library/Users/[email protected]"),
1918
Check: resource.ComposeTestCheckFunc(
20-
testAccCheckSumoLogicfDataSourceID("data.sumologic_folder.personal_folder"),
2119
testAccDataSourceFolderCheck("data.sumologic_folder.personal_folder"),
2220
),
2321
},
2422
},
2523
})
2624
}
2725

28-
func testAccCheckSumoLogicfDataSourceID(n string) resource.TestCheckFunc {
29-
return func(s *terraform.State) error {
30-
31-
rs, ok := s.RootModule().Resources[n]
32-
if !ok {
33-
return fmt.Errorf("Can't find SumoLogic Apps data source: %s", n)
34-
}
35-
36-
fmt.Printf("%v\n", s.RootModule().Resources)
37-
fmt.Printf("%v\n", rs.Primary)
38-
if rs.Primary.ID == "" {
39-
return fmt.Errorf("SumoLogic Apps data source ID not set")
40-
}
41-
return nil
42-
}
43-
}
44-
4526
func TestAccDataSourceFolder_folder_does_not_exist(t *testing.T) {
4627
resource.Test(t, resource.TestCase{
4728
PreCheck: func() { testAccPreCheck(t) },

0 commit comments

Comments
 (0)