REGTESTS: lua: add tune.lua.openlibs to all Lua reg-tests

Ensure that all Lua regression tests exercise the restricted library
mode by setting "tune.lua.openlibs none" in their global section.

Only txn_get_priv-thread.vtc requires "string,table"
This commit is contained in:
William Lallemand 2026-04-07 17:01:36 +02:00
parent 591a85e29e
commit 0e18e1cc77
10 changed files with 11 additions and 1 deletions

View File

@ -39,6 +39,7 @@ haproxy h1 -conf {
thread-groups 1
.endif
tune.lua.openlibs none
tune.lua.bool-sample-conversion normal
lua-load ${testdir}/bad_http_clt_req_duration.lua

View File

@ -30,6 +30,7 @@ haproxy h1 -conf {
thread-groups 1
.endif
tune.lua.openlibs none
tune.lua.bool-sample-conversion normal
lua-load ${testdir}/close_wait_lf.lua

View File

@ -9,6 +9,7 @@ haproxy h1 -conf {
thread-groups 1
.endif
tune.lua.openlibs none
tune.lua.bool-sample-conversion normal
lua-load ${testdir}/h_txn_get_priv.lua

View File

@ -15,8 +15,9 @@ haproxy h1 -conf {
.if feature(THREAD)
thread-groups 1
.endif
tune.lua.openlibs none
tune.lua.bool-sample-conversion normal
lua-load ${testdir}/httpclient_action.lua
defaults
mode tcp

View File

@ -42,6 +42,7 @@ haproxy h1 -conf {
thread-groups 1
.endif
tune.lua.openlibs none
tune.lua.bool-sample-conversion normal
lua-load ${testdir}/lua_httpclient.lua

View File

@ -14,6 +14,7 @@ haproxy h1 -conf {
thread-groups 1
.endif
tune.lua.openlibs none
tune.lua.bool-sample-conversion normal
lua-load ${testdir}/lua_socket.lua

View File

@ -19,6 +19,7 @@ haproxy h1 -conf {
thread-groups 1
.endif
tune.lua.openlibs none
tune.lua.bool-sample-conversion normal
lua-load ${testdir}/set_var.lua

View File

@ -15,6 +15,7 @@ haproxy h1 -conf {
# under us.
tune.idle-pool.shared off
tune.lua.openlibs string,table
tune.lua.bool-sample-conversion normal
lua-load-per-thread ${testdir}/txn_get_priv.lua

View File

@ -10,6 +10,7 @@ haproxy h1 -conf {
thread-groups 1
.endif
tune.lua.openlibs none
tune.lua.bool-sample-conversion normal
lua-load ${testdir}/txn_get_priv.lua
lua-load ${testdir}/txn_get_priv-print_r.lua

View File

@ -47,6 +47,7 @@ haproxy h1 -conf {
thread-groups 1
.endif
tune.lua.openlibs none
tune.lua.bool-sample-conversion normal
lua-load ${testdir}/wrong_types_usage.lua