mirror of https://github.com/databricks/cli.git
19 lines
440 B
Go
19 lines
440 B
Go
package config_tests
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/databricks/cli/bundle"
|
|
"github.com/databricks/cli/bundle/libraries"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestEnvironmentKeyProvidedAndNoPanic(t *testing.T) {
|
|
b, diags := loadTargetWithDiags("./environment_key_only", "default")
|
|
require.Empty(t, diags)
|
|
|
|
diags = bundle.Apply(context.Background(), b, libraries.ExpandGlobReferences())
|
|
require.Empty(t, diags)
|
|
}
|