Skip to content

Commit

Permalink
test: fix test throwing 'addDataSourceConflict {"message":"data sourc…
Browse files Browse the repository at this point in the history
…e with the same name already exists"}'
  • Loading branch information
Duologic committed Oct 21, 2024
1 parent 643e08b commit 22dfb1c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/resources/machinelearning/resource_job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func TestAccResourceJob(t *testing.T) {
// Note for the reader: these tests construct a datasource & a job, where the Job's datasource id is set by terraform.
Config: testutils.TestAccExampleWithReplace(t, "resources/grafana_machine_learning_job/job.tf", map[string]string{
"Test Job": randomName,
"foo": acctest.RandString(10),
}),
Check: resource.ComposeTestCheckFunc(
testAccMLJobCheckExists("grafana_machine_learning_job.test_job", &job),
Expand All @@ -48,6 +49,7 @@ func TestAccResourceJob(t *testing.T) {
{
Config: testutils.TestAccExampleWithReplace(t, "resources/grafana_machine_learning_job/tuned_job.tf", map[string]string{
"Test Job": randomName,
"foo": acctest.RandString(10),
}),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttrSet("grafana_machine_learning_job.test_job", "id"),
Expand All @@ -66,6 +68,7 @@ func TestAccResourceJob(t *testing.T) {
{
Config: testutils.TestAccExampleWithReplace(t, "resources/grafana_machine_learning_job/holidays_job.tf", map[string]string{
"Test Job": randomName,
"foo": acctest.RandString(10),
}),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttrSet("grafana_machine_learning_job.test_job", "id"),
Expand Down

0 comments on commit 22dfb1c

Please sign in to comment.