This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # API Stress Test | |
| Create a Bash-based stress testing suite that simulates real user interactions with | |
| your API and measures system performance under load. | |
| ## Core Script (`api_stress_test.sh`) | |
| - Simulate realistic user flows with sequential API calls (GET, POST, PUT, DELETE) | |
| - DELETE requests should be executed last to clean up test data | |
| - Support bearer token authentication and custom headers | |
| - Base URL should be configurable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Parse named arguments | |
| while [ $# -gt 0 ]; do | |
| case "$1" in | |
| --source-a=*) | |
| REPO_A="${1#*=}" | |
| ;; | |
| --source-b=*) | |
| REPO_B="${1#*=}" |