summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Krizek <tomas.krizek@nic.cz>2021-11-23 15:42:30 +0100
committerTomas Krizek <tomas.krizek@nic.cz>2021-11-23 15:42:30 +0100
commit1387e4aff22ddb25faf533981c6157ffb04a1d69 (patch)
tree92c229e84db65be2b96cc5faf46bac81cf1eadc4
parentMerge branch 'gitignore-cache' into 'master' (diff)
parentdoc: edns_keepalive (diff)
downloadknot-resolver-1387e4aff22ddb25faf533981c6157ffb04a1d69.tar.xz
knot-resolver-1387e4aff22ddb25faf533981c6157ffb04a1d69.zip
Merge branch 'nitpicks' into 'master'
nitpicks See merge request knot/knot-resolver!1224
-rw-r--r--.gitlab-ci.yml2
-rw-r--r--modules/daf/daf_http.test.lua4
-rw-r--r--modules/edns_keepalive/README.rst2
-rw-r--r--modules/http/http.test.lua2
-rw-r--r--modules/http/http_doh.test.lua4
-rw-r--r--modules/http/test_tls/tls.test.lua4
-rw-r--r--tests/config/doh2.test.lua4
7 files changed, 12 insertions, 10 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8e307519..6c25b8c5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -107,6 +107,7 @@ build:arm64:
tags:
- arm64
- shell
+ allow_failure: true # some issues with HTTP tests:daf (http module) and HTTP/2 (SIGSEGV)
script:
- meson build_ci_arm64 --default-library=static --prefix=$PREFIX -Dwerror=true -Dextra_tests=enabled
- ninja -C build_ci_arm64
@@ -348,6 +349,7 @@ pytests:
<<: *test_flaky
needs:
- build-asan
+ allow_failure: true # due to issues with runners: OSError 99
artifacts:
when: always
paths:
diff --git a/modules/daf/daf_http.test.lua b/modules/daf/daf_http.test.lua
index d89b180d..20d5f905 100644
--- a/modules/daf/daf_http.test.lua
+++ b/modules/daf/daf_http.test.lua
@@ -37,7 +37,7 @@ else
-- helper for returning useful values to test on
-- local function http_get(uri)
--- local headers, stream = assert(request.new_from_uri(uri):go())
+-- local headers, stream = assert(request.new_from_uri(uri):go(16))
-- local body = assert(stream:get_body_as_string())
-- return tonumber(headers:get(':status')), body, headers:get('content-type')
-- end
@@ -46,7 +46,7 @@ else
local req = assert(request.new_from_uri(baseuri .. uri))
req.headers:upsert(':method', method)
req:set_body(reqbody)
- local headers, stream = assert(req:go())
+ local headers, stream = assert(req:go(16))
local ansbody = assert(stream:get_body_as_string())
return tonumber(headers:get(':status')), ansbody, headers:get('content-type')
end
diff --git a/modules/edns_keepalive/README.rst b/modules/edns_keepalive/README.rst
index 5f4c2e89..d8034d25 100644
--- a/modules/edns_keepalive/README.rst
+++ b/modules/edns_keepalive/README.rst
@@ -19,4 +19,4 @@ unloaded using standard means:
.. code-block:: lua
- modules.load('edns_keepalive')
+ modules.unload('edns_keepalive')
diff --git a/modules/http/http.test.lua b/modules/http/http.test.lua
index 2d0752ff..b882f107 100644
--- a/modules/http/http.test.lua
+++ b/modules/http/http.test.lua
@@ -45,7 +45,7 @@ else
-- helper for returning useful values to test on
local function http_get(uri)
- local headers, stream = assert(request.new_from_uri(uri .. '/'):go())
+ local headers, stream = assert(request.new_from_uri(uri .. '/'):go(16))
local body = assert(stream:get_body_as_string())
return tonumber(headers:get(':status')), body, headers:get('content-type')
end
diff --git a/modules/http/http_doh.test.lua b/modules/http/http_doh.test.lua
index 60f5cc0a..f0685cb1 100644
--- a/modules/http/http_doh.test.lua
+++ b/modules/http/http_doh.test.lua
@@ -49,7 +49,7 @@ function parse_pkt(input, desc)
end
local function check_ok(req, desc)
- local headers, stream, errno = req:go(8) -- randomly chosen timeout by tkrizek
+ local headers, stream, errno = req:go(16)
if errno then
local errmsg = stream
nok(errmsg, desc .. ': ' .. errmsg)
@@ -63,7 +63,7 @@ local function check_ok(req, desc)
end
local function check_err(req, exp_status, desc)
- local headers, errmsg, errno = req:go(8) -- randomly chosen timeout by tkrizek
+ local headers, errmsg, errno = req:go(16)
if errno then
nok(errmsg, desc .. ': ' .. errmsg)
return
diff --git a/modules/http/test_tls/tls.test.lua b/modules/http/test_tls/tls.test.lua
index 481d7b87..7d5c437b 100644
--- a/modules/http/test_tls/tls.test.lua
+++ b/modules/http/test_tls/tls.test.lua
@@ -43,7 +43,7 @@ else
req.ctx:setVerify(openssl_ctx.VERIFY_NONE)
end
- local headers = assert(req:go())
+ local headers = assert(req:go(16))
return tonumber(headers:get(':status'))
end
@@ -168,7 +168,7 @@ else
store:add('ca.crt')
req.ctx:setVerify(openssl_ctx.VERIFY_PEER)
- local headers = assert(req:go())
+ local headers = assert(req:go(16))
local code = tonumber(headers:get(':status'))
same(code, 200, desc)
end
diff --git a/tests/config/doh2.test.lua b/tests/config/doh2.test.lua
index 069e72b7..ef432563 100644
--- a/tests/config/doh2.test.lua
+++ b/tests/config/doh2.test.lua
@@ -50,7 +50,7 @@ function parse_pkt(input, desc)
end
local function check_ok(req, desc)
- local headers, stream, errno = req:go(8) -- randomly chosen timeout by tkrizek
+ local headers, stream, errno = req:go(16)
if errno then
local errmsg = stream
nok(errmsg, desc .. ': ' .. errmsg)
@@ -64,7 +64,7 @@ local function check_ok(req, desc)
end
--local function check_err(req, exp_status, desc)
--- local headers, errmsg, errno = req:go(8) -- randomly chosen timeout by tkrizek
+-- local headers, errmsg, errno = req:go(16)
-- if errno then
-- nok(errmsg, desc .. ': ' .. errmsg)
-- return