-
Notifications
You must be signed in to change notification settings - Fork 78
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
Add test for s3/writer
and Refactor.
#672
Conversation
Best reviewed: commit by commit
Optimal code review plan (2 warnings)
|
[CHATOPS:HELP] ChatOps commands.
|
Codecov Report
@@ Coverage Diff @@
## master #672 +/- ##
==========================================
- Coverage 15.35% 14.33% -1.02%
==========================================
Files 412 416 +4
Lines 21629 19378 -2251
==========================================
- Hits 3321 2778 -543
+ Misses 18060 16366 -1694
+ Partials 248 234 -14
Continue to review full report at Codecov.
|
/rebase |
[REBASE] Rebase triggered by hlts2 for branch: test/internal/storage_blob_s3_writer |
327af2e
to
58a4145
Compare
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.
LGTM
s3/writer
and Refactor.s3/writer
and Refactor.
/rebase |
[REBASE] Rebase triggered by hlts2 for branch: test/internal/storage_blob_s3_writer |
73532eb
to
b075b0f
Compare
Can you update the test case to cover this logic?
|
/rebase |
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
f7bc2e3
to
4ecae9b
Compare
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
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.
LGTM
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
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.
LGTM
/rebase |
[REBASE] Rebase triggered by vankichi for branch: test/internal/storage_blob_s3_writer |
[FORMAT] Updating license headers and formatting go codes triggered by vankichi. |
Signed-off-by: vdaas-ci <ci@vdaas.org>
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.
[APPROVED] This PR is approved by vankichi.
Signed-off-by: hlts2 hiroto.funakoshi.hiroto@gmail.com
Description:
I refactored and added the tests for
s3/writer
.And when I rebase PR, I found a build error. So I fixed it.
Refactor
WHY
I can not write the tests for this method because the object is created internally and really need to connect to s3.
https://github.com/vdaas/vald/blob/master/internal/db/storage/blob/s3/writer/writer.go#L99-L122
WHAT
so I want to rewrite to be able to mock.
For example. I’m thinking of making an s3manager wrapper like add test of internal/db/rdb/mysql #659 and Refactoring and Add test code for
compress
#622 .Related issue
Autor Review Required
Review Step
Related Issue:
How Has This Been Tested?:
Environment:
Types of changes:
Changes to Core Features:
Checklist: