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

Issue 8016043: environs/ec2: make tests pass under quantal-i386

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by rog
Modified:
11 years, 1 month ago
Reviewers:
dimitern, mp+155282, fwereade
Visibility:
Public.

Description

environs/ec2: make tests pass under quantal-i386 Also a few other cleanups. We use data (testImagesContent and testInstanceTypeContent) closer to where it's used, and change things to be slightly more idiomatic in places. The right eventual fix, I think, for the original issue is to fix version.Current for the tests, but this should do until then. https://code.launchpad.net/~rogpeppe/juju-core/255-fix-ec2-quantal-386/+merge/155282 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : environs/ec2: make tests pass under quantal-i386 #

Patch Set 3 : environs/ec2: make tests pass under quantal-i386 #

Patch Set 4 : environs/ec2: make tests pass under quantal-i386 #

Total comments: 4

Patch Set 5 : environs/ec2: make tests pass under quantal-i386 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -42 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M environs/ec2/export_test.go View 1 2 3 4 2 chunks +4 lines, -22 lines 0 comments Download
M environs/ec2/image.go View 2 chunks +1 line, -3 lines 0 comments Download
M environs/ec2/local_test.go View 1 2 4 chunks +33 lines, -6 lines 0 comments Download
M environs/jujutest/metadata.go View 3 chunks +4 lines, -11 lines 0 comments Download

Messages

Total messages: 4
rog
Please take a look.
11 years, 1 month ago (2013-03-25 17:12:32 UTC) #1
fwereade
LGTM, nice.
11 years, 1 month ago (2013-03-25 17:17:55 UTC) #2
dimitern
LGTM https://codereview.appspot.com/8016043/diff/5001/environs/ec2/export_test.go File environs/ec2/export_test.go (right): https://codereview.appspot.com/8016043/diff/5001/environs/ec2/export_test.go#newcode71 environs/ec2/export_test.go:71: // d? https://codereview.appspot.com/8016043/diff/5001/environs/ec2/local_test.go File environs/ec2/local_test.go (right): https://codereview.appspot.com/8016043/diff/5001/environs/ec2/local_test.go#newcode45 environs/ec2/local_test.go:45: ...
11 years, 1 month ago (2013-03-25 17:23:49 UTC) #3
rog
11 years, 1 month ago (2013-03-25 18:21:12 UTC) #4
*** Submitted:

environs/ec2: make tests pass under quantal-i386

Also a few other cleanups. We use data (testImagesContent
and testInstanceTypeContent) closer to where it's used,
and change things to be slightly more idiomatic in places.

The right eventual fix, I think, for the original issue
is to fix version.Current for the tests, but this should
do until then.

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

https://codereview.appspot.com/8016043/diff/5001/environs/ec2/export_test.go
File environs/ec2/export_test.go (right):

https://codereview.appspot.com/8016043/diff/5001/environs/ec2/export_test.go#...
environs/ec2/export_test.go:71: //
On 2013/03/25 17:23:49, dimitern wrote:
> d?

Done.

https://codereview.appspot.com/8016043/diff/5001/environs/ec2/local_test.go
File environs/ec2/local_test.go (right):

https://codereview.appspot.com/8016043/diff/5001/environs/ec2/local_test.go#n...
environs/ec2/local_test.go:45: // testInstanceTypeContent holds the cost in
USDe-3/hour for each of the
On 2013/03/25 17:23:49, dimitern wrote:
> s/USDe-3/USD/?

i think the units are 0.1 cents. the comment is as it was originally - i'll
leave it be for the time being anyway.


that said, the "020" below looks fishy. i wonder if fwereade really intended to
use an octal constant there (and in the real data)
Sign in to reply to this message.

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