connexin / connexin-RADIUS3-REST-Tests

Automated testing suite for the RADIUS3 REST API using SOAPUI.
0 stars 0 forks source link

Adding Multiple Supplement Packages results in wrong upload and download limits #8

Open rhqureshi opened 5 years ago

rhqureshi commented 5 years ago

Supplement with -1 for upload/download Supplement with 250 for upload and download

results in 249 for upload and download where it should be unlimites or -1

image

Get user results:

{ "Users": [ { "id": 9137, "username": "488CDE81FE4CAD3C482F", "password": "D923CDAE19C0FCA1253A", "hashed_password": false, "base_speed_up": 0, "base_speed_down": 0, "session_limit": 1, "static_ip": "", "base_upload_limit": 0, "base_download_limit": 0, "lock": false, "pending": false, "reseller_id": 359, "status_id": 279, "usage": { "login": 0, "logintime": 0, "up": 0, "down": 0, "total": 0 }, "session": [], "speed_up": 100, "speed_down": 100, "upload_limit": 249, "download_limit": 249, "Status": { "id": 279, "name": "active", "reseller_id": 359, "redirect_url": "", "pool_name": "active_pool", "static_override_pool": true, "type": "active" }, "TransientPackages": [ { "id": 114, "user_id": 9137, "start": "2019-05-13T00:00:00Z", "end": "2019-05-24T00:00:00Z", "precedence": 5, "mode": "Supplement", "speed_up": 100, "speed_down": 100, "upload_limit": -1, "download_limit": -1 }, { "id": 116, "user_id": 9137, "start": "2019-05-14T00:00:00Z", "end": "2019-05-30T00:00:00Z", "precedence": 5, "mode": "Supplement", "speed_up": 60, "speed_down": 60, "upload_limit": 250, "download_limit": 250 } ], "RadiusAttributes": [] } ], "meta": { "page": 1, "limit": 5 } }