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

Issue 13899044: Check each URL for sign and unsigned metadata (Closed)

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

Description

Check each URL for sign and unsigned metadata When looking for simplestreams metadata, the order used to be: check all urls for signed, then check all urls for unsigned metadata. Now the order is: check each url in turn for signed and then unsigned metadata. There are no tests for signed metadata as such; this is the case before this branch. A followup branch will add some new signed metadata tests. https://code.launchpad.net/~wallyworld/juju-core/simplestreams-signed-metadata-chamge/+merge/187467 (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 (+112 lines, -75 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M environs/imagemetadata/simplestreams.go View 1 chunk +1 line, -4 lines 0 comments Download
M environs/simplestreams/simplestreams.go View 3 chunks +91 lines, -57 lines 4 comments Download
M environs/simplestreams/simplestreams_test.go View 4 chunks +10 lines, -3 lines 0 comments Download
M environs/simplestreams/testing/testing.go View 1 chunk +2 lines, -2 lines 0 comments Download
M environs/testing/tools.go View 2 chunks +2 lines, -2 lines 0 comments Download
M environs/tools/simplestreams.go View 2 chunks +2 lines, -5 lines 0 comments Download
M environs/tools/testing/testing.go View 1 chunk +1 line, -1 line 0 comments Download
M environs/tools/tools_test.go View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4
wallyworld
Please take a look.
10 years, 7 months ago (2013-09-25 08:34:30 UTC) #1
jameinel
I really like the changes, however it does feel like we are missing a test. ...
10 years, 7 months ago (2013-09-25 09:24:40 UTC) #2
wallyworld
On 2013/09/25 09:24:40, jameinel wrote: > I really like the changes, however it does feel ...
10 years, 7 months ago (2013-09-25 10:51:54 UTC) #3
wallyworld
10 years, 7 months ago (2013-09-25 10:54:16 UTC) #4
https://codereview.appspot.com/13899044/diff/1/environs/simplestreams/simples...
File environs/simplestreams/simplestreams.go (right):

https://codereview.appspot.com/13899044/diff/1/environs/simplestreams/simples...
environs/simplestreams/simplestreams.go:379: unsignedSuffix   = ".json"
On 2013/09/25 09:24:40, jameinel wrote:
> Given these are const, is there a strong reason to make them private?

I really don't want things outside using parts of file names. The only thing
that used to use them was tests and I believe tests should more often than not
use the text rather than a const.

https://codereview.appspot.com/13899044/diff/1/environs/simplestreams/simples...
environs/simplestreams/simplestreams.go:435: logger.Debugf("skipping index
because of error getting latest metadata %q: %v", indexURL, err)
On 2013/09/25 09:24:40, jameinel wrote:
> Given we checked IsNotFound I'm not sure logging the error here helps a lot.
> Especially since we *are* propagating the error up a level.

It helped at some point I recall. Maybe not now. I'll see if it makes sense to
remove it.
Sign in to reply to this message.

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