Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1456)

Issue 6201062: s3test: add list bucket functionality.

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by rog
Modified:
11 years, 12 months ago
Reviewers:
mp+104583
Visibility:
Public.

Description

s3test: add list bucket functionality. also refactor tests to match ec2 structure and gofmt on the source tree. https://code.launchpad.net/~rogpeppe/goamz/s3-s3test-list-bucket/+merge/104583 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : s3test: add list bucket functionality. #

Total comments: 10

Patch Set 3 : s3test: add list bucket functionality. #

Patch Set 4 : s3test: add list bucket functionality. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+542 lines, -242 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M aws/aws_test.go View 1 chunk +1 line, -1 line 0 comments Download
M aws/suite_test.go View 1 chunk +1 line, -1 line 0 comments Download
M ec2/ec2t_test.go View 2 chunks +3 lines, -3 lines 0 comments Download
M exp/mturk/mturk.go View 1 chunk +1 line, -1 line 0 comments Download
M exp/mturk/mturk_test.go View 4 chunks +7 lines, -8 lines 0 comments Download
M exp/mturk/sign_test.go View 2 chunks +1 line, -2 lines 0 comments Download
M exp/sns/sns_test.go View 1 chunk +179 lines, -179 lines 0 comments Download
M s3/s3.go View 1 2 3 5 chunks +18 lines, -10 lines 0 comments Download
M s3/s3i_test.go View 1 2 5 chunks +188 lines, -16 lines 0 comments Download
M s3/s3t_test.go View 1 chunk +36 lines, -16 lines 0 comments Download
M s3/s3test/server.go View 1 2 3 5 chunks +105 lines, -5 lines 0 comments Download

Messages

Total messages: 4
rog
Please take a look.
12 years ago (2012-05-08 17:11:54 UTC) #1
rog
Please take a look.
12 years ago (2012-05-08 22:36:17 UTC) #2
niemeyer
LGTM.. just a few comments. https://codereview.appspot.com/6201062/diff/2001/s3/s3.go File s3/s3.go (right): https://codereview.appspot.com/6201062/diff/2001/s3/s3.go#newcode199 s3/s3.go:199: // test2.html Can we ...
11 years, 12 months ago (2012-05-09 01:08:24 UTC) #3
rog
11 years, 12 months ago (2012-05-09 19:24:05 UTC) #4
*** Submitted:

s3test: add list bucket functionality.

also refactor tests to match ec2 structure
and gofmt on the source tree.

R=niemeyer
CC=
https://codereview.appspot.com/6201062

https://codereview.appspot.com/6201062/diff/2001/s3/s3.go
File s3/s3.go (right):

https://codereview.appspot.com/6201062/diff/2001/s3/s3.go#newcode199
s3/s3.go:199: //     test2.html
On 2012/05/09 01:08:24, niemeyer wrote:
> Can we please have index1.html and index2.html here?

Done.

https://codereview.appspot.com/6201062/diff/2001/s3/s3test/server.go
File s3/s3test/server.go (right):

https://codereview.appspot.com/6201062/diff/2001/s3/s3test/server.go#newcode313
s3/s3test/server.go:313: sort.Sort(objs)
On 2012/05/09 01:08:24, niemeyer wrote:
> Why is this happening down here rather than right after the for loop?

Done.

https://codereview.appspot.com/6201062/diff/2001/s3/s3test/server.go#newcode314
s3/s3test/server.go:314: 
On 2012/05/09 01:08:24, niemeyer wrote:
> Either this line break should be removed or prefixes should be moved to right
> before the for loop.

Done.

https://codereview.appspot.com/6201062/diff/2001/s3/s3test/server.go#newcode323
s3/s3test/server.go:323: name = obj.name[:len(prefix)+len(delimiter)+i]
On 2012/05/09 01:08:24, niemeyer wrote:
> That doesn't look right. If delimiter is "/", obj.name is "foo/bar/baz", and
> prefix is "foo/ba", I doubt we want the reslut of name to be "r". Maybe that's
> how it works, but I'll be surprised if nothing else.

correct as is, as discussed. moved the i to a more appropriate place.

https://codereview.appspot.com/6201062/diff/2001/s3/s3test/server.go#newcode340
s3/s3test/server.go:340: // Content contains only keys not found in
CommonPrefixes
On 2012/05/09 01:08:24, niemeyer wrote:
> s/Content/&s/?

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b