William Lallemand | cd48277 | 2019-10-01 17:53:58 +0200 | [diff] [blame] | 1 | varnishtest "Show info of process 3" |
| 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 | global |
| 13 | nbproc 4 |
| 14 | defaults |
| 15 | mode http |
William Lallemand | cd48277 | 2019-10-01 17:53:58 +0200 | [diff] [blame] | 16 | timeout connect 1s |
| 17 | timeout client 1s |
| 18 | timeout server 1s |
| 19 | |
| 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 | |
| 28 | haproxy h1 -mcli { |
| 29 | send "@3 show info" |
| 30 | expect ~ ".*\nProcess_num: 3\n.*" |
| 31 | } -wait |