Skip to content

Commit b8195d2

Browse files
committed
[fapi] fix failing unittest test
1 parent 56b0d71 commit b8195d2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec/policy/fapi/fapi_spec.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ end)
9292

9393
describe('fapi_1 advance profile', function()
9494
local context = {}
95+
local ngx_req_headers = {}
9596
before_each(function()
9697
context = {
9798
jwt = {},
@@ -104,6 +105,8 @@ describe('fapi_1 advance profile', function()
104105
}
105106

106107
ngx.header = {}
108+
ngx_req_headers = {}
109+
stub(ngx.req, 'get_headers', function() return ngx_req_headers end)
107110
stub(ngx, 'print')
108111
stub(ngx, 'exit')
109112
context.jwt = {}

0 commit comments

Comments
 (0)