Skip to content

Commit

Permalink
stable CI
Browse files Browse the repository at this point in the history
  • Loading branch information
yuweizzz committed Jun 16, 2024
1 parent 57275e3 commit bed930c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions t/plugin/ocsp-stapling.t
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions t/plugin/ocsp-stapling2.t
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit bed930c

Please sign in to comment.