redict/tests
Oran Agra 2017407b4d
Fix wrong order of key/value in Lua map response (#8266)
When a Lua script returns a map to redis (a feature which was added in
redis 6 together with RESP3), it would have returned the value first and
the key second.

If the client was using RESP2, it was getting them out of order, and if
the client was in RESP3, it was getting a map of value => key.
This was happening regardless of the Lua script using redis.setresp(3)
or not.

This also affects a case where the script was returning a map which it got
from from redis by doing something like: redis.setresp(3); return redis.call()

This fix is a breaking change for redis 6.0 users who happened to rely
on the wrong order (either ones that used redis.setresp(3), or ones that
returned a map explicitly).

This commit also includes other two changes in the tests:
1. The test suite now handles RESP3 maps as dicts rather than nested
   lists
2. Remove some redundant (duplicate) tests from tracking.tcl
2021-01-05 08:29:20 +02:00
..
assets Sanitize dump payload: ziplist, listpack, zipmap, intset, stream 2020-12-06 14:54:34 +02:00
cluster Fix leak in new errorstats commit, and a flaky test (#8278) 2021-01-02 08:37:19 +02:00
helpers
integration Sanitize dump payload: excessive free on dup zset fields (#8189) 2020-12-14 17:10:31 +02:00
modules Remove read-only flag from non-keyspace cmds, different approach for EXEC to propagate MULTI (#8216) 2020-12-22 12:03:49 +02:00
sentinel
support Fix wrong order of key/value in Lua map response (#8266) 2021-01-05 08:29:20 +02:00
tmp
unit Fix wrong order of key/value in Lua map response (#8266) 2021-01-05 08:29:20 +02:00
instances.tcl TLS: Add different client cert support. (#8076) 2020-12-11 18:31:40 +02:00
test_helper.tcl Add errorstats info section, Add failed_calls and rejected_calls to commandstats (#8217) 2020-12-31 16:53:43 +02:00