Releases: threat9/threat9-test-bed
Releases · threat9/threat9-test-bed
Add `TCPServiceMock` and `UDPServiceMock`
`TelnetServiceMock` improvements
Fix `TelnetServer` deadlock on teardown.
v0.5.4 Add tests. (#8)
Release dibbed service port in service init
v0.5.3 Release dibbed service port in service init. (#7)
Use `werkzeug.serving.make_server` to levrage shared state.
* Use `werkzeug.serving.make_server` to levrage shared state * Dib port for service on class init
Pass `host` and `port` arguments to `werkzeug`s server thread
v0.5.1 Pass `host` and `port` arguments to `werkzeug`s server thread. (#5)
Add SSL support for `HttpServiceMock`
Adhoc SSL support
You can serve HttpScenarioService
using adhoc SSL certificate by setting
ssl
keyword argument to True
:
from threat9_test_bed.service_mocks import HttpScenarioService
@pytest.fixture(scope="session")
def trash_target():
with HttpScenarioService("127.0.0.1", 8443, HttpScenario.TRASH,
ssl=True) as http_service:
yield http_service
Add `Telnet` service
v0.4.0 Add Telnet service. (#3)
Add gunicorn to requirements
v0.3.1 Add gunicorn to requirements.
Handle unbuffered requests
GunicornBasedHttpService
Flask
application served usinggunicorn
in separate process using async workers (threads in this case). Application served by this base class suppose to handle unbuffered requests,nginx
in this case is no option hence async workers.WSGIRefBasedHttpService
Flask
application served usingwsgiref
in separate thread. We can leverage shared state between main thread and thread handlingwsgiref
server and dynamically attachMock
object as view functions.- adhoc ssl support
- random port discovery