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 | |
| 3 | #REQUIRE_VERSION=1.9 |
| 4 | |
| 5 | feature ignore_unknown_macro |
| 6 | |
| 7 | # Do nothing. Is there only to create s1_* macros |
| 8 | server s1 { |
| 9 | } -start |
| 10 | |
Jerome Magnin | 1dccfbeb | 2019-10-30 18:27:45 +0100 | [diff] [blame] | 11 | haproxy h1 -W -S -conf { |
William Lallemand | cd48277 | 2019-10-01 17:53:58 +0200 | [diff] [blame] | 12 | defaults |
| 13 | mode http |
William Lallemand | cd48277 | 2019-10-01 17:53:58 +0200 | [diff] [blame] | 14 | timeout connect 1s |
| 15 | timeout client 1s |
| 16 | timeout server 1s |
| 17 | |
| 18 | frontend myfrontend |
| 19 | bind "fd@${my_fe}" |
| 20 | default_backend test |
| 21 | |
| 22 | backend test |
| 23 | server www1 ${s1_addr}:${s1_port} |
| 24 | } -start |
| 25 | |
| 26 | haproxy h1 -mcli { |
Willy Tarreau | b63dbb7 | 2021-06-11 16:50:29 +0200 | [diff] [blame] | 27 | send "@1 show info" |
| 28 | expect ~ ".*\nProcess_num: 1\n.*" |
William Lallemand | cd48277 | 2019-10-01 17:53:58 +0200 | [diff] [blame] | 29 | } -wait |