#!/bin/bash # Mirror Test Script for BUD-04 # Tests the PUT /mirror endpoint with a sample PNG file # Test URL - PNG file with known SHA-256 hash TEST_URL="https://laantungir.github.io/img_repo/24308d48eb498b593e55a87b6300ccffdea8432babc0bb898b1eff21ebbb72de.png" EXPECTED_HASH="24308d48eb498b593e55a87b6300ccffdea8432babc0bb898b1eff21ebbb72de" echo "=== BUD-04 Mirror Endpoint Test ===" echo "Target URL: $TEST_URL" echo "Expected Hash: $EXPECTED_HASH" echo "" # Create JSON request body JSON_BODY=$(cat <