fix: update WebDAV handler test for new path structure
This commit is contained in:
@@ -54,10 +54,10 @@ func TestPerUserIsolationAndPrefix(t *testing.T) {
|
|||||||
t.Fatalf("expected bob to get 404 for alice's file, got %d", bobRec.Code)
|
t.Fatalf("expected bob to get 404 for alice's file, got %d", bobRec.Code)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Confirm the file physically landed under dataDir/files/alice/, not
|
// Confirm the file physically landed under dataDir/alice/files/, matching
|
||||||
// nested under an extra files/files/... path.
|
// the new nested structure.
|
||||||
if _, err := os.Stat(dir + "/files/alice/note.txt"); err != nil {
|
if _, err := os.Stat(dir + "/alice/files/note.txt"); err != nil {
|
||||||
t.Fatalf("expected file at dataDir/files/alice/note.txt: %v", err)
|
t.Fatalf("expected file at dataDir/alice/files/note.txt: %v", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user