From bed930c93d1b581b49595d4fbb6faf683828a7a0 Mon Sep 17 00:00:00 2001 From: yuweizzz Date: Sun, 16 Jun 2024 15:01:01 +0800 Subject: [PATCH] stable CI --- t/plugin/ocsp-stapling.t | 4 ++-- t/plugin/ocsp-stapling2.t | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/t/plugin/ocsp-stapling.t b/t/plugin/ocsp-stapling.t index dfbc5677ef11..6b1e067eab56 100644 --- a/t/plugin/ocsp-stapling.t +++ b/t/plugin/ocsp-stapling.t @@ -288,7 +288,7 @@ no ocsp response send: failed to get ocsp url: cert not contains authority_infor location /t { content_by_lua_block { local shell = require("resty.shell") - local cmd = [[ openssl ocsp -index t/certs/ocsp/index.txt -port 11451 -rsigner t/certs/ocsp/signer.crt -rkey t/certs/ocsp/signer.key -CA t/certs/apisix.crt -nrequest 16 2>&1 1>/dev/null & ]] + local cmd = [[ /usr/local/openresty/openssl3/bin/openssl ocsp -index t/certs/ocsp/index.txt -port 11451 -rsigner t/certs/ocsp/signer.crt -rkey t/certs/ocsp/signer.key -CA t/certs/apisix.crt -nrequest 16 2>&1 1>/dev/null & ]] local ok, stdout, stderr, reason, status = shell.run(cmd, nil, 1000, 8096) if not ok then ngx.log(ngx.WARN, "failed to execute the script with status: " .. status .. ", reason: " .. reason .. ", stderr: " .. stderr) @@ -688,7 +688,7 @@ qr/Cert Status: unknown/ location /t { content_by_lua_block { local shell = require("resty.shell") - local cmd = [[ openssl ocsp -index t/certs/ocsp/index.txt -port 12345 -rsigner t/certs/ocsp/signer.crt -rkey t/certs/ocsp/signer.key -CA t/certs/apisix.crt -nrequest 2 2>&1 1>/dev/null & ]] + local cmd = [[ /usr/local/openresty/openssl3/bin/openssl ocsp -index t/certs/ocsp/index.txt -port 12345 -rsigner t/certs/ocsp/signer.crt -rkey t/certs/ocsp/signer.key -CA t/certs/apisix.crt -nrequest 2 2>&1 1>/dev/null & ]] local ok, stdout, stderr, reason, status = shell.run(cmd, nil, 1000, 8096) if not ok then ngx.log(ngx.WARN, "failed to execute the script with status: " .. status .. ", reason: " .. reason .. ", stderr: " .. stderr) diff --git a/t/plugin/ocsp-stapling2.t b/t/plugin/ocsp-stapling2.t index 07236b7c189f..94ba7dd3bb55 100644 --- a/t/plugin/ocsp-stapling2.t +++ b/t/plugin/ocsp-stapling2.t @@ -204,7 +204,7 @@ GET /t location /t { content_by_lua_block { local shell = require("resty.shell") - local cmd = [[ openssl ocsp -index t/certs/ocsp/index.txt -port 11451 -rsigner t/certs/ocsp/signer.crt -rkey t/certs/ocsp/signer.key -CA t/certs/apisix.crt -nrequest 4 2>&1 1>/dev/null & ]] + local cmd = [[ /usr/local/openresty/openssl3/bin/openssl ocsp -index t/certs/ocsp/index.txt -port 11451 -rsigner t/certs/ocsp/signer.crt -rkey t/certs/ocsp/signer.key -CA t/certs/apisix.crt -nrequest 4 2>&1 1>/dev/null & ]] local ok, stdout, stderr, reason, status = shell.run(cmd, nil, 1000, 8096) if not ok then ngx.log(ngx.WARN, "failed to execute the script with status: " .. status or "nil" .. ", reason: " .. reason .. ", stderr: " .. stderr) @@ -316,7 +316,7 @@ GET /t location /t { content_by_lua_block { local shell = require("resty.shell") - local cmd = [[ openssl ocsp -index t/certs/ocsp/index.txt -port 12345 -rsigner t/certs/ocsp/signer.crt -rkey t/certs/ocsp/signer.key -CA t/certs/apisix.crt -nrequest 4 2>&1 1>/dev/null & ]] + local cmd = [[ /usr/local/openresty/openssl3/bin/openssl ocsp -index t/certs/ocsp/index.txt -port 12345 -rsigner t/certs/ocsp/signer.crt -rkey t/certs/ocsp/signer.key -CA t/certs/apisix.crt -nrequest 4 2>&1 1>/dev/null & ]] local ok, stdout, stderr, reason, status = shell.run(cmd, nil, 1000, 8096) if not ok then ngx.log(ngx.WARN, "failed to execute the script with status: " .. status or "nil" .. ", reason: " .. reason .. ", stderr: " .. stderr)