summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* AsyncIO Race Condition Fix (#2639)v4.3.64.3Chayim2023-03-222-0/+40
|
* Cherry-pick for 4.3.5 (#2468)dvora-h2022-11-2111-445/+1298
| | | | | | | | | | | | | | | | | | | | Co-authored-by: pedro.frazao <perl.pf@netcf.org> Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com> Co-authored-by: Gauthier Imbert <gauthier@PC17> Co-authored-by: Chayim <chayim@users.noreply.github.com> Co-authored-by: szumka <106675199+szumka@users.noreply.github.com> Co-authored-by: Mehdi ABAAKOUK <sileht@sileht.net> Co-authored-by: Tim Gates <tim.gates@iress.com> Co-authored-by: Utkarsh Gupta <utkarshgupta137@gmail.com> Co-authored-by: Nial Daly <34862917+nialdaly@users.noreply.github.com> Co-authored-by: pedrofrazao <603718+pedrofrazao@users.noreply.github.com> Co-authored-by: Антон Безденежных <gamer392@yandex.ru> Co-authored-by: Iglesys <g.imbert34@gmail.com> Co-authored-by: Kristján Valur Jónsson <sweskman@gmail.com> Co-authored-by: DvirDukhan <dvir@redis.com> Co-authored-by: Alibi Shalgymbay <a.shalgymbay@mycar.kz> Co-authored-by: dvora-h <dvora.heller@redis.com> Co-authored-by: Alibi <aliby.bbb@gmail.com> Co-authored-by: Aarni Koskela <akx@iki.fi>
* Fix `XAUTOCLAIM` to return the full response (#2252)dvora-h2022-06-271-2/+2
| | | | | * fix parse_xautoclaim * linters
* Split incorrect mark into two separate marks (#2253)Kristján Valur Jónsson2022-06-271-4/+9
|
* late eval of the skip condition (#2248)Kristján Valur Jónsson2022-06-274-4/+7
| | | | | | | | | | * late eval of the skip condition at module import time, the REDIS_INFO dict hasn't been initialized. * Store REDIS_INFO in config object, where it is available from condition strings * Fix comparson of time You can't test rounded values for equalness, since they may fall each on a different side of 0.5. It is better to test their absolute difference for a certain tolerance, in this case 1.0 which is the intent of the original round.
* Added dynamic_startup_nodes configuration to RedisCluster. (#2244)Bar Shaul2022-06-231-1/+22
| | | | | | | | | * Added dynamic_startup_nodes configuration to RedisCluster. By default, uses only the initial passed startup nodes to refresh the cluster topology. If set to true, sets the startup nodes to all of the discovered nodes. * Added RedisCluster specific options to the README file and updated CHANGES * Fixed timeout_error_topology_refresh test Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* Reuse the old nodes' connections when a cluster topology refresh is being ↵Bar Shaul2022-06-232-3/+47
| | | | | | | | | | | | | done (#2235) * A fix was made to reuse the old nodes' connections when a cluster topology refresh is being done * Fixed RedisCluster to immediately raise AuthenticationError * Updated CHANGES * Fixed cluster async bgsave test to ignore "bgsave already in progress" error * Fixed linters
* Fix retries in async mode (#2180)Eric Lemoine2022-06-191-3/+35
| | | | | | | | | * Avoid mutating a global retry_on_error list * Make retries config consistent in sync and async * Fix async retries * Add new TestConnectionConstructorWithRetry tests
* async_cluster: fix simultaneous initialize (#2231)Utkarsh Gupta2022-06-191-3/+5
| | | - close startup_nodes too during client.close(), in case they are different
* SHUTDOWN - add support for the new NOW, FORCE and ABORT modifiers (#2150)dvora-h2022-06-011-0/+14
| | | | | | | | | | | | | | | * add support for NOW, FORCE and ABORT modifiers * linters * test * linters * test params * fix tests Co-authored-by: Chayim <chayim@users.noreply.github.com>
* Made sync lock consistent and added types to it (#2137)Anas2022-06-011-0/+20
| | | | | | | | | * Made sync lock consistent and added types to it * Made linters happy * Fixed cluster client lock signature Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* Add `query_params` to FT.PROFILE (#2198)dvora-h2022-06-011-0/+24
| | | | | | | * ft.profile query_params * fix pr comments * type hints
* Fix tests for Redis 7 (#2182)dvora-h2022-05-317-73/+91
| | | | | * fix tests * async
* async_cluster: add pipeline support (#2199)Utkarsh Gupta2022-05-302-4/+257
| | | Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* update black to 22.3.0 (#2171)Utkarsh Gupta2022-05-3017-345/+107
|
* async_cluster: add/update typing (#2195)Utkarsh Gupta2022-05-301-26/+9
| | | | | | | * async_cluster: add/update typing * async_cluster: update cleanup_kwargs with kwargs from async Connection * async_cluster: properly remove old nodes
* set default response_callbacks to redis.asyncio.cluster.ClusterNode (#2201)rapidia2022-05-301-0/+5
| | | | | | | | | * set default response_callbacks to redis.asyncio.cluster.ClusterNode * add test case for ClusterNode class * fix lint error * merge test case into `test_startup_nodes`
* Support CF.MEXISTS + Clean bf/commands.py (#2184)Avital Fine2022-05-231-0/+1
| | | | | | | * Support CF.MEXISTS * Clean bf/commands.py Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* Fix Linting and Test Failures (#2191)Greg Melton2022-05-232-5/+5
| | | | | | | * force triggering pr pipeline * fix lint error * https://github.com/RedisJSON/RedisJSON/pull/721 no longer clears strings or boolean scalars
* fix incorrect test (#2177)Avital Fine2022-05-161-12/+13
| | | | | * fix incorrect test * Fix types
* Get command keys for subcommands (#2170)dvora-h2022-05-082-2/+2
| | | | | * parse subcommands * fix tests
* Add support for CLUSTER SHARDS (#2151)dvora-h2022-05-081-0/+23
| | | | | | | | | * Add support for CLUSTER SHARDS * linters * add docstring * linters
* Add support for COMMAND LIST (#2149)dvora-h2022-05-081-0/+10
| | | | | * Add support for COMMAND LIST * style change
* Add Async RedisCluster (#2099)Utkarsh Gupta2022-05-089-130/+2411
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Copy Cluster Client, Commands, Commands Parser, Tests for asyncio * Async Cluster Tests: Async/Await * Add Async RedisCluster * cluster: use ERRORS_ALLOW_RETRY from self.__class__ * async_cluster: rework redis_connection, initialize, & close - move redis_connection from NodesManager to ClusterNode & handle all related logic in ClusterNode class - use Locks while initializing or closing - in case of error, close connections instead of instantly reinitializing - create ResourceWarning instead of manually deleting client object - use asyncio.gather to run commands/initialize/close in parallel - inline single use functions - fix test_acl_log for py3.6 * async_cluster: add types * async_cluster: add docs * docs: update sphinx & add sphinx_autodoc_typehints * async_cluster: move TargetNodesT to cluster module * async_cluster/commands: inherit commands from sync class if possible * async_cluster: add benchmark script with aredis & aioredis-cluster * async_cluster: remove logging * async_cluster: inline functions * async_cluster: manage Connection instead of Redis Client * async_cluster/commands: optimize parser * async_cluster: use ensure_future & generators for gather * async_conn: optimize * async_cluster: optimize determine_slot * async_cluster: optimize determine_nodes * async_cluster/parser: optimize _get_moveable_keys * async_cluster: inlined check_slots_coverage * async_cluster: update docstrings * async_cluster: add concurrent test & use read_response/_update_moved_slots without lock Co-authored-by: Chayim <chayim@users.noreply.github.com>
* Add unittest for PubSub.connect() (#2167)Kristján Valur Jónsson2022-05-081-0/+82
| | | | | * Add unittest for PubSub reconnect * fix linting
* ACL SETUSER - add selectors and key based permissions (#2161)dvora-h2022-05-032-4/+36
| | | | | | | * acl setuser * async tests Co-authored-by: Chayim <chayim@users.noreply.github.com>
* skip graph.config test (#2163)dvora-h2022-05-031-0/+2
|
* Add support for redis 7 streams features (#2157)dvora-h2022-05-031-9/+46
| | | | | | | | | | | | | * xadd * streams redis 7 * linters * test xinfo stream * test xinfo stream * test xclaim
* Async Connection: Allow `PubSub.run()` without previous `subscribe()` (#2148)Kristján Valur Jónsson2022-05-021-0/+33
|
* Implemented LATENCY HISTOGRAM by always throwing NotImplementedError (#2147)dvora-h2022-05-021-0/+5
| | | Co-authored-by: Chayim <chayim@users.noreply.github.com>
* Add async supoort for SEARCH commands (#2096)dvora-h2022-04-285-1/+6546
| | | | | | | | | | | | | * Add async supoort for SEARCH commands * linters * linters * linters * linters * linters
* `Retry()`: Support negative `retries` value (#2110)Kristján Valur Jónsson2022-04-282-0/+31
| | | | | | | * Support negative `retries` value * Add unit test * Add unittest for blocking api
* Fix incorrect return statement in auth (#2086) (#2092)Kamyab Taghizadeh2022-04-281-0/+14
|
* Add support for MODULE LOADEX (#2146)dvora-h2022-04-271-0/+12
|
* INFO - add support for taking multiple section arguments (#2145)dvora-h2022-04-271-0/+8
| | | | | * add support for taking multiple section arguments * skip test
* support set multi parameters (#2143)dvora-h2022-04-271-0/+10
|
* support get multi parameters (#2142)dvora-h2022-04-271-0/+6
|
* Add support for COMMAND GETKEYSANDFLAGS (#2141)dvora-h2022-04-271-0/+9
| | | Co-authored-by: Chayim <chayim@users.noreply.github.com>
* Update FUNCTION LOAD changes (#2139)dvora-h2022-04-271-29/+38
|
* Support CASESENSITIVE for TAG fields (#2112)Avital Fine2022-04-251-11/+36
| | | | | * Support CASESENSITIVE for TAG fields * add wait fot index + update all the callings to use getattr() instead of the string "idx"
* Async tests for redis commands, json, bloom, timeseries (#2087)dvora-h2022-04-075-1/+4982
| | | | | | | | | | | | | | | | | | | | | | | | | * test async commands * test async json commands * test async timeseries commands * test async bloom commands * linters * linters * skip on cluster * linters * linters * isort * flynt * remove print
* Extended "CLUSTER NODES" parser to support special slot entries (importing, ↵Bar Shaul2022-04-041-0/+37
| | | | | | | migrating). (#2080) See https://redis.io/commands/cluster-nodes/#special-slot-entries Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* Add support for BIT|BYTE option (#2068)dvora-h2022-04-041-0/+18
| | | | | * Add support for BIT|BYTE option * linters
* Clean up test supoort enterprise environments (#2082)dvora-h2022-04-047-8/+83
| | | | | * skip tests on enterprise * delete dping implementation
* Fix search query with params tests (#2076)dvora-h2022-03-311-4/+5
|
* Add dialect support for RediSearch queries (#2071)dvora-h2022-03-311-0/+45
| | | | | | | * Add dialect support for RediSearch queries * type hints Co-authored-by: Chayim <chayim@users.noreply.github.com>
* Add support for CLUSTER MYID (#2063)Binbin2022-03-311-0/+5
| | | Co-authored-by: enjoy-binbin <binbin.zhu@tenclass.com>
* Support for Vector Fields for Vector Similarity Search (#2041)Avital Fine2022-03-231-1/+41
| | | | | | | | | | | | | | | | | | | | | | | * Support Vector field in FT.CREATE command * linters * fix data error * change to dic * add type hints and docstring to constructor * test not supported algorithm * linters * fix errors * example * delete example Co-authored-by: dvora-h <dvora.heller@redis.com>
* [CLUSTER] Fix scan command cursors & Fix scan_iter (#2054)Utkarsh Gupta2022-03-231-14/+45
| | | | | | | * cluster/scan: fix return cursor & change default node to primaries * cluster/scan_iter: fix iteration Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* Mark tests for redis-stack (#2052)dvora-h2022-03-163-67/+79
| | | | | * mark tests for redis-stack * linters