Added all files in folder tests/ to .gitignore and removed cache

This commit is contained in:
Penguin-71630
2025-12-13 00:56:54 +08:00
parent 31598a9c96
commit ea7477f7ce
2 changed files with 0 additions and 48 deletions

View File

@@ -1,22 +0,0 @@
#!/bin/bash
# Check if TOKEN is provided
if [ -z "$TOKEN" ]; then
echo "Error: TOKEN environment variable is required"
echo "Usage: TOKEN=your_token_here ./ping-get-aliases.bash"
exit 1
fi
curl -X POST http://localhost:8080/auth/login \
-H "Content-Type: application/json" \
-d "{\"token\":\"$TOKEN\"}" \
-c cookies.txt \
-v > test.log 2>&1
# Parse refresh_token from cookies.txt
REFRESH_TOKEN=$(grep refresh_token cookies.txt | awk '{print $7}')
curl -b "refresh_token=$REFRESH_TOKEN" http://localhost:8080/api/aliases -v >> test.log 2>&1
# Display the result
echo "Test completed. Check test.log for details."

View File

@@ -1,26 +0,0 @@
#!/bin/bash
# Check if TOKEN is provided
if [ -z "$TOKEN" ]; then
echo "Error: TOKEN environment variable is required"
echo "Usage: TOKEN=your_token_here ./ping-get-aliases.bash"
exit 1
fi
curl -X POST http://localhost:8080/auth/login \
-H "Content-Type: application/json" \
-d "{\"token\":\"$TOKEN\"}" \
-c cookies.txt \
-v > test.log 2>&1
# Parse refresh_token from cookies.txt
REFRESH_TOKEN=$(grep refresh_token cookies.txt | awk '{print $7}')
curl \
-X POST http://localhost:8080/api/image \
-b "refresh_token=$REFRESH_TOKEN" \
-v \
>> test.log 2>&1
# Display the result
echo "Test completed. Check test.log for details."