blob: 831a63d26d4816200c9636895863cf7f0af994b0 [file] [log] [blame]
Frédéric Lécaille5afb3cf2018-08-21 15:04:23 +02001varnishtest "Set server FQDN via CLI crash"
2
3feature ignore_unknown_macro
4
5# Do nothing. Is there only to create s1_* macros
6server s1 {
7} -start
8
9haproxy h1 -conf {
10 defaults
11 mode http
Christopher Faulet8f161482018-12-19 11:49:39 +010012 ${no-htx} option http-use-htx
Frédéric Lécaille5afb3cf2018-08-21 15:04:23 +020013 timeout connect 1s
14 timeout client 1s
15 timeout server 1s
16
17 frontend myfrontend
18 bind "fd@${my_fe}"
19 default_backend test
20
21 backend test
22 server www1 ${s1_addr}:${s1_port}
23} -start
24
25haproxy h1 -cli {
26 send "set server test/www1 fqdn foo.fqdn"
27 expect ~ "could not update test/www1 FQDN by 'stats socket command'"
28 send "show servers state test"
29 expect ~ "test 1 www1 ${s1_addr} .* - ${s1_port}"
30} -wait