diff --git a/tests/integration/aof-multi-part.tcl b/tests/integration/aof-multi-part.tcl index bdd038233..383dbeb73 100644 --- a/tests/integration/aof-multi-part.tcl +++ b/tests/integration/aof-multi-part.tcl @@ -590,7 +590,7 @@ tags {"external:skip"} { clean_aof_persistence $aof_dirpath } - test {Multi Part AOF can upgrade when when two redis share the same server dir} { + test {Multi Part AOF can upgrade when when two servers share the same server dir} { create_aof $server_path $aof_old_name_old_path { append_to_aof [formatCommand set k1 v1] append_to_aof [formatCommand set k2 v2] @@ -609,7 +609,7 @@ tags {"external:skip"} { start_server [list overrides [list dir $server_path appendonly yes appendfilename appendonly.aof2]] { set redis2 [redis [srv host] [srv port] 0 $::tls] - test "Multi Part AOF can upgrade when when two redis share the same server dir (redis1)" { + test "Multi Part AOF can upgrade when when two servers share the same server dir (server1)" { wait_done_loading $redis1 assert_equal v1 [$redis1 get k1] assert_equal v2 [$redis1 get k2] @@ -640,7 +640,7 @@ tags {"external:skip"} { assert {$d1 eq $d2} } - test "Multi Part AOF can upgrade when when two redis share the same server dir (redis2)" { + test "Multi Part AOF can upgrade when when two servers share the same server dir (server2)" { wait_done_loading $redis2 assert_equal 0 [$redis2 exists k1] @@ -700,7 +700,7 @@ tags {"external:skip"} { clean_aof_persistence $aof_dirpath } - test {Multi Part AOF can create BASE (RDB format) when redis starts from empty} { + test {Multi Part AOF can create BASE (RDB format) when server starts from empty} { start_server_aof [list dir $server_path] { set client [redis [srv host] [srv port] 0 $::tls] wait_done_loading $client @@ -723,7 +723,7 @@ tags {"external:skip"} { clean_aof_persistence $aof_dirpath } - test {Multi Part AOF can create BASE (AOF format) when redis starts from empty} { + test {Multi Part AOF can create BASE (AOF format) when server starts from empty} { start_server_aof [list dir $server_path aof-use-rdb-preamble no] { set client [redis [srv host] [srv port] 0 $::tls] wait_done_loading $client diff --git a/tests/integration/aof.tcl b/tests/integration/aof.tcl index 31afee726..6006a00ff 100644 --- a/tests/integration/aof.tcl +++ b/tests/integration/aof.tcl @@ -104,7 +104,7 @@ tags {"aof external:skip"} { } } - ## Test that redis-check-aof indeed sees this AOF is not valid + ## Test that valkey-check-aof indeed sees this AOF is not valid test "Short read: Utility should confirm the AOF is not valid" { catch { exec src/valkey-check-aof $aof_manifest_file @@ -469,7 +469,7 @@ tags {"aof external:skip"} { } } - test {Test redis-check-aof for old style resp AOF} { + test {Test valkey-check-aof for old style resp AOF} { create_aof $aof_dirpath $aof_file { append_to_aof [formatCommand set foo hello] append_to_aof [formatCommand set bar world] @@ -481,7 +481,7 @@ tags {"aof external:skip"} { assert_match "*Start checking Old-Style AOF*is valid*" $result } - test {Test redis-check-aof for old style resp AOF - has data in the same format as manifest} { + test {Test valkey-check-aof for old style resp AOF - has data in the same format as manifest} { create_aof $aof_dirpath $aof_file { append_to_aof [formatCommand set file file] append_to_aof [formatCommand set "file appendonly.aof.2.base.rdb seq 2 type b" "file appendonly.aof.2.base.rdb seq 2 type b"] @@ -493,14 +493,14 @@ tags {"aof external:skip"} { assert_match "*Start checking Old-Style AOF*is valid*" $result } - test {Test redis-check-aof for old style rdb-preamble AOF} { + test {Test valkey-check-aof for old style rdb-preamble AOF} { catch { exec src/valkey-check-aof tests/assets/rdb-preamble.aof } result assert_match "*Start checking Old-Style AOF*RDB preamble is OK, proceeding with AOF tail*is valid*" $result } - test {Test redis-check-aof for Multi Part AOF with resp AOF base} { + test {Test valkey-check-aof for Multi Part AOF with resp AOF base} { create_aof $aof_dirpath $aof_base_file { append_to_aof [formatCommand set foo hello] append_to_aof [formatCommand set bar world] @@ -522,7 +522,7 @@ tags {"aof external:skip"} { assert_match "*Start checking Multi Part AOF*Start to check BASE AOF (RESP format)*BASE AOF*is valid*Start to check INCR files*INCR AOF*is valid*All AOF files and manifest are valid*" $result } - test {Test redis-check-aof for Multi Part AOF with rdb-preamble AOF base} { + test {Test valkey-check-aof for Multi Part AOF with rdb-preamble AOF base} { exec cp tests/assets/rdb-preamble.aof $aof_base_file create_aof $aof_dirpath $aof_file { @@ -541,7 +541,7 @@ tags {"aof external:skip"} { assert_match "*Start checking Multi Part AOF*Start to check BASE AOF (RDB format)*DB preamble is OK, proceeding with AOF tail*BASE AOF*is valid*Start to check INCR files*INCR AOF*is valid*All AOF files and manifest are valid*" $result } - test {Test redis-check-aof for Multi Part AOF contains a format error} { + test {Test valkey-check-aof for Multi Part AOF contains a format error} { create_aof_manifest $aof_dirpath $aof_manifest_file { append_to_manifest "file appendonly.aof.1.base.aof seq 1 type b\n" append_to_manifest "file appendonly.aof.1.incr.aof seq 1 type i\n" @@ -554,7 +554,7 @@ tags {"aof external:skip"} { assert_match "*Invalid AOF manifest file format*" $result } - test {Test redis-check-aof only truncates the last file for Multi Part AOF in fix mode} { + test {Test valkey-check-aof only truncates the last file for Multi Part AOF in fix mode} { create_aof $aof_dirpath $aof_base_file { append_to_aof [formatCommand set foo hello] append_to_aof [formatCommand multi] @@ -582,7 +582,7 @@ tags {"aof external:skip"} { assert_match "*Failed to truncate AOF*because it is not the last file*" $result } - test {Test redis-check-aof only truncates the last file for Multi Part AOF in truncate-to-timestamp mode} { + test {Test valkey-check-aof only truncates the last file for Multi Part AOF in truncate-to-timestamp mode} { create_aof $aof_dirpath $aof_base_file { append_to_aof "#TS:1628217470\r\n" append_to_aof [formatCommand set foo1 bar1] diff --git a/tests/integration/redis-benchmark.tcl b/tests/integration/valkey-benchmark.tcl similarity index 100% rename from tests/integration/redis-benchmark.tcl rename to tests/integration/valkey-benchmark.tcl diff --git a/tests/integration/redis-cli.tcl b/tests/integration/valkey-cli.tcl similarity index 100% rename from tests/integration/redis-cli.tcl rename to tests/integration/valkey-cli.tcl diff --git a/tests/test_helper.tcl b/tests/test_helper.tcl index 3e5154158..6d9ca6299 100644 --- a/tests/test_helper.tcl +++ b/tests/test_helper.tcl @@ -64,8 +64,8 @@ set ::all_tests { integration/psync2-pingoff integration/psync2-master-restart integration/failover - integration/redis-cli - integration/redis-benchmark + integration/valkey-cli + integration/valkey-benchmark integration/dismiss-mem unit/pubsub unit/pubsubshard diff --git a/tests/unit/cluster/cli.tcl b/tests/unit/cluster/cli.tcl index 136984da8..734dd19c9 100644 --- a/tests/unit/cluster/cli.tcl +++ b/tests/unit/cluster/cli.tcl @@ -156,14 +156,14 @@ start_multiple_servers 3 [list overrides $base_conf] { } ;# stop servers -# Test redis-cli -- cluster create, add-node, call. +# Test valkey-cli -- cluster create, add-node, call. # Test that functions are propagated on add-node start_multiple_servers 5 [list overrides $base_conf] { set node4_rd [redis_client -3] set node5_rd [redis_client -4] - test {Functions are added to new node on redis-cli cluster add-node} { + test {Functions are added to new node on valkey-cli cluster add-node} { exec src/valkey-cli --cluster-yes --cluster create \ 127.0.0.1:[srv 0 port] \ 127.0.0.1:[srv -1 port] \ @@ -221,9 +221,9 @@ start_multiple_servers 5 [list overrides $base_conf] { } } ;# stop servers -# Test redis-cli --cluster create, add-node. +# Test valkey-cli --cluster create, add-node. # Test that one slot can be migrated to and then away from the new node. -test {Migrate the last slot away from a node using redis-cli} { +test {Migrate the last slot away from a node using valkey-cli} { start_multiple_servers 4 [list overrides $base_conf] { # Create a cluster of 3 nodes @@ -329,7 +329,7 @@ test {Migrate the last slot away from a node using redis-cli} { foreach ip_or_localhost {127.0.0.1 localhost} { -# Test redis-cli --cluster create, add-node with cluster-port. +# Test valkey-cli --cluster create, add-node with cluster-port. # Create five nodes, three with custom cluster_port and two with default values. start_server [list overrides [list cluster-enabled yes cluster-node-timeout 1 cluster-port [find_available_port $::baseport $::portcount]]] { start_server [list overrides [list cluster-enabled yes cluster-node-timeout 1]] { @@ -340,7 +340,7 @@ start_server [list overrides [list cluster-enabled yes cluster-node-timeout 1 cl # The first three are used to test --cluster create. # The last two are used to test --cluster add-node - test "redis-cli -4 --cluster create using $ip_or_localhost with cluster-port" { + test "valkey-cli -4 --cluster create using $ip_or_localhost with cluster-port" { exec src/valkey-cli -4 --cluster-yes --cluster create \ $ip_or_localhost:[srv 0 port] \ $ip_or_localhost:[srv -1 port] \ @@ -360,7 +360,7 @@ start_server [list overrides [list cluster-enabled yes cluster-node-timeout 1 cl assert_equal 3 [CI 2 cluster_known_nodes] } - test "redis-cli -4 --cluster add-node using $ip_or_localhost with cluster-port" { + test "valkey-cli -4 --cluster add-node using $ip_or_localhost with cluster-port" { # Adding node to the cluster (without cluster-port) exec src/valkey-cli -4 --cluster-yes --cluster add-node \ $ip_or_localhost:[srv -3 port] \ diff --git a/tests/unit/functions.tcl b/tests/unit/functions.tcl index 90d4bb801..58ac0c888 100644 --- a/tests/unit/functions.tcl +++ b/tests/unit/functions.tcl @@ -1106,7 +1106,7 @@ start_server {tags {"scripting"}} { set _ {} } {} {external:skip} - test {FUNCTION - redis version api} { + test {FUNCTION - valkey version api} { r FUNCTION load replace {#!lua name=test local version = redis.REDIS_VERSION_NUM diff --git a/tests/unit/introspection.tcl b/tests/unit/introspection.tcl index 8e077992f..1e6e38625 100644 --- a/tests/unit/introspection.tcl +++ b/tests/unit/introspection.tcl @@ -706,7 +706,7 @@ start_server {tags {"introspection"}} { assert {[dict exists $res bind]} } - test {redis-server command line arguments - error cases} { + test {valkey-server command line arguments - error cases} { # Take '--invalid' as the option. catch {exec src/valkey-server --invalid} err assert_match {*Bad directive or wrong number of arguments*} $err @@ -749,14 +749,14 @@ start_server {tags {"introspection"}} { assert_match {*'replicaof "--127.0.0.1"'*wrong number of arguments*} $err } {} {external:skip} - test {redis-server command line arguments - allow passing option name and option value in the same arg} { + test {valkey-server command line arguments - allow passing option name and option value in the same arg} { start_server {config "default.conf" args {"--maxmemory 700mb" "--maxmemory-policy volatile-lru"}} { assert_match [r config get maxmemory] {maxmemory 734003200} assert_match [r config get maxmemory-policy] {maxmemory-policy volatile-lru} } } {} {external:skip} - test {redis-server command line arguments - wrong usage that we support anyway} { + test {valkey-server command line arguments - wrong usage that we support anyway} { start_server {config "default.conf" args {loglevel verbose "--maxmemory '700mb'" "--maxmemory-policy 'volatile-lru'"}} { assert_match [r config get loglevel] {loglevel verbose} assert_match [r config get maxmemory] {maxmemory 734003200} @@ -764,21 +764,21 @@ start_server {tags {"introspection"}} { } } {} {external:skip} - test {redis-server command line arguments - allow option value to use the `--` prefix} { + test {valkey-server command line arguments - allow option value to use the `--` prefix} { start_server {config "default.conf" args {--proc-title-template --my--title--template --loglevel verbose}} { assert_match [r config get proc-title-template] {proc-title-template --my--title--template} assert_match [r config get loglevel] {loglevel verbose} } } {} {external:skip} - test {redis-server command line arguments - option name and option value in the same arg and `--` prefix} { + test {valkey-server command line arguments - option name and option value in the same arg and `--` prefix} { start_server {config "default.conf" args {"--proc-title-template --my--title--template" "--loglevel verbose"}} { assert_match [r config get proc-title-template] {proc-title-template --my--title--template} assert_match [r config get loglevel] {loglevel verbose} } } {} {external:skip} - test {redis-server command line arguments - save with empty input} { + test {valkey-server command line arguments - save with empty input} { start_server {config "default.conf" args {--save --loglevel verbose}} { assert_match [r config get save] {save {}} assert_match [r config get loglevel] {loglevel verbose} @@ -807,7 +807,7 @@ start_server {tags {"introspection"}} { } {} {external:skip} - test {redis-server command line arguments - take one bulk string with spaces for MULTI_ARG configs parsing} { + test {valkey-server command line arguments - take one bulk string with spaces for MULTI_ARG configs parsing} { start_server {config "default.conf" args {--shutdown-on-sigint nosave force now --shutdown-on-sigterm "nosave force"}} { assert_match [r config get shutdown-on-sigint] {shutdown-on-sigint {nosave now force}} assert_match [r config get shutdown-on-sigterm] {shutdown-on-sigterm {nosave force}} diff --git a/tests/unit/other.tcl b/tests/unit/other.tcl index 4fab1db04..422fc76d6 100644 --- a/tests/unit/other.tcl +++ b/tests/unit/other.tcl @@ -356,7 +356,7 @@ start_server {tags {"other"}} { } start_server {tags {"other external:skip"}} { - test {Don't rehash if redis has child process} { + test {Don't rehash if server has child process} { r config set save "" r config set rdb-key-save-delay 1000000 diff --git a/tests/unit/scripting.tcl b/tests/unit/scripting.tcl index 2f6d1c237..f494e05db 100644 --- a/tests/unit/scripting.tcl +++ b/tests/unit/scripting.tcl @@ -67,7 +67,7 @@ start_server {tags {"scripting"}} { run_script {local a = {}; setmetatable(a,{__index=function() foo() end}) return a} 0 } {} - test {EVAL - Return table with a metatable that call redis} { + test {EVAL - Return table with a metatable that call server} { run_script {local a = {}; setmetatable(a,{__index=function() redis.call('set', 'x', '1') end}) return a} 1 x # make sure x was not set r get x @@ -1042,7 +1042,7 @@ start_server {tags {"scripting"}} { set _ $e } {*Attempt to modify a readonly table*} - test "Try trick readonly table on redis table" { + test "Try trick readonly table on valkey table" { catch { run_script { redis.call = function() return 1 end