|
Upload tools API
An API is provided to allow clients to upload
tools. This is used by the upgrade command and
removes the need for it to have to create an
environment and upload directly to storage. It
also allows us to switch to non cloud storage.
A lot of the changes are due to code refactoring.
The implementation uses an authenticated HTTP
endpoint which shares code with the charm upload
API. So common code was extracted and shared.
The sync tools code was refactored to split up
the building and uploading of tools. This allows
the building part to be stubbed out for testing.
A followup branch can rework the bootstrap code
to take advantage of this.
https://code.launchpad.net/~wallyworld/juju-core/upload-tools-api/+merge/210764
(do not edit description out of merge proposal)
Total comments: 30
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+933 lines, -288 lines) |
Patch |
|
A |
[revision details]
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
cmd/juju/bootstrap_test.go
|
View
|
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
Download
|
|
M |
cmd/juju/upgradejuju.go
|
View
|
1
|
11 chunks |
+93 lines, -72 lines |
0 comments
|
Download
|
|
M |
cmd/juju/upgradejuju_test.go
|
View
|
|
6 chunks |
+36 lines, -29 lines |
0 comments
|
Download
|
|
M |
environs/sync/sync.go
|
View
|
1
2
|
1 chunk |
+116 lines, -59 lines |
0 comments
|
Download
|
|
M |
environs/sync/sync_test.go
|
View
|
1
2
|
2 chunks |
+78 lines, -34 lines |
0 comments
|
Download
|
|
M |
environs/testing/tools.go
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
environs/tools/testing/testing.go
|
View
|
|
2 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
state/api/client.go
|
View
|
1
2
|
2 chunks |
+61 lines, -0 lines |
0 comments
|
Download
|
|
M |
state/apiserver/apiserver.go
|
View
|
1
2
|
1 chunk |
+8 lines, -1 line |
1 comment
|
Download
|
|
M |
state/apiserver/charms.go
|
View
|
|
3 chunks |
+1 line, -44 lines |
0 comments
|
Download
|
|
M |
state/apiserver/charms_test.go
|
View
|
|
3 chunks |
+48 lines, -38 lines |
0 comments
|
Download
|
|
A |
state/apiserver/httphandler.go
|
View
|
1
2
|
1 chunk |
+65 lines, -0 lines |
0 comments
|
Download
|
|
A |
state/apiserver/tools.go
|
View
|
1
2
|
1 chunk |
+194 lines, -0 lines |
0 comments
|
Download
|
|
A |
state/apiserver/tools_test.go
|
View
|
|
1 chunk |
+197 lines, -0 lines |
0 comments
|
Download
|
|
M |
worker/upgrader/upgrader_test.go
|
View
|
1
2
|
2 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
Total messages: 6
|