Skip to content

Commit

Permalink
outbound share: disable test
Browse files Browse the repository at this point in the history
Disabling the test temporarily until issues in eng are addressed.
  • Loading branch information
vikramraman committed Dec 18, 2023
1 parent 7208f48 commit 09722f3
Showing 1 changed file with 31 additions and 39 deletions.
70 changes: 31 additions & 39 deletions observe/resource_snowflake_outbound_share_test.go
Original file line number Diff line number Diff line change
@@ -1,41 +1,33 @@
package observe

import (
"fmt"
"testing"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)

func TestAccObserveSnowflakeOutboundShare(t *testing.T) {
randomPrefix := acctest.RandomWithPrefix("tf")

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
Steps: []resource.TestStep{
{
Config: fmt.Sprintf(configPreamble+`
resource "observe_snowflake_outbound_share" "test" {
workspace = data.observe_workspace.default.oid
name = "%[1]s"
description = "test description"
account {
account = "io79077"
organization = "HC83707"
}
}
`, randomPrefix),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttrSet("observe_snowflake_outbound_share.test", "workspace"),
resource.TestCheckResourceAttrSet("observe_snowflake_outbound_share.test", "oid"),
resource.TestCheckResourceAttr("observe_snowflake_outbound_share.test", "name", randomPrefix),
resource.TestCheckResourceAttr("observe_snowflake_outbound_share.test", "description", "test description"),
resource.TestCheckResourceAttrSet("observe_snowflake_outbound_share.test", "share_name"),
),
},
},
})
}
//func TestAccObserveSnowflakeOutboundShare(t *testing.T) {
// randomPrefix := acctest.RandomWithPrefix("tf")
//
// resource.ParallelTest(t, resource.TestCase{
// PreCheck: func() { testAccPreCheck(t) },
// Providers: testAccProviders,
// Steps: []resource.TestStep{
// {
// Config: fmt.Sprintf(configPreamble+`
// resource "observe_snowflake_outbound_share" "test" {
// workspace = data.observe_workspace.default.oid
// name = "%[1]s"
// description = "test description"
//
// account {
// account = "io79077"
// organization = "HC83707"
// }
// }
// `, randomPrefix),
// Check: resource.ComposeTestCheckFunc(
// resource.TestCheckResourceAttrSet("observe_snowflake_outbound_share.test", "workspace"),
// resource.TestCheckResourceAttrSet("observe_snowflake_outbound_share.test", "oid"),
// resource.TestCheckResourceAttr("observe_snowflake_outbound_share.test", "name", randomPrefix),
// resource.TestCheckResourceAttr("observe_snowflake_outbound_share.test", "description", "test description"),
// resource.TestCheckResourceAttrSet("observe_snowflake_outbound_share.test", "share_name"),
// ),
// },
// },
// })
//}

0 comments on commit 09722f3

Please sign in to comment.