Closed tapiab closed 3 years ago
Hi! Could you be more specific on the impacted file and function?
It seems like we loose the host in all the url :
'config': {'KeysNotEqual': {'href': {'actual': 'http://4000/api/v1/config',
'expected': 'http://localhost:4000/api/v1/config'}}},
'execution': {'KeysNotEqual': {'href': {'actual': 'http://4000/api/v1/process',
'expected': 'http://localhost:4000/api/v1/process'}}},
'health': {'KeysNotEqual': {'href': {'actual': 'http://4000/api/v1/health',
'expected': 'http://localhost:4000/api/v1/health'}}},
'self': {'KeysNotEqual': {'href': {'actual': 'http://4000/api/v1/describe',
'expected': 'http://localhost:4000/api/v1/describe'}}},
'version': {'KeysNotEqual': {'href': {'actual': 'http://4000/api/v1/version',
'expected': 'http://localhost:4000/api/v1/version'}
These are the logs we have when we launch the test pesto/tests/test_service.py
from the test test_describe
(cf. https://github.com/AirbusDefenceAndSpace/pesto/blob/master/pesto-cli/docs/pesto_test.md)
Indeed, tnaks for reporting. Sanic is not based on starlette as FastAPI, so the request interface is different. This is fixed here : https://github.com/AirbusDefenceAndSpace/pesto/commit/786645ba0e82a1231c6cf58b626686fa4fdb943e
This looks interesting. I have tried on a sample service with LOGURU_SERIALIZE=TRUE, however the messages output for each request are still un-formatted: