Skip to content

Commit

Permalink
[fapi] fix failing unittest test
Browse files Browse the repository at this point in the history
  • Loading branch information
tkan145 committed Jan 24, 2025
1 parent 7b0be31 commit be9b48c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/policy/fapi/fapi_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ end)

describe('fapi_1 advance profile', function()
local context = {}
local ngx_req_headers = {}
before_each(function()
context = {
jwt = {},
Expand All @@ -104,6 +105,8 @@ describe('fapi_1 advance profile', function()
}

ngx.header = {}
ngx_req_headers = {}
stub(ngx.req, 'get_headers', function() return ngx_req_headers end)
stub(ngx, 'print')
stub(ngx, 'exit')
context.jwt = {}
Expand Down

0 comments on commit be9b48c

Please sign in to comment.