mirror of https://github.com/databricks/cli.git
26 lines
501 B
Go
26 lines
501 B
Go
package run
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/databricks/cli/bundle"
|
|
"github.com/databricks/cli/bundle/config"
|
|
"github.com/databricks/cli/bundle/config/resources"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestResourceCompletionsUnique(t *testing.T) {
|
|
b := &bundle.Bundle{
|
|
Config: config.Root{
|
|
Resources: config.Resources{
|
|
Jobs: map[string]*resources.Job{
|
|
"foo": {},
|
|
"bar": {},
|
|
},
|
|
},
|
|
},
|
|
}
|
|
|
|
assert.ElementsMatch(t, []string{"foo", "bar"}, ResourceCompletions(b))
|
|
}
|