summaryrefslogtreecommitdiff
path: root/examples/redis-unstable/tests/unit/info-command.tcl
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 22:52:54 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 22:52:54 +0100
commitdcacc00e3750300617ba6e16eb346713f91a783a (patch)
tree38e2d4fb5ed9d119711d4295c6eda4b014af73fd /examples/redis-unstable/tests/unit/info-command.tcl
parent58dac10aeb8f5a041c46bddbeaf4c7966a99b998 (diff)
downloadcrep-dcacc00e3750300617ba6e16eb346713f91a783a.tar.gz
Remove testing data
Diffstat (limited to 'examples/redis-unstable/tests/unit/info-command.tcl')
-rw-r--r--examples/redis-unstable/tests/unit/info-command.tcl62
1 files changed, 0 insertions, 62 deletions
diff --git a/examples/redis-unstable/tests/unit/info-command.tcl b/examples/redis-unstable/tests/unit/info-command.tcl
deleted file mode 100644
index bc24ed2..0000000
--- a/examples/redis-unstable/tests/unit/info-command.tcl
+++ /dev/null
@@ -1,62 +0,0 @@
-start_server {tags {"info and its relative command"}} {
- test "info command with at most one sub command" {
- foreach arg {"" "all" "default" "everything"} {
- if {$arg == ""} {
- set info [r 0 info]
- } else {
- set info [r 0 info $arg]
- }
-
- assert { [string match "*redis_version*" $info] }
- assert { [string match "*used_cpu_user*" $info] }
- assert { ![string match "*sentinel_tilt*" $info] }
- assert { [string match "*used_memory*" $info] }
- if {$arg == "" || $arg == "default"} {
- assert { ![string match "*rejected_calls*" $info] }
- } else {
- assert { [string match "*rejected_calls*" $info] }
- }
- }
- }
-
- test "info command with one sub-section" {
- set info [r info cpu]
- assert { [string match "*used_cpu_user*" $info] }
- assert { ![string match "*sentinel_tilt*" $info] }
- assert { ![string match "*used_memory*" $info] }
-
- set info [r info sentinel]
- assert { ![string match "*sentinel_tilt*" $info] }
- assert { ![string match "*used_memory*" $info] }
-
- set info [r info commandSTATS] ;# test case insensitive compare
- assert { ![string match "*used_memory*" $info] }
- assert { [string match "*rejected_calls*" $info] }
- }
-
- test "info command with multiple sub-sections" {
- set info [r info cpu sentinel]
- assert { [string match "*used_cpu_user*" $info] }
- assert { ![string match "*sentinel_tilt*" $info] }
- assert { ![string match "*master_repl_offset*" $info] }
-
- set info [r info cpu all]
- assert { [string match "*used_cpu_user*" $info] }
- assert { ![string match "*sentinel_tilt*" $info] }
- assert { [string match "*used_memory*" $info] }
- assert { [string match "*master_repl_offset*" $info] }
- assert { [string match "*rejected_calls*" $info] }
- # check that we didn't get the same info twice
- assert { ![string match "*used_cpu_user_children*used_cpu_user_children*" $info] }
-
- set info [r info cpu default]
- assert { [string match "*used_cpu_user*" $info] }
- assert { ![string match "*sentinel_tilt*" $info] }
- assert { [string match "*used_memory*" $info] }
- assert { [string match "*master_repl_offset*" $info] }
- assert { ![string match "*rejected_calls*" $info] }
- # check that we didn't get the same info twice
- assert { ![string match "*used_cpu_user_children*used_cpu_user_children*" $info] }
- }
-
-}