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 | |
Willy Tarreau | 04068a1 | 2019-10-22 13:06:59 +0200 | [diff] [blame] | 5 | # for "set server <srv> fqdn" |
Frédéric Lécaille | dc1a3bd | 2019-03-29 15:07:24 +0100 | [diff] [blame] | 6 | #REGTEST_TYPE=bug |
| 7 | |
Frédéric Lécaille | 5afb3cf | 2018-08-21 15:04:23 +0200 | [diff] [blame] | 8 | # Do nothing. Is there only to create s1_* macros |
| 9 | server s1 { |
| 10 | } -start |
| 11 | |
| 12 | haproxy h1 -conf { |
| 13 | defaults |
| 14 | mode http |
Willy Tarreau | f673923 | 2021-11-18 17:46:22 +0100 | [diff] [blame] | 15 | timeout connect "${HAPROXY_TEST_TIMEOUT-5s}" |
| 16 | timeout client "${HAPROXY_TEST_TIMEOUT-5s}" |
| 17 | timeout server "${HAPROXY_TEST_TIMEOUT-5s}" |
Frédéric Lécaille | 5afb3cf | 2018-08-21 15:04:23 +0200 | [diff] [blame] | 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 | |
| 27 | haproxy h1 -cli { |
| 28 | send "set server test/www1 fqdn foo.fqdn" |
Christopher Faulet | c7b391a | 2021-06-15 12:01:29 +0200 | [diff] [blame] | 29 | expect ~ "set server <b>/<s> fqdn failed because no resolution is configured." |
Frédéric Lécaille | 5afb3cf | 2018-08-21 15:04:23 +0200 | [diff] [blame] | 30 | send "show servers state test" |
| 31 | expect ~ "test 1 www1 ${s1_addr} .* - ${s1_port}" |
| 32 | } -wait |