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

Issue 16600043: add robust simplestreams cloud matching (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 6 months ago by wallyworld
Modified:
10 years, 6 months ago
Reviewers:
mp+192536, fwereade
Visibility:
Public.

Description

add robust simplestreams cloud matching Allow auth urls to have trailing "/" (or not) and simplestreams will still work as expected. https://code.launchpad.net/~wallyworld/juju-core/simplestreams-cloud-match/+merge/192536 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -13 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M environs/simplestreams/simplestreams.go View 4 chunks +20 lines, -3 lines 2 comments Download
M environs/simplestreams/simplestreams_test.go View 10 chunks +30 lines, -10 lines 2 comments Download

Messages

Total messages: 3
wallyworld
Please take a look.
10 years, 6 months ago (2013-10-24 16:10:41 UTC) #1
fwereade
LGTM https://codereview.appspot.com/16600043/diff/1/environs/simplestreams/simplestreams.go File environs/simplestreams/simplestreams.go (right): https://codereview.appspot.com/16600043/diff/1/environs/simplestreams/simplestreams.go#newcode41 environs/simplestreams/simplestreams.go:41: func (spec *CloudSpec) equals(other *CloudSpec) bool { Maybe ...
10 years, 6 months ago (2013-10-24 18:18:34 UTC) #2
wallyworld
10 years, 6 months ago (2013-10-24 21:04:27 UTC) #3
https://codereview.appspot.com/16600043/diff/1/environs/simplestreams/simples...
File environs/simplestreams/simplestreams.go (right):

https://codereview.appspot.com/16600043/diff/1/environs/simplestreams/simples...
environs/simplestreams/simplestreams.go:41: func (spec *CloudSpec) equals(other
*CloudSpec) bool {
On 2013/10/24 18:18:34, fwereade wrote:
> Maybe nicer to pass by value?

I wanted consistency between the receiver type (*spec) and the function argument
(*other). Since this is equals(), I felt it better for some reason

https://codereview.appspot.com/16600043/diff/1/environs/simplestreams/simples...
File environs/simplestreams/simplestreams_test.go (right):

https://codereview.appspot.com/16600043/diff/1/environs/simplestreams/simples...
environs/simplestreams/simplestreams_test.go:174:
c.Check(simplestreams.HasCloud(metadata, spec), jc.IsTrue)
On 2013/10/24 18:18:34, fwereade wrote:
> Explicit checks for perfect matches, just for pedantry's sake? Maybe that's
just
> duplicating others.

It is done elsewhere but I'll add here too just in case
Sign in to reply to this message.

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