Skip to content

Commit

Permalink
Fix error with datalake rename file
Browse files Browse the repository at this point in the history
  • Loading branch information
jfantinhardesty committed Jun 28, 2024
1 parent f9d53f2 commit 0b30492
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions component/azstorage/datalake_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1352,12 +1352,13 @@ func (s *datalakeTestSuite) TestRenameFileWindowsNameConvert() {
defer s.cleanupTest()
// Setup
src := generateFileName()
srcWindowsName := ""*:<>?|" + "/" + src + ""*:<>?|"
srcBlobName := "\"*:<>?|" + "/" + src + "\"*:<>?|"
// TODO: Restore question marks in this test. Bug in azdatalake sdk prevents question marks in the name of blobs during rename
srcWindowsName := ""*:<>|" + "/" + src + ""*:<>|"
srcBlobName := "\"*:<>|" + "/" + src + "\"*:<>|"
s.az.CreateFile(internal.CreateFileOptions{Name: srcWindowsName})
dst := generateFileName()
dstWindowsName := ""*:<>|" + "/" + dst + ""*:<>|"
dstBlobName := "\"*:<>?|" + "/" + dst + "\"*:<>?|"
dstWindowsName := ""*:<>|" + "/" + dst + ""*:<>|"
dstBlobName := "\"*:<>|" + "/" + dst + "\"*:<>|"

err := s.az.RenameFile(internal.RenameFileOptions{Src: srcWindowsName, Dst: dstWindowsName})
s.assert.NoError(err)
Expand Down

0 comments on commit 0b30492

Please sign in to comment.