net.box: add checking of options
Currently net.box's methods doesn't check types of passed options. This can lead to Lua's internal errors, which are not self-explaining. Let's add this functionality and raise errors with meaningful messages in case of incorrect options. Closes #6063 Closes #6530 NO_DOC=Not a visible change
Showing
- changelogs/unreleased/gh-6530-netbox-opts-check.md 5 additions, 0 deletionschangelogs/unreleased/gh-6530-netbox-opts-check.md
- src/box/lua/net_box.lua 81 additions, 14 deletionssrc/box/lua/net_box.lua
- src/box/lua/schema.lua 17 additions, 2 deletionssrc/box/lua/schema.lua
- test/box-luatest/gh_6530_net_box_opts_check_test.lua 184 additions, 0 deletionstest/box-luatest/gh_6530_net_box_opts_check_test.lua
- test/box-luatest/net_box_test.lua 1 addition, 1 deletiontest/box-luatest/net_box_test.lua
Loading
Please register or sign in to comment