mirror of
https://github.com/Nezumi-2711/google-drive-s3.git
synced 2026-09-22 13:38:30 +00:00
Fix tests
This commit is contained in:
+2
-1
@@ -214,6 +214,7 @@ describe("S3 API Server with Google Drive Backend", () => {
|
||||
// 5. Presigned URL テスト
|
||||
it("should verify presigned URLs from @aws-sdk/s3-request-presigner", async () => {
|
||||
const s3 = new S3Client({
|
||||
endpoint: `${endpoint}/my-bucket`,
|
||||
region: ENV.REGION,
|
||||
credentials: {
|
||||
accessKeyId: ENV.ACCESS_KEY,
|
||||
@@ -223,7 +224,7 @@ describe("S3 API Server with Google Drive Backend", () => {
|
||||
|
||||
const command = new GetObjectCommand({
|
||||
Bucket: "my-bucket",
|
||||
Key: "my-bucket/test.png",
|
||||
Key: "test.png",
|
||||
});
|
||||
|
||||
const url = await getSignedUrl(s3, command, { expiresIn: 3600 });
|
||||
|
||||
Reference in New Issue
Block a user