mirror of https://github.com/databricks/cli.git
19 lines
461 B
Go
19 lines
461 B
Go
package mutator_test
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/databricks/cli/bundle"
|
|
"github.com/databricks/cli/bundle/config/mutator"
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestDefaultInclude(t *testing.T) {
|
|
bundle := &bundle.Bundle{}
|
|
err := mutator.DefineDefaultInclude().Apply(context.Background(), bundle)
|
|
require.NoError(t, err)
|
|
assert.Equal(t, []string{"*.yml", "*/*.yml"}, bundle.Config.Include)
|
|
}
|