Migrate clip/convert to V3 actions; add background clip support, redirect legacy route; update frontend guide
This commit is contained in:
@@ -7,8 +7,8 @@ API_KEY = "PMM4n50teUCaOMMTN8qOJA"
|
||||
ACCOUNT_ID = "Q8lR8Ai8hx2FjbQ3C_EH1Q" # OSIT
|
||||
|
||||
# IDs for testing ID Vision resolution
|
||||
HOSTED_FILE_ID = "PUwhbT2tMgU"
|
||||
EVENT_FILE_ID = "cFyCd7FPZe9"
|
||||
HOSTED_FILE_ID = "PUwhbT2tMgU"
|
||||
EVENT_FILE_ID = "2e_MFBgY5eg"
|
||||
ARCHIVE_CONTENT_ID = "UjKzrk-GKu5"
|
||||
|
||||
# Hash for testing content-addressable storage
|
||||
@@ -18,7 +18,7 @@ def test_download_by_id(label, test_id):
|
||||
print(f"--- Testing Download via {label}: {test_id} ---")
|
||||
url = f"{BASE_URL}/{test_id}/download"
|
||||
headers = {"X-Aether-API-Key": API_KEY, "x-account-id": ACCOUNT_ID}
|
||||
|
||||
|
||||
try:
|
||||
response = requests.get(url, headers=headers, stream=True)
|
||||
print(f"Status: {response.status_code}")
|
||||
@@ -35,7 +35,7 @@ def test_download_by_id(label, test_id):
|
||||
def test_download_by_hash_query():
|
||||
print(f"\n--- Testing Hash Download via Query Param API Key ---")
|
||||
url = f"{BASE_URL}/hash/{FILE_HASH}/download?api_key={API_KEY}"
|
||||
|
||||
|
||||
try:
|
||||
response = requests.get(url)
|
||||
print(f"Status: {response.status_code}")
|
||||
@@ -57,7 +57,7 @@ def test_download_streaming():
|
||||
"x-account-id": ACCOUNT_ID,
|
||||
"Range": "bytes=0-10"
|
||||
}
|
||||
|
||||
|
||||
try:
|
||||
response = requests.get(url, headers=headers)
|
||||
print(f"Status: {response.status_code} (Expected 206)")
|
||||
@@ -79,7 +79,7 @@ if __name__ == "__main__":
|
||||
test_download_by_hash_query(),
|
||||
test_download_streaming()
|
||||
]
|
||||
|
||||
|
||||
if all(results):
|
||||
print("\n🎉 ALL DOWNLOAD PATTERNS VERIFIED!")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user