-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathunit-tests.txt
More file actions
10 lines (8 loc) · 778 Bytes
/
unit-tests.txt
File metadata and controls
10 lines (8 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
sample tests to run on each route
curl -X GET "http://<your-ip>:8080/list_dir?path=/home/user&username=admin&password=password"
curl -X DELETE "http://<your-ip>:8080/remove_file?path=/home/user/example.txt&username=admin&password=password"
curl -X POST "http://<your-ip>:8080/upload_file?path=/home/user&username=admin&password=password" -F "file=@/path/to/local/file.txt"
curl -X GET "http://<your-ip>:8080/download_file?path=/home/user/example.txt&username=admin&password=password" --output example.txt
curl -X GET "http://<your-ip>:8080/running_processes?username=admin&password=password"
curl -X GET "http://<your-ip>:8080/execute_command?command=ls%20-l&username=admin&password=password"
curl -X GET "http://<your-ip>:8080/system_uptime?username=admin&password=password"