test mod
This commit is contained in:
parent
1c5213ac89
commit
15cc339b2a
17
.luacheckrc
Normal file
17
.luacheckrc
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
read_globals = {
|
||||
-- Stdlib
|
||||
string = {fields = {"split"}},
|
||||
table = {fields = {"copy", "getn"}},
|
||||
|
||||
-- Minetest
|
||||
"minetest",
|
||||
"vector", "ItemStack",
|
||||
"dump",
|
||||
|
||||
-- Deps
|
||||
"unified_inventory", "default",
|
||||
|
||||
-- optional mods
|
||||
"xban", "mail"
|
||||
}
|
@ -42,5 +42,9 @@ docker run --rm -i \
|
||||
|
||||
test -f ${WORLDDIR}/integration_test.json && exit 0 || exit 1
|
||||
|
||||
# https://jwt.io/
|
||||
# TODO
|
||||
#TOKEN="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwidXNlcm5hbWUiOiJkc3QiLCJpYXQiOjE1MTYyMzkwMjJ9.7ik564LuatEhOFapNWIqSlYcST41cgmHGAuTnAowTu8"
|
||||
#curl -v -H "Authorization: ${TOKEN}" "http://127.0.0.1:8080/api/inbox"
|
||||
|
||||
echo "Test complete!"
|
||||
|
@ -3,7 +3,9 @@ minetest.log("warning", "[TEST] integration-test enabled!")
|
||||
|
||||
minetest.register_on_mods_loaded(function()
|
||||
minetest.log("warning", "[TEST] starting tests")
|
||||
minetest.after(0, function()
|
||||
mail.send("src", "dst", "subject", "body");
|
||||
minetest.after(1, function()
|
||||
|
||||
minetest.log("warning", "[TEST] integration tests done!")
|
||||
minetest.request_shutdown("success")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user