blob: 5fb5c62fd86a759e18819ccbcc3a606600f18ccd [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
12 timeout connect 1s
13 timeout client 1s
14 timeout server 1s
15
16 frontend myfrontend
17 bind "fd@${my_fe}"
18 default_backend test
19
20 backend test
21 server www1 ${s1_addr}:${s1_port}
22} -start
23
24haproxy h1 -cli {
25 send "set server test/www1 fqdn foo.fqdn"
26 expect ~ "could not update test/www1 FQDN by 'stats socket command'"
27 send "show servers state test"
28 expect ~ "test 1 www1 ${s1_addr} .* - ${s1_port}"
29} -wait