From 5ae1a886393ef1ef1ed8a6b14e145349c97180e8 Mon Sep 17 00:00:00 2001 From: Steve White Date: Wed, 9 Oct 2024 21:20:58 -0500 Subject: [PATCH] more scripts --- getitemsinbox.bash | 2 +- tests.bash | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/getitemsinbox.bash b/getitemsinbox.bash index b84215c..9498451 100644 --- a/getitemsinbox.bash +++ b/getitemsinbox.bash @@ -4,7 +4,7 @@ API_BASE_URL="http://localhost:8080" # Replace with your actual API base URL # Box ID -BOX_ID=0 # Replace with the actual box ID +BOX_ID=96 # Replace with the actual box ID # Login credentials USERNAME="boxuser" # Replace with your actual username diff --git a/tests.bash b/tests.bash index 2c9ec7b..fe3cde2 100755 --- a/tests.bash +++ b/tests.bash @@ -186,7 +186,9 @@ fi echo echo echo "Testing /items/{id}/items (GET)..." -response=$(authenticated_request "GET" "/items/$BOX_ID/items" "") +echo "Box ID: $BOX_ID" +response=$(authenticated_request "GET" "/items/$BOX_ID/items") +echo "$response" if [[ $(echo "$response" | jq -r '. | length') -ge 1 ]]; then # Expecting at least one item echo -e "\033[32m /items/{id}/items (GET): PASS\033[0m" # Green PASS