]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REGTESTS: lua: fix tune.lua.openlibs in Lua reg-tests
authorWilliam Lallemand <wlallemand@irq6.net>
Wed, 27 May 2026 19:06:04 +0000 (21:06 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 28 May 2026 09:36:02 +0000 (11:36 +0200)
commit2130c9ccfb70fd7a25fc5ff96ad77c1ccbcbb5f3
tree64d3f9d0e04eea1026d20361314522fefe6fac81
parent1c59c39171529b5c6bb7e661e2bcbc933747f65b
REGTESTS: lua: fix tune.lua.openlibs in Lua reg-tests

These tests were using "tune.lua.openlibs none" with lua-load, which
was a no-op in the old code since Lua states 0 and 1 were always
initialised before config parsing with all standard libraries.

Now that the Lua VM is initialised lazily, the restriction correctly
applies to state 0 as well. Replace "none" with the minimal set of
libraries actually required by each test's Lua code:

  - lua_socket.vtc, h_txn_get_priv.vtc, lua_httpclient.vtc: string
  - txn_get_priv.vtc: string,table
reg-tests/lua/h_txn_get_priv.vtc
reg-tests/lua/lua_httpclient.vtc
reg-tests/lua/lua_socket.vtc
reg-tests/lua/txn_get_priv.vtc