mirror of https://github.com/databricks/cli.git
21 lines
495 B
Go
21 lines
495 B
Go
package config_tests
|
|
|
|
import (
|
|
"sort"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
"golang.org/x/exp/maps"
|
|
)
|
|
|
|
func TestIncludeDefault(t *testing.T) {
|
|
b := load(t, "./include_default")
|
|
|
|
// Test that both jobs were loaded.
|
|
keys := maps.Keys(b.Config.Resources.Jobs)
|
|
sort.Strings(keys)
|
|
assert.Equal(t, []string{"my_first_job", "my_second_job"}, keys)
|
|
assert.Equal(t, "1", b.Config.Resources.Jobs["my_first_job"].ID)
|
|
assert.Equal(t, "2", b.Config.Resources.Jobs["my_second_job"].ID)
|
|
}
|