mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 00:52:38 +00:00
RDB load of different encodings test added.
This commit is contained in:
parent
bd376d13f8
commit
03116904c3
BIN
tests/assets/encodings.rdb
Normal file
BIN
tests/assets/encodings.rdb
Normal file
Binary file not shown.
25
tests/integration/rdb.tcl
Normal file
25
tests/integration/rdb.tcl
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
set server_path [tmpdir "server.rdb-encoding-test"]
|
||||||
|
|
||||||
|
# Copy RDB with zipmap encoded hash to server path
|
||||||
|
exec cp tests/assets/encodings.rdb $server_path
|
||||||
|
|
||||||
|
start_server [list overrides [list "dir" $server_path "dbfilename" "encodings.rdb"]] {
|
||||||
|
test "RDB encoding loading test" {
|
||||||
|
r select 0
|
||||||
|
csvdump r
|
||||||
|
} {"compressible","string","aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
||||||
|
"hash","hash","a","1","aa","10","aaa","100","b","2","bb","20","bbb","200","c","3","cc","30","ccc","300","ddd","400","eee","5000000000",
|
||||||
|
"hash_zipped","hash","a","1","b","2","c","3",
|
||||||
|
"list","list","1","2","3","a","b","c","100000","6000000000","1","2","3","a","b","c","100000","6000000000","1","2","3","a","b","c","100000","6000000000",
|
||||||
|
"list_zipped","list","1","2","3","a","b","c","100000","6000000000",
|
||||||
|
"number","string","10"
|
||||||
|
"set","set","1","100000","2","3","6000000000","a","b","c",
|
||||||
|
"set_zipped_1","set","1","2","3","4",
|
||||||
|
"set_zipped_2","set","100000","200000","300000","400000",
|
||||||
|
"set_zipped_3","set","1000000000","2000000000","3000000000","4000000000","5000000000","6000000000",
|
||||||
|
"string","string","Hello World"
|
||||||
|
"zset","zset","a","1","b","2","c","3","aa","10","bb","20","cc","30","aaa","100","bbb","200","ccc","300","aaaa","1000","cccc","123456789","bbbb","5000000000",
|
||||||
|
"zset_zipped","zset","a","1","b","2","c","3",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -30,6 +30,7 @@ set ::all_tests {
|
|||||||
integration/replication-2
|
integration/replication-2
|
||||||
integration/replication-3
|
integration/replication-3
|
||||||
integration/aof
|
integration/aof
|
||||||
|
integration/rdb
|
||||||
unit/pubsub
|
unit/pubsub
|
||||||
unit/slowlog
|
unit/slowlog
|
||||||
unit/scripting
|
unit/scripting
|
||||||
|
Loading…
Reference in New Issue
Block a user