From fe59f5172a235904b63e9fa493c6147ddffa0679 Mon Sep 17 00:00:00 2001 From: Ryan Cole Date: Sun, 5 Oct 2014 22:59:38 -0500 Subject: [PATCH] updates for latest hdfs version updated tests against Hadoop 2.4.1 --- package.json | 67 ++++++++++++++++++++++++++----------------------- test/webhdfs.js | 4 +-- 2 files changed, 37 insertions(+), 34 deletions(-) diff --git a/package.json b/package.json index 6cf6f27..af690f5 100644 --- a/package.json +++ b/package.json @@ -1,34 +1,37 @@ { - "name": "node-webhdfs", - "main": "src/webhdfs.js", - "description": "A WebHDFS module for Node.js.", - "version": "0.0.3", - "keywords": ["hdfs", "webhdfs", "http"], - "maintainers": ["Ryan Cole (http://rycole.com)"], - "contributors": ["Ryan Cole (http://rycole.com)"], - "bugs": { - "url": "mailto:ryan@rycole.com" - }, - "licenses": [ - { - "type": "MIT", - "url": "http://www.opensource.org/licenses/MIT" - } - ], - "dependencies": { - "underscore": ">=1.3.3", - "request": ">=2.9.201" - }, - "engines": { - "node": "*" - }, - "author": "Ryan Cole (http://rycole.com)", - "homepage": "https://github.com/ryancole/node-webhdfs", - "repository": { - "type": "git", - "url": "git@github.com:ryancole/node-webhdfs.git" - }, - "scripts": { - "test": "mocha --reporter spec --timeout 10000 test/webhdfs.js" + "name": "node-webhdfs", + "version": "0.0.4", + "description": "A WebHDFS module for Node.js.", + "author": "Ryan Cole (http://rycole.com)", + "homepage": "https://github.com/ryancole/node-webhdfs", + "main": "src/webhdfs.js", + "keywords": [ + "hdfs", + "webhdfs", + "http" + ], + "bugs": { + "url": "mailto:ryan@rycole.com" + }, + "licenses": [ + { + "type": "MIT", + "url": "http://www.opensource.org/licenses/MIT" } -} \ No newline at end of file + ], + "dependencies": { + "request": "^2.45.0", + "underscore": "^1.7.0" + }, + "devDependencies": { + "mocha": "^1.21.4", + "should": "^4.0.4" + }, + "repository": { + "type": "git", + "url": "git@github.com:ryancole/node-webhdfs.git" + }, + "scripts": { + "test": "mocha --reporter spec --timeout 10000 test/webhdfs.js" + } +} diff --git a/test/webhdfs.js b/test/webhdfs.js index 232cceb..b6aac4c 100644 --- a/test/webhdfs.js +++ b/test/webhdfs.js @@ -107,8 +107,8 @@ describe('WebHDFSClient', function () { should.not.exist(err); should.exist(checksum); - - checksum.should.have.property('algorithm', 'MD5-of-0MD5-of-512CRC32'); + + checksum.should.have.property('algorithm', 'MD5-of-0MD5-of-512CRC32C'); return done();