-
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: development/8.3
Are you sure you want to change the base?
Conversation
As we can no longer use the Service.defineService previously used in aws-sdk v2, we have to manually this commit aims to implement the GCP client using the new aws-sdk v3 architecture and migrate the existing code to use it. Please note that now both the setup and signing mechanisms had to be re-implemented in the GcpService file. Issue: ARSN-514
Issue: ARSN-514
In this commit several changes were done as aws-sdk v3 happens to be less permissive than v2 in terms of error handling and stream management. To ensure backward compatibility with existing functionalities adjustments were made, please refer to code comments for more details. Issue: ARSN-514
As the sdk now returns name instead of code for errors, we need to adapt the error handling accordingly. Issue: ARSN-514
Issue: ARSN-514
Issue: ARSN-514
A security issue was fixed using resolutions in package.json as the vulnerability is in a transient dependency. Issue: ARSN-514
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
82141f3 to
6166515
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## improvement/ARSN-514 #2579 +/- ##
============================================
============================================
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ed14c60 to
b978085
Compare
e36f845 to
e66bc75
Compare
6e00a70 to
00033b5
Compare
Hello benzekrimaha,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
ConflictThere is a conflict between your branch Please resolve the conflict on the feature branch ( git fetch && \
git checkout origin/improvement/ARSN-524 && \
git merge origin/development/8.3Resolve merge conflicts and commit git push origin HEAD:improvement/ARSN-524 |
Issue: ARSN-524