From 2a594b624d40d1c5cf02999f30f625038fbe69db Mon Sep 17 00:00:00 2001 From: brianc Date: Mon, 25 Oct 2010 19:19:01 -0500 Subject: [PATCH] remove redundant auth tests and connect with command line arguments --- .../connection/cleartext-password-tests.js | 11 ----------- .../integration/connection/md5-password-tests.js | 16 ---------------- test/integration/connection/no-password-tests.js | 8 -------- 3 files changed, 35 deletions(-) delete mode 100644 test/integration/connection/cleartext-password-tests.js delete mode 100644 test/integration/connection/md5-password-tests.js delete mode 100644 test/integration/connection/no-password-tests.js diff --git a/test/integration/connection/cleartext-password-tests.js b/test/integration/connection/cleartext-password-tests.js deleted file mode 100644 index f447a882..00000000 --- a/test/integration/connection/cleartext-password-tests.js +++ /dev/null @@ -1,11 +0,0 @@ -var helper = require(__dirname + '/test-helper'); -test('can log in with clear text password', function() { - helper.authConnect('user_pw', 'postgres', function(con) { - assert.raises(con, 'authenticationCleartextPassword', function() { - con.password('pass'); - }); - assert.raises(con, 'readyForQuery', function() { - con.end(); - }); - }); -}); diff --git a/test/integration/connection/md5-password-tests.js b/test/integration/connection/md5-password-tests.js deleted file mode 100644 index e1116526..00000000 --- a/test/integration/connection/md5-password-tests.js +++ /dev/null @@ -1,16 +0,0 @@ -var helper = require(__dirname + '/test-helper'); - -test('can log in with md5 password', function() { - helper.authConnect('user_md5', 'postgres', function(con) { - - assert.raises(con, 'authenticationMD5Password', function(msg) { - assert.ok(msg.salt); - var enc = Client.md5('ssap' + 'user_md5'); - enc = Client.md5(enc + msg.salt.toString('binary')); - con.password('md5'+enc); - }); - assert.raises(con, 'readyForQuery', function() { - con.end(); - }); - }); -}); diff --git a/test/integration/connection/no-password-tests.js b/test/integration/connection/no-password-tests.js deleted file mode 100644 index 16f2706b..00000000 --- a/test/integration/connection/no-password-tests.js +++ /dev/null @@ -1,8 +0,0 @@ -var helper = require(__dirname+'/test-helper'); -test('can log in with no password', function() { - helper.authConnect(function(con) { - assert.raises(con, 'readyForQuery', function() { - con.end(); - }); - }); -});