2022-12-15 14:12:47 +00:00
|
|
|
package run
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2023-05-16 16:35:39 +00:00
|
|
|
"github.com/databricks/cli/bundle/config/resources"
|
2024-10-24 13:24:30 +00:00
|
|
|
refs "github.com/databricks/cli/bundle/resources"
|
2022-12-15 14:12:47 +00:00
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
)
|
|
|
|
|
2024-10-24 13:24:30 +00:00
|
|
|
func TestRunner_IsRunnable(t *testing.T) {
|
|
|
|
assert.True(t, IsRunnable(refs.Reference{Resource: &resources.Job{}}))
|
|
|
|
assert.True(t, IsRunnable(refs.Reference{Resource: &resources.Pipeline{}}))
|
|
|
|
assert.False(t, IsRunnable(refs.Reference{Resource: &resources.MlflowModel{}}))
|
|
|
|
assert.False(t, IsRunnable(refs.Reference{Resource: &resources.MlflowExperiment{}}))
|
2022-12-15 14:12:47 +00:00
|
|
|
}
|