Skip to content

Commit

Permalink
improved test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnester committed Aug 16, 2023
1 parent 269e8a7 commit 534e480
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bundle/tests/string_interpolation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import (
"testing"

"github.com/databricks/cli/bundle"
"github.com/databricks/cli/bundle/phases"
"github.com/databricks/cli/bundle/config/interpolation"
"github.com/databricks/cli/bundle/config/variable"
"github.com/stretchr/testify/require"
)

Expand All @@ -14,7 +15,11 @@ func TestBundleEnvironmentStringInterpolation(t *testing.T) {
b, err := bundle.Load(ctx, "./string_interpolation")
require.NoError(t, err)

init := phases.Initialize()
init := interpolation.Interpolate(
interpolation.IncludeLookupsInPath("bundle"),
interpolation.IncludeLookupsInPath("workspace"),
interpolation.IncludeLookupsInPath(variable.VariableReferencePrefix),
)
err = init.Apply(ctx, b)
require.NoError(t, err)

Expand Down

0 comments on commit 534e480

Please sign in to comment.