1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

41 Commits

Author SHA1 Message Date
Guy Korland
428e1c8a7b Add support for Redis 6 auth pass [user] (#1508)
* Add support for `auth pass user`

* fix lint issues

* fix typo

* fix more lint issues

* more lints fixes

* reverse password user order

* update redis-commands

* Update individualCommands.js

Clean code

* Update individualCommands.js

* Update auth.spec.js

* Update index.js

Co-authored-by: Leibale Eidelman <leibale1998@gmail.com>
2021-03-17 19:21:37 -04:00
Leibale Eidelman
fbca5cda0a Upgrade node and dependencies (#1578)
* upgrade workflow actions

* fix setup-node version

* change redis-64 version to 3.0.503

* fix "no password is set" for redis6,
fix tests to work with redis6,
add redis6 to workflows

* do not use assert.match (was added only at v13.6.0 & v12.16.0)

* fix errors.subscribeUnsubscribeOnly regex

* fix invaliodPassword typo

* send --save "" to redis-server in tests

* upgrade dependencies, set node minimum version to 10, use current LTS versions in tests and benchmark workflows

* change windows tests too

* revert mocha back to ^4.1.0

* fix for f5528504a0 - revert mocha back to ^4.1.0

* fix some tests and upgrade mocha

* fix two more tests

* try to fix tests in windows

* upgrade denque and redis-commands
ref #1575

* replace `new Buffer` (deprecated) with `Buffer.from`

* Buffer.from(0) should be Buffer.alloc(0)
2021-03-08 14:12:26 -05:00
Salakar
79927c56a0 tests: remove unused parser client option from all tests & helpers 2020-02-09 06:08:30 +00:00
Salakar
c0cc0bfab4 start of work towards v3 release 2020-02-09 02:05:21 +00:00
Ruben Bridgewater
4f7f1adf50 fix: silence auth errors on reconnect 2017-07-23 14:45:17 -03:00
Ruben Bridgewater
16632f43f1 fix emitting internal auth error on reconnect 2017-07-20 21:24:38 -03:00
Ruben Bridgewater
ce1678c778 Improve coverage; make tests ready for Redis 3.2
Add command sanity check
2016-04-29 04:10:23 +02:00
Ruben Bridgewater
a857829a36 Improve error handling
Arguments are now passed to an command error in case they exist
An error is only emitted if that very same error is not already handled in a callback
2016-04-29 04:10:23 +02:00
Ruben Bridgewater
3038c9043d Make sure all individual handled command work in multi context the same
Fix quit possibly resulting in reconnections
2016-04-29 04:10:23 +02:00
Ruben Bridgewater
5d12659583 Fix typos / comments 2016-04-29 04:10:23 +02:00
Ruben Bridgewater
a9d565b8f4 Fix auth regression
Fixes #1028
2016-04-29 04:10:23 +02:00
Ruben Bridgewater
d2b8f2f391 Add support for camelCase
Fixes missing `EXEC_BATCH` on multi
2016-04-29 04:10:23 +02:00
Ruben Bridgewater
14170f9d02 Improve tests a bit
Reduce timeouts if possible
Extend timeouts if needed (windows tests need their time)
Don't expose the redis socket to others than the owner
Don't create the stunnel log
2016-04-01 11:42:22 +02:00
Ruben Bridgewater
94e9f1fcfc Replace jshint with eslint and add lots of rules
Fix eslint errors accordingly
2016-03-26 14:45:12 +01:00
Ruben Bridgewater
7a5a4aa535 Fix pub sub mode
There is likely a better and more performant way to fix this but this works so far
and should be good enough to release and improve later.

Make test more robust

Add another test
2016-03-26 02:14:10 +01:00
Ruben Bridgewater
7af90043c8 Improve test 2016-03-26 01:00:32 +01:00
Ruben Bridgewater
eb9500bb9f Fix redis 2.4 auth support 2016-03-16 23:15:21 +01:00
Ruben Bridgewater
6598da5366 Indicate transmission errors 2016-03-15 03:56:47 +01:00
Ruben Bridgewater
ff19663d9d Remove code overhead
Add another domain test

Fix test on node 0.10
2016-03-15 03:56:36 +01:00
Ruben Bridgewater
e48e1e845f Windows fixes
Skip redis process spawn on windows for now
2016-03-07 02:03:10 +01:00
Ruben Bridgewater
fb0eaf4d41 Unify auth handling 2016-03-01 17:59:17 +01:00
Ruben Bridgewater
5ef24a90b6 Add tests and improve older tests 2015-12-31 06:00:20 +01:00
Ruben Bridgewater
8bf794fb36 Stricten tests by always ending redis with .end(true) if possible 2015-11-22 16:56:54 +01:00
Ruben Bridgewater
7718e219e9 Remove listener if not needed anymore and alawys end a client after a test 2015-10-29 15:04:47 +01:00
Ruben Bridgewater
ed2fc95444 Fix should_buffer return values and empty .batch and .auth return value being sync
Fix test
2015-10-11 03:38:41 +02:00
Ruben Bridgewater
6958c1854b Increase the coverage by adding tests and fix a failing ready check 2015-09-21 02:38:27 +02:00
Ruben Bridgewater
c60a3b65fe Rename .command_used to .command and add the used command to more errors 2015-09-20 18:56:21 +02:00
Ruben Bridgewater
d61d97e24e Fix .auth not working properly
The arguments parameter was faulty andthe callback could have been triggered twice
2015-09-18 00:05:10 +02:00
Ruben Bridgewater
0b8705abe9 Do not run all tests with every single connection (if one connection works, the others are going to be fine too) 2015-09-16 05:22:07 +02:00
Ruben Bridgewater
c269b7539c Check that the password is from type string 2015-09-15 22:35:25 +02:00
Ruben Bridgewater
ebbb0146b9 Fix auth emitting the error even though a callback is present
Fix auth manipulating the returned error
And this is also removing some dead code
2015-09-15 03:50:47 +02:00
Ruben Bridgewater
1a06cfb6ec Add .command_used to errors thrown by the parser 2015-09-15 03:50:46 +02:00
Benjamin Coe
be708906fa add test for providing auth after client is created 2015-09-13 22:21:03 -07:00
Benjamin Coe
a0bf9e2314 tweaks based on running test-suite on Windows on an older Redis 2015-09-12 18:29:50 -07:00
Benjamin Coe
b4da975785 prep for getting tests to work on appveyor 2015-09-12 18:24:14 -07:00
Ruben Bridgewater
9acbd6c860 Add simicolons and remove trailing whitespace 2015-09-12 18:56:49 +02:00
Ruben Bridgewater
06c5f1922b Add jshint and fix errors accordingly (including broken tests) 2015-09-12 18:56:49 +02:00
Ruben Bridgewater
a5938f3ade Refactor the test suite and remove duplicated code 2015-09-01 23:28:41 +02:00
Benjamin Coe
417c8c1247 had descriptions of tests swapped around 2015-08-29 14:55:01 -07:00
Erin Spiceland
65db5dbefe Clarify this one test is only applicable for IPv4. 2015-08-15 11:51:37 -05:00
Benjamin Coe
a0832c3744 slight refactor from code review
smoke test large list of commands

ported more tests to mocha, some slight cleanup in tests

move sinon and uuid to dev dependencies

finished porting eval tests over to mocha

rebased mocha testing branch with master

ported client and script tests

ported watch tests

ported detect_buffers tests

ported unref tests

ported auth tests over to mocha

ported idle and no_delay tests

ported hlen, hset

continuing marching forward

ported hincrby, sinter, sort, pubsub tests. improved logic in redis-process, I was still occasionally having issues where redis failed to exit.

switch back to default test command

ported del, exists, hlen, keys, randomkey, type

cleanup based on what I've learned so far from refactor. we now start and stop redis less often. moved tests to their final resting place

finished porting node_redis client tests

ported hgetall, mget, msetnx, rename, renamenx, setex, setnx

ported hgetall, mget, msetnx, rename, renamenx, setex, setnx

ported queue tests to mocha

amalgamated some of the helper logic

ported sadd, scard, sismember, srem, utf-8
2015-08-14 21:31:18 -07:00