Skip to content

Conversation

@benzekrimaha
Copy link
Contributor

@benzekrimaha benzekrimaha commented Dec 5, 2025

Issue: ARSN-524

This commit aims to add tests for the ExternalClients module
and the GcpService module to ensure their proper functionality
and reliability. The tests target the remaining not tested apis.
The deleteIfExists method is also added to the DummyService
to simulate deletion scenarios in the tests.
Issue: ARSN-524
@benzekrimaha benzekrimaha marked this pull request as ready for review December 5, 2025 17:11
Comment on lines +92 to +97
async deleteIfExists() {
if (this.key === 'externalBackendTestBucket/externalBackendMissingKey') {
return { succeeded: false };
}
return { succeeded: true };
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know how you imagine your futur but you can do :

return { succeeded: this.key !== 'externalBackendTestBucket/externalBackendMissingKey' }

function invalidDnsBucketNameHandler() {
return (req, res) => {
assert(req.headers.host, host);
assert(req.headers.host, host);
Copy link
Contributor

Choose a reason for hiding this comment

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

Indent issue ?

});
});

it('createMultipartUpload should reject missing parameters', done => {
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
it('createMultipartUpload should reject missing parameters', done => {
it('createMultipartUpload should reject if parameters are missing', done => {

Copy link
Contributor

Choose a reason for hiding this comment

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

same for next one

@codecov
Copy link

codecov bot commented Dec 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (1f00381) to head (6166515).
⚠️ Report is 1 commits behind head on improvement/ARSN-514.

Additional details and impacted files
@@             Coverage Diff              @@
##   improvement/ARSN-514   #2579   +/-   ##
============================================
============================================

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

3 participants