read-redis/tests/unit
Binbin 530c70b0a9 GEO* STORE with empty src key delete the dest key and return 0, not empty array (#9271)
With an empty src key, we need to deal with two situations:
1. non-STORE: We should return emptyarray.
2. STORE: Try to delete the store key and return 0.

This applies to both GEOSEARCHSTORE (new to v6.2), and
also GEORADIUS STORE (which was broken since forever)

This pr try to fix #9261. i.e. both STORE variants would have behaved
like the non-STORE variants when the source key was missing,
returning an empty array and not deleting the destination key,
instead of returning 0, and deleting the destination key.

Also add more tests for some commands.
- GEORADIUS: wrong type src key, non existing src key, empty search,
  store with non existing src key, store with empty search
- GEORADIUSBYMEMBER: wrong type src key, non existing src key,
  non existing member, store with non existing src key
- GEOSEARCH: wrong type src key, non existing src key, empty search,
  frommember with non existing member
- GEOSEARCHSTORE: wrong type key, non existing src key,
  fromlonlat with empty search, frommember with non existing member

Co-authored-by: Oran Agra <oran@redislabs.com>
(cherry picked from commit 86555ae0f7cc45abac7f758d72bf456e90793b46)
2021-10-04 13:59:40 +03:00
..
moduleapi Fix failing basics moduleapi test on 32bit CI (#9140) 2021-07-21 21:06:49 +03:00
type SMOVE only notify dstset when the addition is successful. (#9244) 2021-07-21 21:06:49 +03:00
acl.tcl ACL channels permission handling for save/load scenario. (#8794) 2021-04-19 13:27:44 +03:00
aofrw.tcl stabilize tests that involved with load handlers (#8967) 2021-07-21 21:06:49 +03:00
auth.tcl Prevent unauthenticated client from easily consuming lots of memory (CVE-2021-32675) 2021-10-04 13:59:40 +03:00
bitfield.tcl Fix BITFIELD_RO test. 2020-03-23 12:02:12 +01:00
bitops.tcl On 32 bit platform, the bit position of GETBIT/SETBIT/BITFIELD/BITCOUNT,BITPOS may overflow (see CVE-2021-32761) (#9191) 2021-07-21 21:06:49 +03:00
dump.tcl Fix recent test failures (#8386) 2021-01-23 21:53:58 +02:00
expire.tcl Add more attempts to a timing sensitive test (#8770) 2021-04-13 17:35:10 +03:00
geo.tcl GEO* STORE with empty src key delete the dest key and return 0, not empty array (#9271) 2021-10-04 13:59:40 +03:00
hyperloglog.tcl Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-09-10 13:43:38 +03:00
info.tcl Use addReplyErrorObject with shared.noscripterr (#8544) 2021-02-24 08:45:13 -08:00
introspection-2.tcl EXISTS should not alter LRU, OBJECT should not reveal expired keys on replica (#8016) 2020-11-18 11:16:21 +02:00
introspection.tcl Hide migrate command from slowlog if they include auth (#8859) 2021-06-01 17:03:36 +03:00
keyspace.tcl Improve dbid range check for SELECT, MOVE, COPY (#8085) 2020-12-01 21:41:26 +02:00
latency-monitor.tcl Add a --no-latency tests flag. (#7939) 2020-10-22 11:10:53 +03:00
lazyfree.tcl Test: basic lazyfree unit test. 2015-10-09 09:47:17 +02:00
limits.tcl Add io-thread daily CI tests. (#8232) 2021-01-17 15:48:48 +02:00
maxmemory.tcl Fix flaky unit/maxmemory test on MacOS/BSD. (#8619) 2021-03-08 20:53:53 +02:00
memefficiency.tcl Skip defrag tests on systems with bigger page sizes (#8294) 2021-01-08 10:03:21 +02:00
multi.tcl Fail EXEC command in case a watched key is expired (#9194) 2021-07-21 21:06:49 +03:00
networking.tcl Fix potential CONFIG SET bind test failure. (#8875) 2021-05-03 22:57:00 +03:00
obuf-limits.tcl Enforce client output buffer soft limit when no traffic. (#8833) 2021-06-01 17:03:36 +03:00
oom-score-adj.tcl Fix timing error oom-score-adj test (#8513) 2021-02-19 13:01:25 +02:00
other.tcl Hide migrate command from slowlog if they include auth (#8859) 2021-06-01 17:03:36 +03:00
pause.tcl Add io-thread daily CI tests. (#8232) 2021-01-17 15:48:48 +02:00
pendingquerybuf.tcl stabilized and improve pendingquerybuf test suit (#8780) 2021-04-14 11:49:00 +03:00
printver.tcl Print version info before running the test 2011-05-20 11:44:54 +02:00
protocol.tcl Test infra, handle RESP3 attributes and big-numbers and bools (#9235) 2021-07-21 21:06:49 +03:00
pubsub.tcl Modules: adding a module type for key space notification (#8759) 2021-04-19 21:33:26 +03:00
quit.tcl Add tests for OK on QUIT 2010-10-15 12:54:53 +02:00
scan.tcl Add io-thread daily CI tests. (#8232) 2021-01-17 15:48:48 +02:00
scripting.tcl Fix protocol parsing on 'ldbReplParseCommand' (CVE-2021-32672) 2021-10-04 13:59:40 +03:00
shutdown.tcl Fix new obuf-limits tests to work with TLS (#7848) 2020-09-27 17:13:33 +03:00
slowlog.tcl Hide migrate command from slowlog if they include auth (#8859) 2021-06-01 17:03:36 +03:00
sort.tcl Config: Add quicklist, remove old list options 2015-01-02 11:16:10 -05:00
tls.tcl Add support for reading encrypted keyfiles. (#8644) 2021-03-22 13:27:46 +02:00
tracking.tcl Fix race in client side tracking (#9116) 2021-07-21 21:06:49 +03:00
violations.tcl Fix ziplist and listpack overflows and truncations (CVE-2021-32627, CVE-2021-32628) 2021-10-04 13:59:40 +03:00
wait.tcl Add io-thread daily CI tests. (#8232) 2021-01-17 15:48:48 +02:00