Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

onedrive: fix permissions on onedrive Personal

Nick Craig-Woodb873f838dbc7
diff --git a/backend/onedrive/onedrive_internal_test.go b/backend/onedrive/onedrive_internal_test.go
index ce0781d45..6ce22bc8f 100644
--- a/backend/onedrive/onedrive_internal_test.go
+++ b/backend/onedrive/onedrive_internal_test.go
@@ -136,11 +136,6 @@ func (f *Fs) TestReadPermissions(t *testing.T, r *fstest.Run) {
_, expectedMeta := f.putWithMeta(ctx, t, &file1, []*api.PermissionsType{}) // return var intentionally switched here
permissions := defaultPermissions(f.driveType)
_, actualMeta := f.putWithMeta(ctx, t, &file1, permissions)
- if f.driveType == driveTypePersonal {
- perms, ok := actualMeta["permissions"]
- assert.False(t, ok, fmt.Sprintf("permissions metadata key was unexpectedly found: %v", perms))
- return
- }
assert.JSONEq(t, expectedMeta["permissions"], actualMeta["permissions"])
}