File tree Expand file tree Collapse file tree 13 files changed +25
-40
lines changed
backend_switching_rules/data Expand file tree Collapse file tree 13 files changed +25
-40
lines changed Original file line number Diff line number Diff line change @@ -45,4 +45,4 @@ backend second_backend
4545backend test_backend
4646 mode http
4747 balance roundrobin
48- option forwardfor
48+ option forwardfor
Original file line number Diff line number Diff line change @@ -28,6 +28,6 @@ defaults
2828frontend test_frontend
2929 mode tcp
3030 maxconn 1000
31- bind 192.168.1.1:80 name fixture
32- bind 192.168.2.2:8080 name loopback
33- option httpclose
31+ bind localhost :9000 name fixture
32+ bind localhost :9090 name loopback
33+ option httpclose
Original file line number Diff line number Diff line change 11{
22 "address" : " 127.0.0.1" ,
33 "name" : " test_bind" ,
4- "port" : 80 ,
4+ "port" : 10000 ,
55 "defer_accept" : true ,
66 "allow_0rtt" : true
77}
Original file line number Diff line number Diff line change 22 "level" : " user" ,
33 "name" : " fixture" ,
44 "address" : " 127.0.0.1" ,
5- "port" : 8080
5+ "port" : 10001
66}
Original file line number Diff line number Diff line change 11{
2- "cpu_maps" : null ,
32 "runtime_apis" : [
43 {
5- "address" : " /var/run/haproxy/admin.sock" ,
6- "level" : " admin" ,
7- "mode" : " 660" ,
8- "allow_0rtt" : true ,
9- "name" : " runtime_api_1"
4+ "address" : " /var/lib/haproxy/stats" ,
5+ "level" : " admin"
106 }
117 ],
128 "daemon" : " enabled" ,
13- "lua_loads" : null ,
14- "lua_prepend_path" : null ,
159 "master-worker" : true ,
1610 "maxconn" : 5000 ,
17- "pidfile" : " /var/run/haproxy/haproxy .pid"
11+ "pidfile" : " /var/run/haproxy.pid"
1812 }
Original file line number Diff line number Diff line change @@ -31,10 +31,7 @@ load 'utils/_helpers'
3131 assert_equal " $SC " 200
3232 assert_equal " $( get_json_path " $BODY " ' .data.maxconn' ) " " 5000"
3333 assert_equal " $( get_json_path " $BODY " ' .data.daemon' ) " " enabled"
34- assert_equal " $( get_json_path " $BODY " ' .data.pidfile' ) " " /var/run/haproxy/haproxy .pid"
35- assert_equal " $( get_json_path " $BODY " ' .data.runtime_apis[0].address' ) " " /var/run /haproxy/admin.sock "
34+ assert_equal " $( get_json_path " $BODY " ' .data.pidfile' ) " " /var/run/haproxy.pid"
35+ assert_equal " $( get_json_path " $BODY " ' .data.runtime_apis[0].address' ) " " /var/lib /haproxy/stats "
3636 assert_equal " $( get_json_path " $BODY " ' .data.runtime_apis[0].level' ) " " admin"
37- assert_equal " $( get_json_path " $BODY " ' .data.runtime_apis[0].mode' ) " " 660"
38- assert_equal " $( get_json_path " $BODY " ' .data.runtime_apis[0].allow_0rtt' ) " " true"
39- assert_equal " $( get_json_path " $BODY " ' .data.runtime_apis[0].name' ) " " runtime_api_1"
4037}
Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ load 'utils/_helpers'
2727 resource_post " $_PROGRAMS_BASE_PATH " " data/program.json" " force_reload=true"
2828 assert_equal " $SC " 201
2929
30- resource_get " $_PROGRAMS_BASE_PATH /mirror "
30+ resource_get " $_PROGRAMS_BASE_PATH /test "
3131 assert_equal " $SC " 200
32- assert_equal " mirror " " $( get_json_path " $BODY " " .data.name" ) "
32+ assert_equal " test " " $( get_json_path " $BODY " " .data.name" ) "
3333 assert_equal " nobody" " $( get_json_path " $BODY " " .data.user" ) "
3434 assert_equal " nobody" " $( get_json_path " $BODY " " .data.group" ) "
3535}
Original file line number Diff line number Diff line change @@ -29,7 +29,3 @@ defaults
2929
3030program echo
3131 command echo "Hello, World!"
32-
33- program dataplaneapi
34- command /usr/local/bin/dataplaneapi --host 0.0.0.0 --port 5555 --haproxy-bin /opt/hapee-2.5 /sbin/hapee-lb --config-file /etc/hapee-2.5 /hapee-lb.cfg --reload-cmd "systemctl reload hapee-2.5 " --reload-delay 5 --userlist haproxy-dataplaneapi
35- no option start-on-reload
Original file line number Diff line number Diff line change 11{
2- "name" : " mirror" ,
3- "command" : " spoa-mirror --runtime 0 --mirror-url http://test.local" ,
2+ "name" : " test" ,
3+ "command" : " echo true" ,
4+ "start-on-reload" : " disabled" ,
45 "user" : " nobody" ,
56 "group" : " nobody"
67}
Original file line number Diff line number Diff line change 11{
2- "name" : " dataplaneapi" ,
3- "command" : " /usr/local/bin/dataplaneapi -f /path/to/file.cfg" ,
4- "start-on-reload" : " disabled" ,
5- "user" : " nobody" ,
6- "group" : " nobody"
2+ "name" : " echo" ,
3+ "command" : " echo \" Hello Universe\" "
74}
You can’t perform that action at this time.
0 commit comments