blob: 3055f7677bd88a8b931d41e063d9e7480ede3a3b [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
Willy Tarreau04068a12019-10-22 13:06:59 +02005# for "set server <srv> fqdn"
6#REQUIRE_VERSION=1.8
Frédéric Lécailledc1a3bd2019-03-29 15:07:24 +01007#REGTEST_TYPE=bug
8
Frédéric Lécaille5afb3cf2018-08-21 15:04:23 +02009# Do nothing. Is there only to create s1_* macros
10server s1 {
11} -start
12
13haproxy h1 -conf {
14 defaults
15 mode http
Willy Tarreauf6739232021-11-18 17:46:22 +010016 timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
17 timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
18 timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
Frédéric Lécaille5afb3cf2018-08-21 15:04:23 +020019
20 frontend myfrontend
21 bind "fd@${my_fe}"
22 default_backend test
23
24 backend test
25 server www1 ${s1_addr}:${s1_port}
26} -start
27
28haproxy h1 -cli {
29 send "set server test/www1 fqdn foo.fqdn"
Christopher Fauletc7b391a2021-06-15 12:01:29 +020030 expect ~ "set server <b>/<s> fqdn failed because no resolution is configured."
Frédéric Lécaille5afb3cf2018-08-21 15:04:23 +020031 send "show servers state test"
32 expect ~ "test 1 www1 ${s1_addr} .* - ${s1_port}"
33} -wait