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:
Andrew Nester 2024-01-19 08:05:59 +00:00 committed by GitHub
parent 57abf157cc
commit 7067782cf1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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")