-- check prerequisites
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()
+ -- skipping bootstrap tests because http module is not not installed
+ os.exit(77)
end
local cqueues = require("cqueues")
-- check prerequisites
local has_http = pcall(require, 'kres_modules.http') and pcall(require, 'http.request')
if not has_http then
- pass('skipping daf module test because http its not installed')
- done()
+ -- skipping daf module test because http its not installed
+ os.exit(77)
else
local request = require('http.request')
-- check prerequisites
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()
+ -- skipping http module test because its not installed
+ os.exit(77)
else
local request = require('http.request')
-- check prerequisites
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()
+ -- skipping http module test because its not installed
+ os.exit(77)
else
policy.add(policy.suffix(policy.DROP, policy.todnames({'servfail.test.'})))
policy.add(policy.suffix(policy.DENY, policy.todnames({'nxdomain.test.'})))
-- check prerequisites
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()
+ -- skipping http module test because its not installed
+ os.exit(77)
else
local request = require('http.request')
local openssl_ctx = require('openssl.ssl.context')
-- SPDX-License-Identifier: GPL-3.0-or-later
-- check prerequisites
if not worker.bg_worker then
- pass('skipping worker test because it doesnt support background worker')
- done()
+ -- skipping worker test because it doesnt support background worker
+ os.exit(77)
else
-- import primitives for synchronisation
local monotime = require('cqueues').monotime