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

Issue 10367045: Create gwacl session objects for management & API. (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:
Danilo, mp+170032, thumper
Visibility:
Public.

Description

Create gwacl session objects for management & API. I commented out one of the new functions at the last moment (as well as its test), even though the test passes. This was done because we're still working out a detail in gwacl that may result in an incompatible change. For some of the code in here, including Config(), the only interesting aspect to test really is the locking. It's the one thing that can go wrong. None of the other providers seem to test for this, and it's a bit of a losing game in that whenever you forget to lock, you're likely to forget to test for locking as well. But I wrote up a simple, reusable pattern so that at least we can guard against regressions. The pattern was discussed with Gavin, the gwacl work with Raphaƫl. https://code.launchpad.net/~jtv/juju-core/create-gwacl-sessions/+merge/170032 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -1 line) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M environs/azure/environ.go View 3 chunks +34 lines, -1 line 0 comments Download
M environs/azure/environ_test.go View 3 chunks +130 lines, -0 lines 1 comment Download

Messages

Total messages: 6
jtv.canonical
Please take a look.
10 years, 10 months ago (2013-06-18 10:03:59 UTC) #1
Danilo
This generally LGTM. I have further suggestions on the lock testing pattern, but it may ...
10 years, 10 months ago (2013-06-19 17:03:25 UTC) #2
jtv.canonical
On 2013/06/19 17:03:25, Danilo wrote: > Also, I am not sure of the value of ...
10 years, 10 months ago (2013-06-19 22:46:37 UTC) #3
jtv.canonical
...And it turns out that John Meinel already worked out a generic form for us! ...
10 years, 10 months ago (2013-06-19 23:06:06 UTC) #4
jtv.canonical
I came up with a much simpler and more generic form for the helper: https://codereview.appspot.com/10433043/
10 years, 10 months ago (2013-06-20 02:24:00 UTC) #5
thumper
10 years, 10 months ago (2013-06-20 02:39:21 UTC) #6
On 2013/06/20 02:24:00, jtv.canonical wrote:
> I came up with a much simpler and more generic form for the helper:
> https://codereview.appspot.com/10433043/

LGTM for what I could follow.
Sign in to reply to this message.

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