CLDSRV-898: handle checksums in CompleteMultipartUpload#6170
CLDSRV-898: handle checksums in CompleteMultipartUpload#6170leif-scality wants to merge 11 commits into
Conversation
|
LGTM |
❌ 1 Tests Failed:
View the full list of 2 ❄️ flaky test(s)
To view more test analytics, go to the Test Analytics Dashboard |
2493909 to
538c16c
Compare
Hello leif-scality,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
Incorrect fix versionThe
Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:
Please check the |
27b4a43 to
a90bd94
Compare
|
LGTM |
|
|
||
| // XML element name AWS uses for each algorithm in CompleteMultipartUpload's | ||
| // per-part body. | ||
| const TAG_BY_ALGO = { |
There was a problem hiding this comment.
Shouldn't this be in constants too?
There was a problem hiding this comment.
The algorithms object contains the TAG of each algo already, this object is just for testing that the tag was not changed in the algorithms object
There was a problem hiding this comment.
Could you construct it from algorithms? If algorithm is supposed to be a constant and we are concerned that it may be accidentally changed, what about using Object.freeze on it?
There was a problem hiding this comment.
The goal of the test if to raise an error if we change the xmlTag for some reason in algorithms. If we construct it from algorithms then we will never detect the change. algorithms is already Object.freeze
There was a problem hiding this comment.
Then, why not using Object.freeze for each subcomponent of algorithms if the goal is to ensure that it's never modified, that would be probably a better answer than a test checking this. Just my two cents, no big deal otherwise.
a90bd94 to
e468700
Compare
|
LGTM |
46b6d78 to
6e735e4
Compare
|
|
LGTM — solid implementation with thorough test coverage. |
6e735e4 to
1c92b9b
Compare
|
1c92b9b to
3df48c2
Compare
|
LGTM |
3df48c2 to
c190267
Compare
|
c190267 to
7b3785c
Compare
|
LGTM |
fb9139f to
ee04392
Compare
|
LGTM |
ee04392 to
600ef90
Compare
|
LGTM |
600ef90 to
14b8747
Compare
Review by Claude Code |
| assert(err.is.NoSuchBucket); | ||
| done(); | ||
| }); | ||
| it('should return an error on an initiate multipart upload call if ' + 'no destination bucket', done => { |
There was a problem hiding this comment.
| it('should return an error on an initiate multipart upload call if ' + 'no destination bucket', done => { | |
| it('should return an error on an initiate multipart upload call if no destination bucket', done => { |
There was a problem hiding this comment.
linted the whole PR, 12 changes made
| partNumber: '2', | ||
| uploadId: testUploadId, | ||
| it( | ||
| 'should complete a multipart upload even if etag is sent ' + 'in post body without quotes (a la Cyberduck)', |
There was a problem hiding this comment.
| 'should complete a multipart upload even if etag is sent ' + 'in post body without quotes (a la Cyberduck)', | |
| 'should complete a multipart upload even if etag is sent in post body without quotes (a la Cyberduck)', |
There was a problem hiding this comment.
this happens in other places as well in this file
There was a problem hiding this comment.
fixed where possible
14b8747 to
c39cf5f
Compare
|
LGTM |
| // AWS-style message: "The {algo} you specified for part {N} did not match what we received." | ||
| assert.strictEqual( | ||
| err.description, | ||
| `The ${wrongAlgo} you specified for part 1 did ` + 'not match what we received.', |
There was a problem hiding this comment.
| `The ${wrongAlgo} you specified for part 1 did ` + 'not match what we received.', | |
| `The ${wrongAlgo} you specified for part 1 did not match what we received.`, |
There was a problem hiding this comment.
I fixed other cases, the others ones where already there fixed some, some make the linter fail so they remain with '+'
c39cf5f to
cfd50b5
Compare
|
LGTM |
cfd50b5 to
a149729
Compare
|
LGTM |
tests/unit/api/multipartUpload.js