mirror of https://github.com/apache/jclouds.git
Issue 191: fixed validation of chef md5s
This commit is contained in:
parent
204c093753
commit
276e3a76b7
|
@ -137,7 +137,7 @@ public class ChefClientLiveTest {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
InputStream stream = adminConnection.utils().http().get(resource.getUrl());
|
InputStream stream = adminConnection.utils().http().get(resource.getUrl());
|
||||||
byte[] md5 = adminConnection.utils().encryption().sha256(stream);
|
byte[] md5 = adminConnection.utils().encryption().md5(stream);
|
||||||
String md5Hex = adminConnection.utils().encryption().hex(md5);
|
String md5Hex = adminConnection.utils().encryption().hex(md5);
|
||||||
assert md5Hex.equals(resource.getChecksum()) : String.format(
|
assert md5Hex.equals(resource.getChecksum()) : String.format(
|
||||||
"hex for %s was: %s should be %s ", resource, md5Hex, resource
|
"hex for %s was: %s should be %s ", resource, md5Hex, resource
|
||||||
|
|
Loading…
Reference in New Issue