diff --git a/tests/ping-get-aliases.bash b/tests/ping-get-aliases.bash deleted file mode 100755 index 36896d0..0000000 --- a/tests/ping-get-aliases.bash +++ /dev/null @@ -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." diff --git a/tests/ping-post-image.bash b/tests/ping-post-image.bash deleted file mode 100755 index bc9a903..0000000 --- a/tests/ping-post-image.bash +++ /dev/null @@ -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."