Closed Alopalao closed 3 months ago
Scrutinizer tests were passing with these changes. Changing this PR to draft.
Detected one error from elastic-apm
. Everythin works, this issue only appears when closing kytos
with the following message:
2024-03-03 03:51:55,807 - ERROR [elasticapm.transport] (MainThread) Closing the transport connection timed out.
And it is inconsistent.
Detected an error with starlette
, every request is disconnected causing an error when getting request.body(). Looking into it.
UPDATE: I was getting this error by saving the request in memory which was my old method to test it. API requests are working normally now.
Updated pydantic in commit dbc8b29cca3a999420ab72ef262449bd64d565c2
Updated testing libraries, commit 5eda4340f81187b92751e52889780d21c133db73.
@Alopalao mef_eline's POST
/v2/evc/
is still returning 405 method not allowed.❯ echo '{ "name": "epl", "service_level": 7, "dynamic_backup_path": true, "uni_a": { "interface_id": "00:00:00:00:00:00:00:01:1" }, "uni_z": { "interface_id": "00:00:00:00:00:00:00:03:1" } }' | http http://127.0.0.1:8181/api/kytos/mef_eline/v2/evc/ HTTP/1.1 405 Method Not Allowed content-length: 47 content-type: application/json date: Tue, 26 Mar 2024 12:55:14 GMT server: uvicorn { "code": 405, "description": "Method Not Allowed" }
That's unexpected considering you said e2e were passing, can you double check this? Once threads have been addressed, e2e tests passing, flows stress tested with the latest commits, let me known and I'll do a final review. So, I'll request changes again here to make it explicit.
It turns out this was a result of wrong installation of conflict dependencies with openapi-core
. pythons setup.py develop
is not longer recommended due to upstream changes, for more information check out Aldo's PR updating the docs
Closes #456 Closes #448 Closes #420 Closes #350 Closes #313
Summary
Updated python3.11 Created this PR to see remote tests results. This PR only works with 3.11 because
ipython==8.22.1
requirements Updated python dependencies. Major ones would be openapi-core, tox, pydantic, pytest, pymongo, ipython, tenacity and more Listing here the related PRs:Local Tests
Created
venv
with python 3.11.2 Run tox, kytosdEnd-to-End Tests
PR