Response body size in the operation summary output is incorrect
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem
API Security outputs a summary when testing of an operation has completed. This summary includes the average response body size, information useful in diagnosing performance issues. While reviewing out e2e tests for a large response body (130 MB), it was found the summary was wrong, listing the average as 101 bytes.
Example pipeline: https://gitlab.com/gitlab-org/security-products/tests/api-fuzzing-e2e/fuzz-generic/-/jobs/2918259918 Expected: ~130 MB Actual: 101 bytes
API Security: Finished testing operation 'GET http://target:7777/api/large_response_json'.
API Security: - Excluded Parameters: (Headers: 0, Query: 0, Body: 0)
API Security: - Performed 767 requests
API Security: - Average response body size: 101 Bytes (101 bytes)
API Security: - Average call time: 2 seconds and 82.69 milliseconds (2.082693 seconds)
API Security: - Time to complete: 14 minutes, 8 seconds and 788.36 milliseconds (848.788358 seconds)
Edited by 🤖 GitLab Bot 🤖