Willy Tarreau | b63dbb7 | 2021-06-11 16:50:29 +0200 | [diff] [blame] | 1 | varnishtest "Show info of process 1" |
William Lallemand | cd48277 | 2019-10-01 17:53:58 +0200 | [diff] [blame] | 2 | |
William Lallemand | cd48277 | 2019-10-01 17:53:58 +0200 | [diff] [blame] | 3 | feature ignore_unknown_macro |
| 4 | |
| 5 | # Do nothing. Is there only to create s1_* macros |
| 6 | server s1 { |
| 7 | } -start |
| 8 | |
Jerome Magnin | 1dccfbeb | 2019-10-30 18:27:45 +0100 | [diff] [blame] | 9 | haproxy h1 -W -S -conf { |
William Lallemand | cd48277 | 2019-10-01 17:53:58 +0200 | [diff] [blame] | 10 | defaults |
| 11 | mode http |
Willy Tarreau | f673923 | 2021-11-18 17:46:22 +0100 | [diff] [blame] | 12 | timeout connect "${HAPROXY_TEST_TIMEOUT-5s}" |
| 13 | timeout client "${HAPROXY_TEST_TIMEOUT-5s}" |
| 14 | timeout server "${HAPROXY_TEST_TIMEOUT-5s}" |
William Lallemand | cd48277 | 2019-10-01 17:53:58 +0200 | [diff] [blame] | 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 -mcli { |
Willy Tarreau | b63dbb7 | 2021-06-11 16:50:29 +0200 | [diff] [blame] | 25 | send "@1 show info" |
| 26 | expect ~ ".*\nProcess_num: 1\n.*" |
William Lallemand | cd48277 | 2019-10-01 17:53:58 +0200 | [diff] [blame] | 27 | } -wait |