diff --git a/e2e/tests/global/data/put.json b/e2e/tests/global/data/put.json index 84b23062..2cad8b8c 100644 --- a/e2e/tests/global/data/put.json +++ b/e2e/tests/global/data/put.json @@ -1,12 +1,14 @@ { - "runtime_apis": [ - { - "address": "/var/lib/haproxy/stats", - "level": "admin" - } - ], - "daemon": "enabled", - "master-worker": true, - "maxconn": 5000, - "pidfile": "/var/run/haproxy.pid" - } + "runtime_apis": [ + { + "address": "/var/lib/haproxy/stats", + "level": "admin" + } + ], + "daemon": true, + "master-worker": true, + "performance_options": { + "maxconn": 5000 + }, + "pidfile": "/var/run/haproxy.pid" +} diff --git a/e2e/tests/global/data/put_2.8.json b/e2e/tests/global/data/put_2.8.json index 98fc8e3b..087ba99e 100644 --- a/e2e/tests/global/data/put_2.8.json +++ b/e2e/tests/global/data/put_2.8.json @@ -1,18 +1,20 @@ { - "runtime_apis": [ - { - "address": "/var/lib/haproxy/stats", - "level": "admin" - } - ], - "tune_options": { - "h2_be_initial_window_size": 20, - "h2_be_max_concurrent_streams": 21, - "h2_fe_initial_window_size": 22, - "h2_fe_max_concurrent_streams": 23 - }, - "daemon": "enabled", - "master-worker": true, - "maxconn": 5000, - "pidfile": "/var/run/haproxy.pid" - } + "runtime_apis": [ + { + "address": "/var/lib/haproxy/stats", + "level": "admin" + } + ], + "tune_options": { + "h2_be_initial_window_size": 20, + "h2_be_max_concurrent_streams": 21, + "h2_fe_initial_window_size": 22, + "h2_fe_max_concurrent_streams": 23 + }, + "performance_options": { + "maxconn": 5000 + }, + "daemon": true, + "master-worker": true, + "pidfile": "/var/run/haproxy.pid" +} diff --git a/e2e/tests/global/data/put_socket.json b/e2e/tests/global/data/put_socket.json index c37befad..e72ab532 100644 --- a/e2e/tests/global/data/put_socket.json +++ b/e2e/tests/global/data/put_socket.json @@ -1,12 +1,14 @@ { - "runtime_apis": [ - { - "address": "/var/lib/haproxy/stats-new", - "level": "admin" - } - ], - "daemon": "enabled", - "master-worker": true, - "maxconn": 5000, - "pidfile": "/var/run/haproxy.pid" - } + "runtime_apis": [ + { + "address": "/var/lib/haproxy/stats-new", + "level": "admin" + } + ], + "daemon": true, + "master-worker": true, + "performance_options": { + "maxconn": 5000 + }, + "pidfile": "/var/run/haproxy.pid" +} diff --git a/e2e/tests/global/get.bats b/e2e/tests/global/get.bats index 3fcdbefd..4c31aee4 100644 --- a/e2e/tests/global/get.bats +++ b/e2e/tests/global/get.bats @@ -30,12 +30,12 @@ load 'utils/_helpers' assert_equal "$(get_json_path "$BODY" '.chroot')" "/var/lib/haproxy" assert_equal "$(get_json_path "$BODY" '.user')" "haproxy" assert_equal "$(get_json_path "$BODY" '.group')" "haproxy" - assert_equal "$(get_json_path "$BODY" '.maxconn')" "4000" + assert_equal "$(get_json_path "$BODY" '.performance_options.maxconn')" "4000" assert_equal "$(get_json_path "$BODY" '.pidfile')" "/var/run/haproxy.pid" assert_equal "$(get_json_path "$BODY" '.runtime_apis[0].address')" "/var/lib/haproxy/stats" assert_equal "$(get_json_path "$BODY" '.runtime_apis[0].level')" "admin" if haproxy_version_ge "2.8"; then - assert_equal "$(get_json_path "$BODY" '.tune_options.ssl_ocsp_update_min_delay')" "10" + assert_equal "$(get_json_path "$BODY" '.tune_ssl_options.ocsp_update_min_delay')" "10" assert_equal "$(get_json_path "$BODY" '.tune_options.stick_counters')" "50" assert_equal "$(get_json_path "$BODY" '.tune_options.h2_be_initial_window_size')" "10" assert_equal "$(get_json_path "$BODY" '.tune_options.h2_be_max_concurrent_streams')" "11" diff --git a/e2e/tests/global/replace.bats b/e2e/tests/global/replace.bats index 3e8fc0c2..a47da3bf 100644 --- a/e2e/tests/global/replace.bats +++ b/e2e/tests/global/replace.bats @@ -29,8 +29,8 @@ load 'utils/_helpers' resource_get "$_GLOBAL_BASE_PATH" "" assert_equal "$SC" 200 - assert_equal "$(get_json_path "$BODY" '.maxconn')" "5000" - assert_equal "$(get_json_path "$BODY" '.daemon')" "enabled" + assert_equal "$(get_json_path "$BODY" '.performance_options.maxconn')" "5000" + assert_equal "$(get_json_path "$BODY" '.daemon')" "true" assert_equal "$(get_json_path "$BODY" '.pidfile')" "/var/run/haproxy.pid" assert_equal "$(get_json_path "$BODY" '.runtime_apis[0].address')" "/var/lib/haproxy/stats" assert_equal "$(get_json_path "$BODY" '.runtime_apis[0].level')" "admin" @@ -43,8 +43,8 @@ load 'utils/_helpers' resource_get "$_GLOBAL_BASE_PATH" "" assert_equal "$SC" 200 - assert_equal "$(get_json_path "$BODY" '.maxconn')" "5000" - assert_equal "$(get_json_path "$BODY" '.daemon')" "enabled" + assert_equal "$(get_json_path "$BODY" '.performance_options.maxconn')" "5000" + assert_equal "$(get_json_path "$BODY" '.daemon')" "true" assert_equal "$(get_json_path "$BODY" '.pidfile')" "/var/run/haproxy.pid" assert_equal "$(get_json_path "$BODY" '.runtime_apis[0].address')" "/var/lib/haproxy/stats-new" assert_equal "$(get_json_path "$BODY" '.runtime_apis[0].level')" "admin" @@ -74,8 +74,8 @@ load 'utils/_helpers' # check configuration has been applied resource_get "$_GLOBAL_BASE_PATH" "" assert_equal "$SC" 200 - assert_equal "$(get_json_path "$BODY" '.maxconn')" "5000" - assert_equal "$(get_json_path "$BODY" '.daemon')" "enabled" + assert_equal "$(get_json_path "$BODY" '.performance_options.maxconn')" "5000" + assert_equal "$(get_json_path "$BODY" '.daemon')" "true" assert_equal "$(get_json_path "$BODY" '.pidfile')" "/var/run/haproxy.pid" assert_equal "$(get_json_path "$BODY" '.runtime_apis[0].address')" "/var/lib/haproxy/stats-new" assert_equal "$(get_json_path "$BODY" '.runtime_apis[0].level')" "admin" diff --git a/e2e/tests/global/replace_2.8.bats b/e2e/tests/global/replace_2.8.bats index 4ad99810..b755f55d 100644 --- a/e2e/tests/global/replace_2.8.bats +++ b/e2e/tests/global/replace_2.8.bats @@ -32,8 +32,8 @@ load 'utils/_helpers' resource_get "$_GLOBAL_BASE_PATH" "" assert_equal "$SC" 200 - assert_equal "$(get_json_path "$BODY" '.maxconn')" "5000" - assert_equal "$(get_json_path "$BODY" '.daemon')" "enabled" + assert_equal "$(get_json_path "$BODY" '.performance_options.maxconn')" "5000" + assert_equal "$(get_json_path "$BODY" '.daemon')" "true" assert_equal "$(get_json_path "$BODY" '.pidfile')" "/var/run/haproxy.pid" assert_equal "$(get_json_path "$BODY" '.runtime_apis[0].address')" "/var/lib/haproxy/stats" assert_equal "$(get_json_path "$BODY" '.runtime_apis[0].level')" "admin"