blob: cf6b809f1a4ae9df36bad9acef234fb97b60c38c [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
Frédéric Lécailledc1a3bd2019-03-29 15:07:24 +01005#REGTEST_TYPE=bug
6
Frédéric Lécaille5afb3cf2018-08-21 15:04:23 +02007# Do nothing. Is there only to create s1_* macros
8server s1 {
9} -start
10
11haproxy h1 -conf {
12 defaults
13 mode http
Christopher Faulet8f161482018-12-19 11:49:39 +010014 ${no-htx} option http-use-htx
Frédéric Lécaille5afb3cf2018-08-21 15:04:23 +020015 timeout connect 1s
16 timeout client 1s
17 timeout server 1s
18
19 frontend myfrontend
20 bind "fd@${my_fe}"
21 default_backend test
22
23 backend test
24 server www1 ${s1_addr}:${s1_port}
25} -start
26
27haproxy h1 -cli {
28 send "set server test/www1 fqdn foo.fqdn"
29 expect ~ "could not update test/www1 FQDN by 'stats socket command'"
30 send "show servers state test"
31 expect ~ "test 1 www1 ${s1_addr} .* - ${s1_port}"
32} -wait