Only run the tls-name-validation test if --tls is passed into runtest
This commit is contained in:
parent
71121dff4e
commit
345a3873a0
@ -1,3 +1,6 @@
|
|||||||
|
# only run this test if tls is enabled
|
||||||
|
if {$::tls} {
|
||||||
|
package require tls
|
||||||
test {TLS: Able to connect with no allowlist} {
|
test {TLS: Able to connect with no allowlist} {
|
||||||
start_server {tags {"tls"}} {
|
start_server {tags {"tls"}} {
|
||||||
catch {r PING} e
|
catch {r PING} e
|
||||||
@ -109,3 +112,9 @@ test {TLS: Able to match against URI SAN} {
|
|||||||
assert_match {PONG} $e
|
assert_match {PONG} $e
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
start_server {} {
|
||||||
|
# just a dummy server so that the test doesn't panic if tls is disabled
|
||||||
|
# otherwise the test will try to bind to a server that just isn't there
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user