File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change 66 "testing"
77
88 "github.com/hashicorp/terraform-plugin-sdk/helper/resource"
9- "github.com/hashicorp/terraform-plugin-sdk/terraform"
109)
1110
1211func 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-
4526func TestAccDataSourceFolder_folder_does_not_exist (t * testing.T ) {
4627 resource .Test (t , resource.TestCase {
4728 PreCheck : func () { testAccPreCheck (t ) },
You can’t perform that action at this time.
0 commit comments