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:
shreyas-goenka 2023-01-11 11:50:27 +01:00 committed by GitHub
parent 0d9ecb5643
commit bf9f0c06b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 3 deletions

View File

@ -179,7 +179,9 @@ func TestAccFullFileSync(t *testing.T) {
}
// .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
localFilePath := filepath.Join(localRepoPath, "foo.txt")
@ -223,7 +225,9 @@ func TestAccIncrementalFileSync(t *testing.T) {
}
// .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
localFilePath := filepath.Join(localRepoPath, "foo.txt")
@ -269,7 +273,9 @@ func TestAccNestedFolderSync(t *testing.T) {
}
// .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
localFilePath := filepath.Join(localRepoPath, "dir1/dir2/dir3/foo.txt")