Issue 191: fixed validation of chef md5s

This commit is contained in:
Adrian Cole 2010-07-06 18:26:16 -07:00
parent 204c093753
commit 276e3a76b7
1 changed files with 1 additions and 1 deletions

View File

@ -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