Logo
Explore Help
Sign In
gvsafronov/futriix
1
0
Fork 0
You've already forked futriix
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
futriix/tests/support/cli.tcl

20 lines
515 B
Tcl
Raw Normal View History

TLS: Connections refactoring and TLS support. * Introduce a connection abstraction layer for all socket operations and integrate it across the code base. * Provide an optional TLS connections implementation based on OpenSSL. * Pull a newer version of hiredis with TLS support. * Tests, redis-cli updates for TLS support.
2019-09-12 10:56:54 +03:00
proc rediscli_tls_config {testsdir} {
set tlsdir [file join $testsdir tls]
set cert [file join $tlsdir redis.crt]
set key [file join $tlsdir redis.key]
set cacert [file join $tlsdir ca.crt]
if {$::tls} {
return [list --tls --cert $cert --key $key --cacert $cacert]
} else {
return {}
}
}
Tests: fix redis-cli with remote hosts. (#7693) (cherry picked from commit f80f3f492a0ca56e163899eeca7ad40d67d903be)
2020-08-23 10:17:43 +03:00
proc rediscli {host port {opts {}}} {
set cmd [list src/redis-cli -h $host -p $port]
TLS: Connections refactoring and TLS support. * Introduce a connection abstraction layer for all socket operations and integrate it across the code base. * Provide an optional TLS connections implementation based on OpenSSL. * Pull a newer version of hiredis with TLS support. * Tests, redis-cli updates for TLS support.
2019-09-12 10:56:54 +03:00
lappend cmd {*}[rediscli_tls_config "tests"]
lappend cmd {*}$opts
return $cmd
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.4 Page: 51ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API