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

Issue 10500043: environ.StateInfo() for Azure provider. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 10 months ago by jtv.canonical
Modified:
10 years, 8 months ago
Reviewers:
mue, dimitern, mp+171081, fwereade, allenap
Visibility:
Public.

Description

environ.StateInfo() for Azure provider. This also required an implementation of loadState and saveState. All of this looks like it belongs outside of the provider implementation; we just copy it from the rest. Tests are also similar to what we found elsewhere. It looks like it could do with some refactorings but we try to avoid that, on the assumption that such code will be generalized at some point and the job will only get worse if the various redundant implementations look too different. In a new twist, I found that the loading/saving of state can be unit-tested. The dummy provider has an in-memory storage implementation that we can re-use. No need to put up a test double for Azure's storage service or anything like that. All it took was to export two constructors from the dummy provider. https://code.launchpad.net/~jtv/juju-core/stateinfo/+merge/171081 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 10

Patch Set 2 : environ.StateInfo() for Azure provider. #

Total comments: 2

Patch Set 3 : environ.StateInfo() for Azure provider. #

Patch Set 4 : environ.StateInfo() for Azure provider. #

Patch Set 5 : environ.StateInfo() for Azure provider. #

Patch Set 6 : environ.StateInfo() for Azure provider. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+312 lines, -28 lines) Patch
A [revision details] View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M environs/azure/environ.go View 1 2 3 4 5 7 chunks +101 lines, -14 lines 0 comments Download
M environs/azure/environ_test.go View 1 2 4 chunks +44 lines, -10 lines 0 comments Download
M environs/azure/environprovider.go View 1 1 chunk +2 lines, -4 lines 0 comments Download
A environs/azure/state.go View 1 2 3 4 5 1 chunk +53 lines, -0 lines 0 comments Download
A environs/azure/state_test.go View 1 2 3 4 1 chunk +95 lines, -0 lines 0 comments Download
M environs/ec2/ec2.go View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M environs/ec2/state.go View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M environs/maas/environ.go View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M environs/maas/state.go View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M environs/openstack/provider.go View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M environs/openstack/state.go View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 18
jtv.canonical
Please take a look.
10 years, 10 months ago (2013-06-24 13:27:40 UTC) #1
mue
Not yet sure about the role of bootstrapState. A better documentation there may help. https://codereview.appspot.com/10500043/diff/1/environs/azure/environ.go ...
10 years, 10 months ago (2013-06-25 13:47:30 UTC) #2
fwereade
good in essence, but I don;t want the dummy provider infecting real code. (if you've ...
10 years, 10 months ago (2013-06-26 13:10:53 UTC) #3
jtv.canonical
Please take a look.
10 years, 10 months ago (2013-06-26 16:19:07 UTC) #4
fwereade
original comments still apply, just a couple more notes https://codereview.appspot.com/10500043/diff/10001/environs/azure/environ.go File environs/azure/environ.go (right): https://codereview.appspot.com/10500043/diff/10001/environs/azure/environ.go#newcode13 environs/azure/environ.go:13: ...
10 years, 10 months ago (2013-06-26 23:44:38 UTC) #5
jtv.canonical
Please take a look.
10 years, 10 months ago (2013-06-27 10:32:43 UTC) #6
jtv.canonical
Please take a look.
10 years, 10 months ago (2013-06-27 10:34:27 UTC) #7
jtv.canonical
(Reproducing a message from memory that got lost in the catacombs of Rietveld somewhere) Whew. ...
10 years, 10 months ago (2013-06-27 10:54:02 UTC) #8
dimitern
On 2013/06/27 10:54:02, jtv.canonical wrote: > (Reproducing a message from memory that got lost in ...
10 years, 10 months ago (2013-06-27 14:24:37 UTC) #9
jtv.canonical
> Please take a look and use Roger's CL factoring out the local provider's > ...
10 years, 10 months ago (2013-06-27 15:12:30 UTC) #10
dimitern
On 2013/06/27 15:12:30, jtv.canonical wrote: > > Please take a look and use Roger's CL ...
10 years, 10 months ago (2013-06-27 15:45:52 UTC) #11
jtv.canonical
> There are 2 methods you probably need: Serve(addr, dir string) (net.Listener, > error) and ...
10 years, 10 months ago (2013-06-27 18:20:51 UTC) #12
jtv.canonical
Please take a look.
10 years, 10 months ago (2013-06-28 08:01:21 UTC) #13
jtv.canonical
Okay, I got it working again after the conflicts and API change from localstorage. I ...
10 years, 10 months ago (2013-06-28 08:26:27 UTC) #14
fwereade
On 2013/06/28 08:26:27, jtv.canonical wrote: > Okay, I got it working again after the conflicts ...
10 years, 10 months ago (2013-06-28 11:29:06 UTC) #15
jtv.canonical
Thanks. I filed bug 1195721, and added comments to all the StateInfo implementations and the ...
10 years, 10 months ago (2013-06-28 12:34:36 UTC) #16
jtv.canonical
Please take a look.
10 years, 10 months ago (2013-06-28 12:47:03 UTC) #17
allenap
10 years, 10 months ago (2013-06-28 14:27:34 UTC) #18
LGTM
Sign in to reply to this message.

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