e30e75b5d4
Changesets / Create Version PR (push) Has been cancelled
Deploy Shadcn Registry / Deploy Production (push) Has been cancelled
Template Metrics / LOC + Bundle Size (push) Has been cancelled
Code Quality / Oxlint + Oxfmt (push) Has been cancelled
Code Quality / Template Sync (push) Has been cancelled
Code Quality / Build Changed Packages (push) Has been cancelled
Code Quality / Test Changed Packages (push) Has been cancelled
Deploy Expo Example / Deploy Production (push) Has been cancelled
Deploy Ink Example / Deploy Production (push) Has been cancelled
Python Tests / pytest (assistant-stream, 3.10) (push) Has been cancelled
Python Tests / pytest (assistant-stream, 3.12) (push) Has been cancelled
Python Tests / pytest (assistant-ui-sync-server-api, 3.10) (push) Has been cancelled
Python Tests / pytest (assistant-ui-sync-server-api, 3.12) (push) Has been cancelled
36 lines
1.1 KiB
Bash
Executable File
36 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Integration test script for AssistantCloudFiles
|
|
# This script runs the integration test that actually calls the real API
|
|
|
|
# Check if required environment variables are set
|
|
if [ -z "$AUI_API_KEY" ] || [ -z "$AUI_USER_ID" ] || [ -z "$AUI_WORKSPACE_ID" ]; then
|
|
echo "❌ Missing required environment variables:"
|
|
echo ""
|
|
echo "Please set the following environment variables:"
|
|
echo " export AUI_API_KEY='your_api_key_here'"
|
|
echo " export AUI_USER_ID='your_user_id_here'"
|
|
echo " export AUI_WORKSPACE_ID='your_workspace_id_here'"
|
|
echo ""
|
|
echo "Example:"
|
|
echo " export AUI_API_KEY='sk_aui'"
|
|
echo " export AUI_USER_ID='676767'"
|
|
echo " export AUI_WORKSPACE_ID='65656'"
|
|
echo ""
|
|
echo "Then run this script again."
|
|
exit 1
|
|
fi
|
|
|
|
echo "🚀 Running integration test with real API credentials..."
|
|
echo ""
|
|
echo "Using:"
|
|
echo " API Key: ${AUI_API_KEY:0:20}..."
|
|
echo " User ID: $AUI_USER_ID"
|
|
echo " Workspace ID: $AUI_WORKSPACE_ID"
|
|
echo ""
|
|
|
|
# Run the test
|
|
npm test -- src/tests/AssistantCloudFiles.test.ts --reporter=verbose
|
|
|
|
echo ""
|
|
echo "✅ Integration test completed!" |