-
Notifications
You must be signed in to change notification settings - Fork 8
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
Implement a restful to create the volume object. #37
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #37 +/- ##
============================================
+ Coverage 62.32% 75.05% +12.72%
============================================
Files 14 15 +1
Lines 361 477 +116
============================================
+ Hits 225 358 +133
+ Misses 124 105 -19
- Partials 12 14 +2
Continue to review full report at Codecov.
|
"testing" | ||
"time" | ||
|
||
"github.com/docker/docker/pkg/namesgenerator" |
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.
use github.com/moby/moby/pkg/namesgenerator
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.
Oh, I just copy the line here lol.
https://github.com/moby/moby/blob/master/pkg/namesgenerator/names-generator.go#L1
I will replace all from docker to moby in another PR.
Since all PR use the docker now (including the vendor.json).
src/server/handler_volume_test.go
Outdated
assert.Equal(suite.T(), volume.Capacity, retVolume.Capacity) | ||
assert.NotEqual(suite.T(), "", retVolume.MetaName) | ||
|
||
//Empty daa |
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.
empty data?
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.
Empty data in the HTTP request and it will cause the read entity error.
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.
yeah, but I mean the comment has typo lol
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.
XD. ok
src/server/handler_volume.go
Outdated
// Check whether this displayname has been used | ||
volume.ID = bson.NewObjectId() | ||
volume.CreatedAt = timeutils.Now() | ||
//Generate the metaName for furture use |
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 what is furture
? Did you mean future
?
Thank you.
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.
seems typo
Implement a restful to create the volume object. Former-commit-id: f79b7be85c712cbadc137738f36a334bcb84b344 [formerly 004f168] Former-commit-id: 92e9310eacd956ac5b009d0991d46ec7be7ad6a3
Implement a restful to create the volume object.
An volume object is a PVC used for the container (Pod/Deployment) and it must belong to some exist stroageProvider