Skip to content

Commit

Permalink
Fix tests for databricks_mws_network_connectivity_config
Browse files Browse the repository at this point in the history
  • Loading branch information
840 committed Nov 14, 2024
1 parent b19259f commit fd59501
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ import (
"fmt"
"testing"

"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
"github.com/hashicorp/terraform-plugin-testing/terraform"
)

func TestAccDataSourceMwsNetworkConnectivityConfigTest(t *testing.T) {
accountLevel(t,
step{
AccountLevel(t,
Step{
Template: `
resource "databricks_mws_network_connectivity_config" "this" {
name = "tf-{var.RANDOM}"
region = "eastus2"
}`},
step{
Step{
Template: `
resource "databricks_mws_network_connectivity_config" "this" {
name = "tf-{var.RANDOM}"
Expand Down
13 changes: 0 additions & 13 deletions mws/data_mws_network_connectivity_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,6 @@ func TestDataSourceMwsNetworkConnectivityConfig(t *testing.T) {
})
}

func TestDataSourceMwsNetworkConnectivityConfig_AccountID(t *testing.T) {
qa.ResourceFixture{
Fixtures: []qa.HTTPFixture{},
Resource: DataSourceMwsNetworkConnectivityConfig(),
Read: true,
NonWritable: true,
ID: "_",
HCL: `
name = "def"
`,
}.ExpectError(t, "invalid Databricks Account configuration")
}

func TestDataSourceMwsNetworkConnectivityConfig_NoName(t *testing.T) {
qa.ResourceFixture{
Fixtures: qa.HTTPFailures,
Expand Down

0 comments on commit fd59501

Please sign in to comment.