mirror of https://github.com/databricks/cli.git
Fix sync integration test failing on aws-prod (#164)
The tests were failing because we were the list of expected files did not include .gitignore aws and azure test runs: https://github.com/databricks/eng-dev-ecosystem/actions/runs/3891837322/jobs/6642552850 https://github.com/databricks/eng-dev-ecosystem/actions/runs/3891836306/jobs/6642550633
This commit is contained in:
parent
0d9ecb5643
commit
bf9f0c06b0
|
@ -179,7 +179,9 @@ func TestAccFullFileSync(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// .gitkeep comes from cloning during repo setup
|
// .gitkeep comes from cloning during repo setup
|
||||||
assertSync.remoteDirContent(ctx, "", []string{".gitkeep"})
|
// .gitignore is created by the sync process to enforce .databricks is not
|
||||||
|
// synced
|
||||||
|
assertSync.remoteDirContent(ctx, "", []string{".gitkeep", ".gitignore"})
|
||||||
|
|
||||||
// New file
|
// New file
|
||||||
localFilePath := filepath.Join(localRepoPath, "foo.txt")
|
localFilePath := filepath.Join(localRepoPath, "foo.txt")
|
||||||
|
@ -223,7 +225,9 @@ func TestAccIncrementalFileSync(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// .gitkeep comes from cloning during repo setup
|
// .gitkeep comes from cloning during repo setup
|
||||||
assertSync.remoteDirContent(ctx, "", []string{".gitkeep"})
|
// .gitignore is created by the sync process to enforce .databricks is not
|
||||||
|
// synced
|
||||||
|
assertSync.remoteDirContent(ctx, "", []string{".gitkeep", ".gitignore"})
|
||||||
|
|
||||||
// New file
|
// New file
|
||||||
localFilePath := filepath.Join(localRepoPath, "foo.txt")
|
localFilePath := filepath.Join(localRepoPath, "foo.txt")
|
||||||
|
@ -269,7 +273,9 @@ func TestAccNestedFolderSync(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// .gitkeep comes from cloning during repo setup
|
// .gitkeep comes from cloning during repo setup
|
||||||
assertSync.remoteDirContent(ctx, "/", []string{".gitkeep"})
|
// .gitignore is created by the sync process to enforce .databricks is not
|
||||||
|
// synced
|
||||||
|
assertSync.remoteDirContent(ctx, "/", []string{".gitkeep", ".gitignore"})
|
||||||
|
|
||||||
// New file
|
// New file
|
||||||
localFilePath := filepath.Join(localRepoPath, "dir1/dir2/dir3/foo.txt")
|
localFilePath := filepath.Join(localRepoPath, "dir1/dir2/dir3/foo.txt")
|
||||||
|
|
Loading…
Reference in New Issue