mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-16 08:21:01 +01:00
As master parses now expose-deprecated-directives option, let's emit warning about deprecated 'progam' section only in case, if this option wasn't set in the 'global' section. This allows to people, who don't prefer to remove the 'program' section immediately to continue to start the process in zero-warning mode. Adjust the warning message accordingly and mcli_start_progs.vtc test. As expose-deprecated-directives option is a 'global' section keyword, this section must always precede any 'program' section, if users still continue to keep 'program' section. This doesn't need to be backported, as related to the latest changes in the master-worker architecture.
40 lines
803 B
Plaintext
40 lines
803 B
Plaintext
varnishtest "Try to start a master CLI with 2 programs"
|
|
#REGTEST_TYPE=bug
|
|
feature cmd "command -v sleep"
|
|
|
|
feature ignore_unknown_macro
|
|
|
|
# Do nothing. Is there only to create s1_* macros
|
|
server s1 {
|
|
} -start
|
|
|
|
haproxy h1 -W -S -conf {
|
|
global
|
|
expose-deprecated-directives
|
|
defaults
|
|
mode http
|
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
|
|
|
frontend myfrontend
|
|
bind "fd@${my_fe}"
|
|
default_backend test
|
|
|
|
backend test
|
|
server www1 ${s1_addr}:${s1_port}
|
|
|
|
program foo
|
|
command sleep 10
|
|
|
|
program bar
|
|
command sleep 10
|
|
|
|
} -start
|
|
|
|
haproxy h1 -mcli {
|
|
delay 0.1
|
|
send "show proc"
|
|
expect ~ ".*foo.*\n.*bar.*\n"
|
|
} -wait
|