mirror of https://github.com/databricks/cli.git
Fixed path matching for Windows in generate job test (#1132)
## Changes Fixed path matching for Windows in generate job test
This commit is contained in:
parent
57abf157cc
commit
7067782cf1
|
@ -55,7 +55,7 @@ func TestAccGenerateFromExistingJobAndDeploy(t *testing.T) {
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
generatedYaml := string(data)
|
generatedYaml := string(data)
|
||||||
require.Contains(t, generatedYaml, "notebook_task:")
|
require.Contains(t, generatedYaml, "notebook_task:")
|
||||||
require.Contains(t, generatedYaml, "notebook_path: ../src/test.py")
|
require.Contains(t, generatedYaml, fmt.Sprintf("notebook_path: %s", filepath.Join("..", "src", "test.py")))
|
||||||
require.Contains(t, generatedYaml, "task_key: test")
|
require.Contains(t, generatedYaml, "task_key: test")
|
||||||
require.Contains(t, generatedYaml, "new_cluster:")
|
require.Contains(t, generatedYaml, "new_cluster:")
|
||||||
require.Contains(t, generatedYaml, "spark_version: 13.3.x-scala2.12")
|
require.Contains(t, generatedYaml, "spark_version: 13.3.x-scala2.12")
|
||||||
|
|
Loading…
Reference in New Issue