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

Issue 7086055: Add putFakeTools to openstack tests (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by wallyworld
Modified:
11 years, 3 months ago
Reviewers:
mp+143228
Visibility:
Public.

Description

Add putFakeTools to openstack tests Now that the Storage interface is implemented for the openstack provider, we can start using it. This simple branch adds the putFakeTools functionality similar to what is done in the ec2 tests. In addition, to save the tests from having to cast PublicStorage to Storage in order to upload tools, a writable public storage instance is created for the tests to use. https://code.launchpad.net/~wallyworld/juju-core/upload-fake-tools/+merge/143228 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add putFakeTools to openstack tests #

Total comments: 1

Patch Set 3 : Add putFakeTools to openstack tests #

Total comments: 2

Patch Set 4 : Add putFakeTools to openstack tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -30 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M environs/ec2/export_test.go View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M environs/ec2/live_test.go View 1 2 3 chunks +9 lines, -3 lines 0 comments Download
M environs/ec2/local_test.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M environs/openstack/export_test.go View 1 2 3 2 chunks +25 lines, -0 lines 0 comments Download
M environs/openstack/live_test.go View 1 2 3 5 chunks +32 lines, -26 lines 0 comments Download
M environs/openstack/local_test.go View 2 chunks +15 lines, -0 lines 0 comments Download

Messages

Total messages: 11
wallyworld
Please take a look.
11 years, 3 months ago (2013-01-15 04:23:20 UTC) #1
rog
looks mostly reasonable, but a couple of queries below. https://codereview.appspot.com/7086055/diff/1/environs/openstack/live_test.go File environs/openstack/live_test.go (right): https://codereview.appspot.com/7086055/diff/1/environs/openstack/live_test.go#newcode80 environs/openstack/live_test.go:80: ...
11 years, 3 months ago (2013-01-15 10:24:37 UTC) #2
wallyworld
Please take a look. https://codereview.appspot.com/7086055/diff/1/environs/openstack/live_test.go File environs/openstack/live_test.go (right): https://codereview.appspot.com/7086055/diff/1/environs/openstack/live_test.go#newcode80 environs/openstack/live_test.go:80: putFakeTools(c, e.Storage().(environs.Storage)) On 2013/01/15 10:24:38, ...
11 years, 3 months ago (2013-01-16 01:06:25 UTC) #3
fwereade
Just a thought... https://codereview.appspot.com/7086055/diff/5001/environs/openstack/provider.go File environs/openstack/provider.go (right): https://codereview.appspot.com/7086055/diff/5001/environs/openstack/provider.go#newcode223 environs/openstack/provider.go:223: swift: swift.New(e.client(ecfg, authMethodCfg))} Wait -- will ...
11 years, 3 months ago (2013-01-16 08:24:54 UTC) #4
fwereade
After discussion live, LGTM, assuming the points below are addressed without perturbing the code too ...
11 years, 3 months ago (2013-01-16 21:04:57 UTC) #5
wallyworld
On 2013/01/16 21:04:57, fwereade wrote: > After discussion live, LGTM, assuming the points below are ...
11 years, 3 months ago (2013-01-17 05:20:42 UTC) #6
wallyworld
On 2013/01/17 05:20:42, wallyworld wrote: > On 2013/01/16 21:04:57, fwereade wrote: > > After discussion ...
11 years, 3 months ago (2013-01-17 05:26:45 UTC) #7
wallyworld
Please take a look.
11 years, 3 months ago (2013-01-17 05:27:43 UTC) #8
dimitern
LGTM, assuming others agree as well on the points discussed before.
11 years, 3 months ago (2013-01-17 17:08:37 UTC) #9
rog
LGTM with a couple of minor remarks below. https://codereview.appspot.com/7086055/diff/13001/environs/openstack/export_test.go File environs/openstack/export_test.go (right): https://codereview.appspot.com/7086055/diff/13001/environs/openstack/export_test.go#newcode56 environs/openstack/export_test.go:56: swift: ...
11 years, 3 months ago (2013-01-17 17:29:54 UTC) #10
wallyworld
11 years, 3 months ago (2013-01-18 00:59:12 UTC) #11
*** Submitted:

Add putFakeTools to openstack tests

Now that the Storage interface is implemented for the openstack provider, we can
start using it.
This simple branch adds the putFakeTools functionality similar to what is done
in the ec2 tests.
In addition, to save the tests from having to cast PublicStorage to Storage in
order to upload tools, a writable
public storage instance is created for the tests to use.

R=rog, fwereade, dimitern
CC=
https://codereview.appspot.com/7086055
Sign in to reply to this message.

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