Frédéric Lécaille | 5afb3cf | 2018-08-21 15:04:23 +0200 | [diff] [blame] | 1 | varnishtest "Set server FQDN via CLI crash" |
| 2 | |
| 3 | feature ignore_unknown_macro |
| 4 | |
| 5 | # Do nothing. Is there only to create s1_* macros |
| 6 | server s1 { |
| 7 | } -start |
| 8 | |
| 9 | haproxy 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 | |
| 24 | haproxy 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 |