2021-06-01 05:51:30 -04:00
|
|
|
set testmodule [file normalize tests/modules/infotest.so]
|
|
|
|
|
|
|
|
test {modules config rewrite} {
|
|
|
|
|
|
|
|
start_server {tags {"modules"}} {
|
|
|
|
r module load $testmodule
|
|
|
|
|
|
|
|
assert_equal [lindex [lindex [r module list] 0] 1] infotest
|
|
|
|
|
|
|
|
r config rewrite
|
|
|
|
restart_server 0 true false
|
|
|
|
|
|
|
|
assert_equal [lindex [lindex [r module list] 0] 1] infotest
|
|
|
|
|
2022-01-23 03:05:06 -05:00
|
|
|
assert_equal {OK} [r module unload infotest]
|
2021-06-01 05:51:30 -04:00
|
|
|
|
|
|
|
r config rewrite
|
|
|
|
restart_server 0 true false
|
|
|
|
|
|
|
|
assert_equal [llength [r module list]] 0
|
|
|
|
}
|
2022-01-23 03:05:06 -05:00
|
|
|
}
|