-
Notifications
You must be signed in to change notification settings - Fork 20
adding tests for externalclients and gcpservice #2579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: improvement/ARSN-514
Are you sure you want to change the base?
Conversation
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
146c259 to
6166515
Compare
| async deleteIfExists() { | ||
| if (this.key === 'externalBackendTestBucket/externalBackendMissingKey') { | ||
| return { succeeded: false }; | ||
| } | ||
| return { succeeded: true }; | ||
| } |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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 => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| it('createMultipartUpload should reject missing parameters', done => { | |
| it('createMultipartUpload should reject if parameters are missing', done => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same for next one
Issue: ARSN-524