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

Issue 13888043: Reorder simplestreams URLs (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+187439, jameinel
Visibility:
Public.

Description

Reorder simplestreams URLs This branch is a more complete fix for some work done late last week when the 1.15 release was thought to be immiment. It restores the order of simplestreams urls so that any that are specified in the environments.yaml are used first. The HP Cloud specific URL is inserted into the custom sources instead of being processed at config validation time. https://code.launchpad.net/~wallyworld/juju-core/reorder-simplestreams-urls/+merge/187439 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -53 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M environs/imagemetadata/urls.go View 2 chunks +3 lines, -3 lines 0 comments Download
M environs/imagemetadata/urls_test.go View 1 chunk +1 line, -1 line 0 comments Download
M environs/tools/urls.go View 2 chunks +4 lines, -4 lines 0 comments Download
M environs/tools/urls_test.go View 1 chunk +1 line, -1 line 0 comments Download
M provider/openstack/config.go View 1 chunk +2 lines, -20 lines 0 comments Download
M provider/openstack/config_test.go View 2 chunks +0 lines, -12 lines 0 comments Download
M provider/openstack/export_test.go View 1 chunk +7 lines, -0 lines 2 comments Download
M provider/openstack/local_test.go View 2 chunks +63 lines, -12 lines 0 comments Download
M provider/openstack/provider.go View 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 3
wallyworld
Please take a look.
10 years, 7 months ago (2013-09-25 02:28:40 UTC) #1
jameinel
LGTM https://codereview.appspot.com/13888043/diff/1/provider/openstack/export_test.go File provider/openstack/export_test.go (right): https://codereview.appspot.com/13888043/diff/1/provider/openstack/export_test.go#newcode88 provider/openstack/export_test.go:88: func PatchCertifiedURL(auth_url, fake_url string) func() { The fact ...
10 years, 7 months ago (2013-09-25 09:30:32 UTC) #2
wallyworld
10 years, 7 months ago (2013-09-25 10:48:44 UTC) #3
https://codereview.appspot.com/13888043/diff/1/provider/openstack/export_test.go
File provider/openstack/export_test.go (right):

https://codereview.appspot.com/13888043/diff/1/provider/openstack/export_test...
provider/openstack/export_test.go:88: func PatchCertifiedURL(auth_url, fake_url
string) func() {
On 2013/09/25 09:30:32, jameinel wrote:
> The fact that you are adding/removing a trailing slash here concerns me that
our
> matching is overly-strict internally.
> 
> Specifically, if I specify:
>  auth-url: http://hp.foo/stuff
> 
> Then we wouldn't find the tools unless I did:
>  auth-url: http://hp.foo/stuff/
> 
> Now while according to the URL spec, those *are* different places, they aren't
> different to a User. So I'd rather we always-strip (or always append?).
> 
> This function doesn't check if you already have a '/' which means you might
end
> up with :
>   http://localhost/foo//
> 
> Anyway, doesn't have to change, but does bring up a question about how we are
> treating URLs and if we are being too strict with exact auth-url matching.

The tools business logic does the right thing. Because this test helper is
poking the internals directly, it needs to be a bit fussy. But in practice, a
user can have an auth url with or without a trailing / and it will work.
Sign in to reply to this message.

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