fix: Add dbr runtime context to renderer test

This commit is contained in:
Ilya Kuznetsov 2025-01-02 14:45:25 +01:00
parent 85959acc3e
commit cf19166fb2
No known key found for this signature in database
GPG Key ID: 91F3DDCF5D21CDDF
1 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ import (
"github.com/databricks/cli/bundle/phases"
"github.com/databricks/cli/cmd/root"
"github.com/databricks/cli/internal/testutil"
"github.com/databricks/cli/libs/dbr"
"github.com/databricks/cli/libs/diag"
"github.com/databricks/cli/libs/filer"
"github.com/databricks/cli/libs/tags"
@ -40,7 +41,7 @@ func assertFilePermissions(t *testing.T, path string, perm fs.FileMode) {
}
func assertBuiltinTemplateValid(t *testing.T, template string, settings map[string]any, target string, isServicePrincipal, build bool, tempDir string) {
ctx := context.Background()
ctx := dbr.MockRuntime(context.Background(), false)
templateFS, err := fs.Sub(builtinTemplates, path.Join("templates", template))
require.NoError(t, err)