haproxy/reg-tests/server/cli_set_fdqn.vtc
Willy Tarreau 04068a1939 REGTESTS: server/cli_set_fqdn requires version 1.8 minimum
This test uses "set server <srv> fqdn" which is not available in 1.7.
All reg-tests now pass on 1.7.
2019-10-22 13:06:59 +02:00

35 lines
771 B
Plaintext

varnishtest "Set server FQDN via CLI crash"
feature ignore_unknown_macro
# for "set server <srv> fqdn"
#REQUIRE_VERSION=1.8
#REGTEST_TYPE=bug
# Do nothing. Is there only to create s1_* macros
server s1 {
} -start
haproxy h1 -conf {
defaults
mode http
${no-htx} option http-use-htx
timeout connect 1s
timeout client 1s
timeout server 1s
frontend myfrontend
bind "fd@${my_fe}"
default_backend test
backend test
server www1 ${s1_addr}:${s1_port}
} -start
haproxy h1 -cli {
send "set server test/www1 fqdn foo.fqdn"
expect ~ "could not update test/www1 FQDN by 'stats socket command'"
send "show servers state test"
expect ~ "test 1 www1 ${s1_addr} .* - ${s1_port}"
} -wait