@@ -29,8 +29,8 @@ load 'utils/_helpers'
29
29
30
30
resource_get " $_GLOBAL_BASE_PATH " " "
31
31
assert_equal " $SC " 200
32
- assert_equal " $( get_json_path " $BODY " ' .maxconn' ) " " 5000"
33
- assert_equal " $( get_json_path " $BODY " ' .daemon' ) " " enabled "
32
+ assert_equal " $( get_json_path " $BODY " ' .performance_options. maxconn' ) " " 5000"
33
+ assert_equal " $( get_json_path " $BODY " ' .daemon' ) " " true "
34
34
assert_equal " $( get_json_path " $BODY " ' .pidfile' ) " " /var/run/haproxy.pid"
35
35
assert_equal " $( get_json_path " $BODY " ' .runtime_apis[0].address' ) " " /var/lib/haproxy/stats"
36
36
assert_equal " $( get_json_path " $BODY " ' .runtime_apis[0].level' ) " " admin"
@@ -43,8 +43,8 @@ load 'utils/_helpers'
43
43
44
44
resource_get " $_GLOBAL_BASE_PATH " " "
45
45
assert_equal " $SC " 200
46
- assert_equal " $( get_json_path " $BODY " ' .maxconn' ) " " 5000"
47
- assert_equal " $( get_json_path " $BODY " ' .daemon' ) " " enabled "
46
+ assert_equal " $( get_json_path " $BODY " ' .performance_options. maxconn' ) " " 5000"
47
+ assert_equal " $( get_json_path " $BODY " ' .daemon' ) " " true "
48
48
assert_equal " $( get_json_path " $BODY " ' .pidfile' ) " " /var/run/haproxy.pid"
49
49
assert_equal " $( get_json_path " $BODY " ' .runtime_apis[0].address' ) " " /var/lib/haproxy/stats-new"
50
50
assert_equal " $( get_json_path " $BODY " ' .runtime_apis[0].level' ) " " admin"
@@ -74,8 +74,8 @@ load 'utils/_helpers'
74
74
# check configuration has been applied
75
75
resource_get " $_GLOBAL_BASE_PATH " " "
76
76
assert_equal " $SC " 200
77
- assert_equal " $( get_json_path " $BODY " ' .maxconn' ) " " 5000"
78
- assert_equal " $( get_json_path " $BODY " ' .daemon' ) " " enabled "
77
+ assert_equal " $( get_json_path " $BODY " ' .performance_options. maxconn' ) " " 5000"
78
+ assert_equal " $( get_json_path " $BODY " ' .daemon' ) " " true "
79
79
assert_equal " $( get_json_path " $BODY " ' .pidfile' ) " " /var/run/haproxy.pid"
80
80
assert_equal " $( get_json_path " $BODY " ' .runtime_apis[0].address' ) " " /var/lib/haproxy/stats-new"
81
81
assert_equal " $( get_json_path " $BODY " ' .runtime_apis[0].level' ) " " admin"
0 commit comments