mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 22:30:56 +03:00
S3: add support for serving virtual folders
inside the same bucket each user can be assigned to a virtual folder. This is similar to a chroot directory for local filesystem
This commit is contained in:
@@ -274,6 +274,12 @@ func TestCompareUserFsConfig(t *testing.T) {
|
||||
if err == nil {
|
||||
t.Errorf("S3 storage class does not match")
|
||||
}
|
||||
expected.FsConfig.S3Config.StorageClass = ""
|
||||
expected.FsConfig.S3Config.KeyPrefix = "somedir/subdir"
|
||||
err = compareUserFsConfig(expected, actual)
|
||||
if err == nil {
|
||||
t.Errorf("S3 key prefix does not match")
|
||||
}
|
||||
}
|
||||
|
||||
func TestApiCallsWithBadURL(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user