busted_resty

An extra mocking layer for OpenResty in busted testing environment.

$ luarocks install busted_resty

This module mocks the following OpenResty APIs:

- ngx.status
- ngx.exit
- ngx.exec
- ngx.redirect
- ngx.send_headers
- ngx.headers_sent
- ngx.print
- ngx.say
- ngx.flush
- ngx.eof
- ngx.is_subrequest
- ngx.on_abort
- ngx.arg.*
- ngx.var.*
- ngx.header.*
- ngx.location.*
- ngx.req.*
- ngx.resp.*

Versions

0.5.0-13 years ago22,583 downloads

Dependencies

lua >= 5.1
luassert >= 1.7.8

Manifests