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

Issue 7346052: local: add storage (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by TheMue
Modified:
10 years, 10 months ago
Reviewers:
dimitern, mp+149246, fwereade
Visibility:
Public.

Description

local: add storage Added environ.Storage implementation using the local storage backend. The tests so far are a copy from environs/jujutest to check if the behavior is adequate. https://code.launchpad.net/~themue/juju-core/012-local-storage/+merge/149246 Requires: https://code.launchpad.net/~themue/juju-core/011-local-storage-backend/+merge/148809 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 21

Patch Set 2 : local: add storage #

Patch Set 3 : local: add storage #

Patch Set 4 : local: add storage #

Total comments: 7

Patch Set 5 : local: add storage #

Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -0 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M environs/local/export_test.go View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
A environs/local/storage.go View 1 2 3 4 1 chunk +123 lines, -0 lines 0 comments Download
A environs/local/storage_test.go View 1 2 3 4 1 chunk +107 lines, -0 lines 0 comments Download

Messages

Total messages: 8
TheMue
Please take a look.
11 years, 2 months ago (2013-02-19 11:34:58 UTC) #1
dimitern
Overall LGTM, modulo some trivial suggestions. https://codereview.appspot.com/7346052/diff/1/environs/local/storage.go File environs/local/storage.go (right): https://codereview.appspot.com/7346052/diff/1/environs/local/storage.go#newcode11 environs/local/storage.go:11: d https://codereview.appspot.com/7346052/diff/1/environs/local/storage.go#newcode14 environs/local/storage.go:14: ...
11 years, 2 months ago (2013-02-19 12:06:09 UTC) #2
TheMue
Please take a look. https://codereview.appspot.com/7346052/diff/1/environs/local/storage.go File environs/local/storage.go (right): https://codereview.appspot.com/7346052/diff/1/environs/local/storage.go#newcode11 environs/local/storage.go:11: On 2013/02/19 12:06:10, dimitern wrote: ...
11 years, 2 months ago (2013-02-19 13:36:42 UTC) #3
dimitern
LGTM
11 years, 2 months ago (2013-02-19 13:42:21 UTC) #4
TheMue
Please take a look.
11 years, 2 months ago (2013-02-20 12:04:29 UTC) #5
TheMue
Please take a look.
11 years, 2 months ago (2013-02-20 14:58:50 UTC) #6
fwereade
LGTM with the AttemptStrategy stuff dropped. https://codereview.appspot.com/7346052/diff/12001/environs/local/storage_test.go File environs/local/storage_test.go (right): https://codereview.appspot.com/7346052/diff/12001/environs/local/storage_test.go#newcode18 environs/local/storage_test.go:18: var noRetry = ...
11 years, 2 months ago (2013-02-22 10:09:04 UTC) #7
TheMue
11 years, 2 months ago (2013-02-22 14:31:34 UTC) #8
*** Submitted:

local: add storage

Added environ.Storage implementation using the local
storage backend. The tests so far are a copy from
environs/jujutest to check if the behavior is adequate.

R=dimitern, fwereade
CC=
https://codereview.appspot.com/7346052

https://codereview.appspot.com/7346052/diff/12001/environs/local/storage_test.go
File environs/local/storage_test.go (right):

https://codereview.appspot.com/7346052/diff/12001/environs/local/storage_test...
environs/local/storage_test.go:18: var noRetry = trivial.AttemptStrategy{}
On 2013/02/22 10:09:04, fwereade wrote:
> There's no need for an AttemptStrategy here.

Done.

https://codereview.appspot.com/7346052/diff/12001/environs/local/storage_test...
environs/local/storage_test.go:85: func checkFileDoesNotExist(c *C, storage
environs.StorageReader, name string, attempt trivial.AttemptStrategy) {
On 2013/02/22 10:09:04, fwereade wrote:
> AttemptStrategy not needed.

Done.

https://codereview.appspot.com/7346052/diff/12001/environs/local/storage_test...
environs/local/storage_test.go:99: func checkFileHasContents(c *C, storage
environs.StorageReader, name string, contents []byte, attempt
trivial.AttemptStrategy) {
On 2013/02/22 10:09:04, fwereade wrote:
> AttemptStrategy not needed.

Done.
Sign in to reply to this message.

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