kytos-ng / telemetry_int

Kytos Telemetry Napp
MIT License
0 stars 2 forks source link

fix: validate has int when redeploying #96

Closed viniarck closed 1 month ago

viniarck commented 2 months ago

Closes #94

This is on top of PR #95

Summary

See updated changelog file

Local Tests

{
    "description": "EVC ad4e4c63cf154b INT isn't enabled",
    "code": 409
}
2024-05-01 16:54:00,173 - INFO [uvicorn.access] (MainThread) 127.0.0.1:57882 - "PATCH /api/kytos/telemetry_int/v1/evc/redeploy HTTP/1.1" 409
2024-05-01 16:54:21,556 - INFO [uvicorn.access] (MainThread) 127.0.0.1:58798 - "GET /api/kytos/mef_eline/v2/evc/ad4e4c63cf154b HTTP/1.1" 200
2024-05-01 16:54:21,563 - INFO [uvicorn.access] (MainThread) 127.0.0.1:58802 - "GET /api/kytos/flow_manager/v2/stored_flows?state=installed&state=pending HTTP/1.1" 200
2024-05-01 16:54:21,564 - INFO [kytos.napps.kytos/telemetry_int] (MainThread) Enabling INT on EVC ids: ['ad4e4c63cf154b'], force: True
2024-05-01 16:54:21,571 - INFO [uvicorn.access] (MainThread) 127.0.0.1:58808 - "GET /api/kytos/flow_manager/v2/stored_flows?state=installed&state=pending HTTP/1.1" 200
2024-05-01 16:54:21,588 - INFO [uvicorn.access] (MainThread) 127.0.0.1:58814 - "POST /api/kytos/mef_eline/v2/evc/metadata HTTP/1.1" 201
2024-05-01 16:54:21,589 - INFO [uvicorn.access] (MainThread) 127.0.0.1:58790 - "POST /api/kytos/telemetry_int/v1/evc/enable HTTP/1.1" 201
2024-05-01 16:54:26,729 - INFO [uvicorn.access] (MainThread) 127.0.0.1:53924 - "GET /api/kytos/mef_eline/v2/evc/ad4e4c63cf154b HTTP/1.1" 200
2024-05-01 16:54:26,730 - INFO [kytos.napps.kytos/telemetry_int] (MainThread) Redeploying INT on EVC ids: ['ad4e4c63cf154b'], force: True
2024-05-01 16:54:26,737 - INFO [uvicorn.access] (MainThread) 127.0.0.1:53930 - "GET /api/kytos/flow_manager/v2/stored_flows?state=installed&state=pending HTTP/1.1" 200
2024-05-01 16:54:26,744 - INFO [uvicorn.access] (MainThread) 127.0.0.1:53936 - "GET /api/kytos/flow_manager/v2/stored_flows?state=installed&state=pending HTTP/1.1" 200
2024-05-01 16:54:26,756 - INFO [uvicorn.access] (MainThread) 127.0.0.1:53938 - "POST /api/kytos/mef_eline/v2/evc/metadata HTTP/1.1" 201
2024-05-01 16:54:26,757 - INFO [uvicorn.access] (MainThread) 127.0.0.1:53908 - "PATCH /api/kytos/telemetry_int/v1/evc/redeploy HTTP/1.1" 201

End-to-End Tests

N/A yet