|
Validate tools using sha256 checksum
The simplestreams tools metadata includes a sha256
checksum and the size of the tarball. When tools are
unpacked, and when they are downloaded to the bootstrap
node, the checksum and size are matched against the
tarball and an error is raised if there is a mismatch.
Legacy tools loading does not support checksums so tests
needed to be changed accordingly. In so doing, some common
tools helpers were moved to environs/testing/tools.go. This
also has the benefit of keeping the tools related test code
in one place, making it easier to swap out the legacy code
later.
https://code.launchpad.net/~wallyworld/juju-core/check-tools-checksum/+merge/187150
(do not edit description out of merge proposal)
Total comments: 22
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+356 lines, -183 lines) |
Patch |
 |
A |
[revision details]
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
agent/tools/diskmanager_test.go
|
View
|
|
3 chunks |
+17 lines, -8 lines |
0 comments
|
Download
|
 |
M |
agent/tools/tools_test.go
|
View
|
|
11 chunks |
+81 lines, -36 lines |
0 comments
|
Download
|
 |
M |
agent/tools/toolsdir.go
|
View
|
|
5 chunks |
+39 lines, -18 lines |
6 comments
|
Download
|
 |
M |
cmd/juju/status_test.go
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/upgradejuju_test.go
|
View
|
|
3 chunks |
+35 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cmd/jujud/agent_test.go
|
View
|
|
6 chunks |
+11 lines, -40 lines |
0 comments
|
Download
|
 |
M |
cmd/jujud/machine_test.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cmd/jujud/unit_test.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
environs/cloudinit/cloudinit.go
|
View
|
|
3 chunks |
+13 lines, -3 lines |
10 comments
|
Download
|
 |
M |
environs/cloudinit/cloudinit_test.go
|
View
|
|
5 chunks |
+22 lines, -8 lines |
0 comments
|
Download
|
 |
M |
environs/testing/tools.go
|
View
|
|
2 chunks |
+54 lines, -5 lines |
0 comments
|
Download
|
 |
M |
environs/tools/storage_test.go
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
state/machine.go
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
state/machine_test.go
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
state/state_test.go
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
state/tools_test.go
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
state/unit.go
|
View
|
|
1 chunk |
+3 lines, -0 lines |
2 comments
|
Download
|
 |
M |
testing/targz.go
|
View
|
|
3 chunks |
+9 lines, -3 lines |
4 comments
|
Download
|
 |
M |
tools/marshal.go
|
View
|
|
3 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
tools/marshal_test.go
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/tools.go
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
worker/deployer/simple_test.go
|
View
|
|
3 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
 |
M |
worker/provisioner/lxc-broker_test.go
|
View
|
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
worker/upgrader/upgrader_test.go
|
View
|
|
11 chunks |
+20 lines, -46 lines |
0 comments
|
Download
|
Total messages: 6
|