From 9e0291e1b7ce744710be1b229e343269997e7494 Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Thu, 16 May 2024 15:23:46 +0200 Subject: [PATCH] fix import cycle --- bundle/config/root_test.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bundle/config/root_test.go b/bundle/config/root_test.go index 77e067f0..4156b338 100644 --- a/bundle/config/root_test.go +++ b/bundle/config/root_test.go @@ -1,12 +1,10 @@ package config import ( - "context" "encoding/json" "reflect" "testing" - "github.com/databricks/cli/bundle" "github.com/databricks/cli/bundle/config/variable" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -33,11 +31,9 @@ func TestRootLoad(t *testing.T) { } func TestDuplicateIdOnLoadReturnsErrorForJobAndPipeline(t *testing.T) { - b, diags := Load("./testdata/duplicate_resource_names_in_root_job_and_pipeline/databricks.yml") + _, diags := Load("./testdata/duplicate_resource_names_in_root_job_and_pipeline/databricks.yml") assert.NoError(t, diags.Error()) - diags = bundle.Apply(context.Background(), b, validate.PreInitialize()) - assert.ErrorContains(t, diags.Error(), "multiple resources named foo (job at ./testdata/duplicate_resource_names_in_root_job_and_pipeline/databricks.yml:10:7, pipeline at ./testdata/duplicate_resource_names_in_root_job_and_pipeline/databricks.yml:13:7)") }