Skip to content

Commit

Permalink
Correct name for testdata datasource type
Browse files Browse the repository at this point in the history
  • Loading branch information
julienduchesne committed Oct 27, 2023
1 parent 91d243c commit 0d62845
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/resources/grafana/resource_data_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func TestAccDataSource_TestData(t *testing.T) {
dsName := acctest.RandString(10)
config := fmt.Sprintf(`
resource "grafana_data_source" "testdata" {
type = "testdata"
type = "grafana-testdata-datasource"
name = "%s"
access_mode = "direct"
basic_auth_enabled = true
Expand All @@ -148,7 +148,7 @@ func TestAccDataSource_TestData(t *testing.T) {
resource.TestCheckResourceAttr("grafana_data_source.testdata", "org_id", "1"), // default org
resource.TestMatchResourceAttr("grafana_data_source.testdata", "uid", common.UIDRegexp),
resource.TestCheckResourceAttr("grafana_data_source.testdata", "name", dsName),
resource.TestCheckResourceAttr("grafana_data_source.testdata", "type", "testdata"),
resource.TestCheckResourceAttr("grafana_data_source.testdata", "type", "grafana-testdata-datasource"),
resource.TestCheckResourceAttr("grafana_data_source.testdata", "access_mode", "direct"),
resource.TestCheckResourceAttr("grafana_data_source.testdata", "basic_auth_enabled", "true"),
resource.TestCheckResourceAttr("grafana_data_source.testdata", "basic_auth_username", "ba_username"),
Expand Down

0 comments on commit 0d62845

Please sign in to comment.