summaryrefslogtreecommitdiff
path: root/tests/integration
diff options
context:
space:
mode:
authorYossi Gottlieb <yossigo@gmail.com>2022-01-18 12:52:27 +0200
committerGitHub <noreply@github.com>2022-01-18 12:52:27 +0200
commit25e6d4d4597d6ca06503d5fa76af0e4e1b57302e (patch)
tree66e78300bc0ec4983c0223e17a3065aa6793146c /tests/integration
parent51f9bed3dd8d35a59e9124e49450c9795822dbf5 (diff)
downloadredis-25e6d4d4597d6ca06503d5fa76af0e4e1b57302e.tar.gz
Fix additional AOF filename issues. (#10110)
This extends the previous fix (#10049) to address any form of non-printable or whitespace character (including newlines, quotes, non-printables, etc.) Also, removes the limitation on appenddirname, to align with the way filenames are handled elsewhere in Redis.
Diffstat (limited to 'tests/integration')
-rw-r--r--tests/integration/aof-multi-part.tcl10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/integration/aof-multi-part.tcl b/tests/integration/aof-multi-part.tcl
index ac5ed4f33..6957c3dd0 100644
--- a/tests/integration/aof-multi-part.tcl
+++ b/tests/integration/aof-multi-part.tcl
@@ -675,10 +675,10 @@ tags {"external:skip"} {
}
}
- test {Multi Part AOF can handle appendfilename contains spaces} {
- start_server [list overrides [list appendonly yes appendfilename "\" file seq .aof \""]] {
+ test {Multi Part AOF can handle appendfilename contains whitespaces} {
+ start_server [list overrides [list appendonly yes appendfilename "\" file seq \\n\\n.aof \""]] {
set dir [get_redis_dir]
- set aof_manifest_name [format "%s/%s/%s%s" $dir "appendonlydir" " file seq .aof " $::manifest_suffix]
+ set aof_manifest_name [format "%s/%s/%s%s" $dir "appendonlydir" " file seq \n\n.aof " $::manifest_suffix]
set redis [redis [srv host] [srv port] 0 $::tls]
assert_equal OK [$redis set k1 v1]
@@ -687,8 +687,8 @@ tags {"external:skip"} {
waitForBgrewriteaof $redis
assert_aof_manifest_content $aof_manifest_name {
- {file " file seq .aof .2.base.rdb" seq 2 type b}
- {file " file seq .aof .2.incr.aof" seq 2 type i}
+ {file " file seq \n\n.aof .2.base.rdb" seq 2 type b}
+ {file " file seq \n\n.aof .2.incr.aof" seq 2 type i}
}
set d1 [$redis debug digest]