azblob: fix SAS URL with embedded container name

Fixes #944

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2022-08-01 21:32:40 +02:00
parent 2a827544ef
commit 455bb550ee
5 changed files with 62 additions and 58 deletions

View File

@@ -3213,7 +3213,10 @@ func TestEventRuleProviderEvents(t *testing.T) {
// update the folder
_, _, err = httpdtest.UpdateFolder(folder, http.StatusOK)
assert.NoError(t, err)
if assert.FileExists(t, outPath) {
if assert.Eventually(t, func() bool {
_, err := os.Stat(outPath)
return err == nil
}, 2*time.Second, 100*time.Millisecond) {
content, err := os.ReadFile(outPath)
assert.NoError(t, err)
var folderGet vfs.BaseVirtualFolder