kytos-ng / pathfinder

Kytos main path finder Network Application (NApp)
https://kytos-ng.github.io/api/pathfinder.html
MIT License
0 stars 7 forks source link

fix: replaced `kytos/topology.links.metadata.(added|removed)` with `kytos/topology.updated` #55

Closed viniarck closed 1 year ago

viniarck commented 1 year ago

Closes #54 Closes #53

(I'll send a PR backporting soon)

This PR depends on https://github.com/kytos-ng/topology/pull/150

Summary

See updated changelog file (for more information about why, check out issue 54)

Local Tests

Successfully added "blue" and "red" ownership to a ring topology, and provisioned with primary constraints "blue" which has higher hop count:

2023-07-06 17:08:14,323 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:33664 - "POST /api/kytos/topology/v3/links/c8b55359990f89a5849813dc348d30e9e1f991bad1
dcb7f82112bd35429d9b07/metadata HTTP/1.1" 201
kytos $> 2023-07-06 17:09:03,411 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:42672 - "POST /api/kytos/topology/v3/links/4d42dc0852278accac7d9df15418f6d92
1db160b13d674029a87cef1b5f67f30/metadata HTTP/1.1" 201
2023-07-06 17:09:15,367 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:60088 - "POST /api/kytos/topology/v3/links/78282c4d5b579265f04ebadc4405ca1b49628eb1d6
84bb45e5d0607fa8b713d0/metadata HTTP/1.1" 201

20230706_171028

20230706_172016

End-to-End Tests

I'll dispatch e2e exec shortly and post the results here later:

============================= test session starts ==============================
platform linux -- Python 3.9.2, pytest-7.2.0, pluggy-1.2.0
rootdir: /builds/amlight/kytos-end-to-end-tester/kytos-end-to-end-tests
plugins: rerunfailures-10.2, timeout-2.1.0, anyio-3.6.2
collected 239 items
tests/test_e2e_01_kytos_startup.py ..                                    [  0%]
tests/test_e2e_05_topology.py ..................                         [  8%]
tests/test_e2e_10_mef_eline.py ..........ss.....x.....x................  [ 25%]
tests/test_e2e_11_mef_eline.py ......                                    [ 27%]
tests/test_e2e_12_mef_eline.py .....Xx.                                  [ 30%]
tests/test_e2e_13_mef_eline.py .....xs.s......xs.s.XXxX.xxxx..X......... [ 48%]
...                                                                      [ 49%]
tests/test_e2e_14_mef_eline.py x                                         [ 49%]
tests/test_e2e_15_mef_eline.py ..                                        [ 50%]
tests/test_e2e_20_flow_manager.py .....................                  [ 59%]
tests/test_e2e_21_flow_manager.py ...                                    [ 60%]
tests/test_e2e_22_flow_manager.py ...............                        [ 66%]
tests/test_e2e_23_flow_manager.py ..............                         [ 72%]
tests/test_e2e_30_of_lldp.py ....                                        [ 74%]
tests/test_e2e_31_of_lldp.py ...                                         [ 75%]
tests/test_e2e_32_of_lldp.py ...                                         [ 76%]
tests/test_e2e_40_sdntrace.py ...........                                [ 81%]
tests/test_e2e_41_kytos_auth.py ........                                 [ 84%]
tests/test_e2e_50_maintenance.py ........................                [ 94%]
tests/test_e2e_60_of_multi_table.py .....                                [ 97%]
tests/test_e2e_70_kytos_stats.py .......                                 [100%]
=============================== warnings summary ===============================
= 217 passed, 6 skipped, 11 xfailed, 5 xpassed, 867 warnings in 11011.85s (3:03:31) =