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

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