kytos-ng / kytos-end-to-end-tests

Kytos End-to-End Tests
0 stars 10 forks source link

Add a test suite for `pathfinder` endpoints #202

Closed viniarck closed 10 months ago

viniarck commented 1 year ago

Currently pathfinder only has this POST /v2 endpoint. pathfinder is being indirectly tested since mef_eline depends on it for dynamic paths. However, we also need an individual test suite to validate changes and avoid regressions on pathfinder individually, this also helps to isolate and understand why a test might be failing.

You need to add a test case testing the following parameters (the linked API documentation explain what each parameter does, also check out EP023-2 blueprint for extra informaiton about them):

viniarck commented 1 year ago

The recommended topology should also add the metadata during the test suite setup you can either use the MultiConnectedTopo and plan for adding metadata like these ones (here's an example of how to add metadata):

20230202_105830

or use AmlightTopo with an equivalent kytos-amlight-topo-init.sh. MultiConnectedTopo is a smaller topology and easier to plan for the test cases with these attributes.