Skip to content

Commit f3e9be3

Browse files
committed
test: fix functional test types
1 parent 2c53d7f commit f3e9be3

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

packages/storage/__tests__/providers/s3/utils/client/S3/cases/copyObject.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const copyObjectHappyCase: ApiFunctionalTestCase<typeof copyObject> = [
2222
Key: 'key',
2323
CacheControl: 'cacheControl',
2424
ContentType: 'contentType',
25-
ACL: 'acl',
25+
ACL: 'public-read',
2626
CopySourceIfMatch: 'eTag',
2727
CopySourceIfUnmodifiedSince: new Date(0),
2828
},
@@ -35,7 +35,7 @@ const copyObjectHappyCase: ApiFunctionalTestCase<typeof copyObject> = [
3535
'x-amz-copy-source': 'sourceBucket/sourceKey',
3636
'cache-control': 'cacheControl',
3737
'content-type': 'contentType',
38-
'x-amz-acl': 'acl',
38+
'x-amz-acl': 'public-read',
3939
'x-amz-copy-source-if-match': 'eTag',
4040
'x-amz-copy-source-if-unmodified-since': 'Thu, 01 Jan 1970 00:00:00 GMT',
4141
}),

packages/storage/__tests__/providers/s3/utils/client/S3/cases/listObjectsV2.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@ const listObjectsV2HappyCaseTruncated: ApiFunctionalTestCase<
2222
Bucket: 'bucket',
2323
ContinuationToken: 'ContinuationToken',
2424
Delimiter: 'Delimiter',
25-
EncodingType: 'EncodingType',
25+
EncodingType: 'url',
2626
ExpectedBucketOwner: 'ExpectedBucketOwner',
2727
FetchOwner: false,
2828
MaxKeys: 0,
2929
Prefix: 'Prefix',
30-
RequestPayer: 'RequestPayer',
30+
RequestPayer: 'requester',
3131
StartAfter: 'StartAfter',
3232
},
3333
expect.objectContaining({
3434
url: expect.objectContaining({
35-
href: 'https://bucket.s3.us-east-1.amazonaws.com/?list-type=2&continuation-token=ContinuationToken&delimiter=Delimiter&encoding-type=EncodingType&fetch-owner=false&max-keys=0&prefix=Prefix&start-after=StartAfter',
35+
href: 'https://bucket.s3.us-east-1.amazonaws.com/?list-type=2&continuation-token=ContinuationToken&delimiter=Delimiter&encoding-type=url&fetch-owner=false&max-keys=0&prefix=Prefix&start-after=StartAfter',
3636
}),
3737
method: 'GET',
3838
headers: expect.objectContaining({
39-
'x-amz-request-payer': 'RequestPayer',
39+
'x-amz-request-payer': 'requester',
4040
'x-amz-expected-bucket-owner': 'ExpectedBucketOwner',
4141
}),
4242
}),
@@ -51,7 +51,7 @@ const listObjectsV2HappyCaseTruncated: ApiFunctionalTestCase<
5151
<StartAfter>ExampleGuide.pdf</StartAfter>
5252
<MaxKeys>1000</MaxKeys>
5353
<IsTruncated>true</IsTruncated>
54-
<EncodingType>string</EncodingType>
54+
<EncodingType>url</EncodingType>
5555
<ContinuationToken>1ueGcxLPRx1Tr/XYExHnhbYLgveDs2J/wm36Hy4vbOwM=</ContinuationToken>
5656
<NextContinuationToken>Next1ueGcxLPRx1Tr/XYExHnhbYLgveDs2J/wm36Hy4vbOwM=</NextContinuationToken>
5757
<Contents>
@@ -112,7 +112,7 @@ const listObjectsV2HappyCaseTruncated: ApiFunctionalTestCase<
112112
],
113113
ContinuationToken: '1ueGcxLPRx1Tr/XYExHnhbYLgveDs2J/wm36Hy4vbOwM=',
114114
Delimiter: 'string',
115-
EncodingType: 'string',
115+
EncodingType: 'url',
116116
IsTruncated: true,
117117
KeyCount: 4,
118118
MaxKeys: 1000,

packages/storage/__tests__/providers/s3/utils/client/S3/cases/putObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const putObjectRequest = {
1414
Bucket: 'bucket',
1515
Key: 'key',
1616
Body: 'body',
17-
ACL: 'public-read',
17+
ACL: 'public-read' as const,
1818
CacheControl: 'CacheControl',
1919
ContentDisposition: 'ContentDisposition',
2020
ContentEncoding: 'ContentEncoding',

0 commit comments

Comments
 (0)