Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: @rest endpoints are now run by starlette/uvicorn instead of flask/werkzeug #47

Merged
merged 5 commits into from
May 3, 2023

Conversation

viniarck
Copy link
Member

@viniarck viniarck commented Apr 25, 2023

Closes #45
Closes #44

This PR depends on kytos-ng/kytos#375

(I'll revert the pinned branch feat/starlette on requirements/dev.in later on, it's need for tests to pass)

Summary

Notice that requirements/dev.in is being used directly now instead of requirements/dev.txt to simplify code maintenance and house keeping, for more information check out the linked issue, in summary, we're making a trade-off to trust kytos-ng dev upstream transitive dependencies.

Local Tests

GET /api/amlight/sdntrace/trace/{{trace_id}}
{
    "request_id": 30001,
    "result": [
        {
            "type": "starting",
            "dpid": "00:00:00:00:00:00:00:01",
            "port": 1,
            "time": "2023-04-25 12:12:08.658752"
        },
        {
            "type": "trace",
            "dpid": "00:00:00:00:00:00:00:03",
            "port": 3,
            "time": "0:00:00.520074"
        },
        {
            "type": "last",
            "reason": "done",
            "msg": "none",
            "time": "0:00:02.045843"
        }
    ],
    "start_time": "2023-04-25 12:12:08.658752",
    "total_time": "0:00:02.046409",
    "request": {
        "trace": {
            "switch": {
                "dpid": "00:00:00:00:00:00:00:01",
                "in_port": 1
            },
            "eth": {
                "dl_vlan": 105
            }
        }
    }
}

End-to-End Tests

e2e tests with this PR and related starlette PRs can be found here, they're passing

@viniarck viniarck requested a review from a team as a code owner April 25, 2023 15:20
@viniarck viniarck marked this pull request as draft April 25, 2023 15:21
@viniarck viniarck marked this pull request as ready for review May 1, 2023 15:55
requirements/dev.in Outdated Show resolved Hide resolved
@viniarck viniarck merged commit e385f05 into master May 3, 2023
@viniarck viniarck deleted the chore/starlette branch May 3, 2023 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant