Skip to content

Conversation

benzekrimaha
Copy link
Contributor

Issue: CLDSRV-724

@benzekrimaha benzekrimaha force-pushed the improvement/CLDSRV-724-multiple-backend-tests branch from 1769d66 to 4619bab Compare September 30, 2025 12:50
@scality scality deleted a comment from codecov bot Sep 30, 2025
Copy link

codecov bot commented Sep 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.24%. Comparing base (55803c6) to head (d6bfd4b).

Additional details and impacted files

Impacted file tree graph
see 13 files with indirect coverage changes

@@                              Coverage Diff                               @@
##           improvement/CLDSRV-724-kms-tests-migration    #5960      +/-   ##
==============================================================================
+ Coverage                                       72.04%   74.24%   +2.19%     
==============================================================================
  Files                                             191      191              
  Lines                                           12233    12233              
==============================================================================
+ Hits                                             8813     9082     +269     
+ Misses                                           3420     3151     -269     
Flag Coverage Δ
ceph-backend-test 43.62% <ø> (+23.84%) ⬆️
file-ft-tests 27.58% <ø> (+5.31%) ⬆️
kmip-ft-tests 27.19% <ø> (ø)
mongo-v0-ft-tests 30.51% <ø> (+2.37%) ⬆️
mongo-v1-ft-tests 30.51% <ø> (+2.37%) ⬆️
multiple-backend 34.24% <ø> (+14.42%) ⬆️
sur-tests 35.62% <ø> (+0.85%) ⬆️
sur-tests-inflights 36.69% <ø> (-0.01%) ⬇️
unit 68.32% <ø> (ø)
utapi-v2-tests 33.55% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@benzekrimaha benzekrimaha force-pushed the improvement/CLDSRV-724-multiple-backend-tests branch 2 times, most recently from 76ab4cc to fc9608c Compare September 30, 2025 12:58
Copy link
Contributor

@williamlardier williamlardier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some quick comments as the pr was listed for review (but still a draft)
otherwise lgtm, some patterns could be simplified, when calling the next functions (by removing the {} or the =>)

Comment on lines 94 to 96
throw new Error('Expected NoSuchKey error but got success');
} catch (err) {
assert.strictEqual(err.code, 'NoSuchKey');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think as you throw in the try, that we will enter the assert of the catch and fail the check, then we loose the inital error you thrown, and we'll see an asert failure with "undefined" that is not "NoSuchKey", can be misleading

(same other places)

Comment on lines 74 to 76
.then(() => {
done(new Error('Expected failure but got success'));
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.then(() => {
done(new Error('Expected failure but got success'));
})
.then(() => done(new Error('Expected failure but got success')))

Comment on lines -145 to -146
it('should delete object from AWS location with bucketMatch set to ' +
'false', done => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this test was removed, is this expected?

@benzekrimaha benzekrimaha marked this pull request as ready for review October 2, 2025 11:31
@benzekrimaha benzekrimaha force-pushed the improvement/CLDSRV-724-multiple-backend-tests branch from e031412 to 1c923f3 Compare October 9, 2025 15:35
@benzekrimaha benzekrimaha force-pushed the improvement/CLDSRV-724-kms-tests-migration branch from a8406fa to 55803c6 Compare October 13, 2025 07:07
@benzekrimaha benzekrimaha force-pushed the improvement/CLDSRV-724-multiple-backend-tests branch from 1c923f3 to 307118e Compare October 13, 2025 12:05
@benzekrimaha benzekrimaha force-pushed the improvement/CLDSRV-724-multiple-backend-tests branch from 307118e to d6bfd4b Compare October 13, 2025 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants