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