# daemon: lua modules
config_tests += [
+ ['ta', files('trust_anchors.test/ta.test.lua')],
['ta_bootstrap', files('trust_anchors.test/bootstrap.test.lua')],
]
-- check prerequisites
-local has_http = pcall(require, 'http') and pcall(require, 'http.request')
+local has_http = pcall(require, 'kres_modules.http') and pcall(require, 'http.request')
if not has_http then
pass('skipping bootstrap tests because http module is not not installed')
done()
-- check prerequisites
-local has_http = pcall(require, 'http') and pcall(require, 'http.request')
+local has_http = pcall(require, 'kres_modules.http') and pcall(require, 'http.request')
if not has_http then
pass('skipping http module test because its not installed')
done()
else
local request = require('http.request')
- local endpoints = require('http').endpoints
+ local endpoints = require('kres_modules.http').endpoints
-- custom endpoints
endpoints['/test'] = {'text/custom', function () return 'hello' end}
-- check prerequisites
-local has_http = pcall(require, 'http') and pcall(require, 'http.request')
+local has_http = pcall(require, 'kres_modules.http') and pcall(require, 'http.request')
if not has_http then
pass('skipping http module test because its not installed')
done()