s3 bandwidth usage fix

This commit is contained in:
Čarodej
2022-03-29 10:06:20 +02:00
parent 8c59501907
commit 9d4d1ba9aa
28 changed files with 205 additions and 214 deletions

View File

@@ -49,14 +49,16 @@ class VisitorAccessToItemsTest extends TestCase
])];
$this->withCookies($cookie)
->get("/file/$document->name/$share->token")
->assertStatus(200);
->get("/file/$document->name/shared/$share->token")
->assertStatus(200)
->assertDownload($document->name);
}
if (! $is_protected) {
// Get shared file
$this->get("/file/$document->name/$share->token")
->assertStatus(200);
$this->get("/file/$document->name/shared/$share->token")
->assertStatus(200)
->assertDownload($document->name);
}
});
}
@@ -236,13 +238,13 @@ class VisitorAccessToItemsTest extends TestCase
];
$this->withCookies($cookie)
->get("/thumbnail/xs-$fileName/$share->token")
->assertStatus(200);
->get("/thumbnail/xs-$fileName/shared/$share->token")
->assertDownload("xs-$fileName");
}
if (! $is_protected) {
$this->get("/thumbnail/xs-$fileName/$share->token")
->assertStatus(200);
$this->get("/thumbnail/xs-$fileName/shared/$share->token")
->assertDownload("xs-$fileName");
}
$this->assertDatabaseMissing('traffic', [