mirror of
https://github.com/floor-licker/polyfill-rs.git
synced 2026-07-27 20:47:46 +00:00
refactor:cleanup
This commit is contained in:
@@ -5,18 +5,18 @@
|
||||
|
||||
set -e
|
||||
|
||||
echo "🚀 Running polyfill-rs integration tests..."
|
||||
echo "Running polyfill-rs integration tests..."
|
||||
echo "=========================================="
|
||||
|
||||
# Check if we have the required environment variables
|
||||
if [ -z "$POLYMARKET_PRIVATE_KEY" ]; then
|
||||
echo "⚠️ Warning: POLYMARKET_PRIVATE_KEY not set"
|
||||
echo "Warning: POLYMARKET_PRIVATE_KEY not set"
|
||||
echo " Some tests will be skipped (authentication, order management, WebSocket)"
|
||||
echo " Set POLYMARKET_PRIVATE_KEY to run all tests"
|
||||
fi
|
||||
|
||||
if [ -z "$POLYMARKET_API_KEY" ] || [ -z "$POLYMARKET_API_SECRET" ] || [ -z "$POLYMARKET_API_PASSPHRASE" ]; then
|
||||
echo "⚠️ Warning: API credentials not set"
|
||||
echo "Warning: API credentials not set"
|
||||
echo " Set POLYMARKET_API_KEY, POLYMARKET_API_SECRET, and POLYMARKET_API_PASSPHRASE"
|
||||
echo " to test order management functionality"
|
||||
fi
|
||||
@@ -38,34 +38,34 @@ cargo test --test integration_tests -- --nocapture
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo ""
|
||||
echo "🎉 All integration tests passed!"
|
||||
echo "All integration tests passed!"
|
||||
echo ""
|
||||
echo "Test Summary:"
|
||||
echo " ✅ API connectivity"
|
||||
echo " ✅ Market data endpoints"
|
||||
echo " ✅ Error handling"
|
||||
echo " ✅ Rate limiting"
|
||||
echo " ✅ API compatibility"
|
||||
echo " ✅ Performance characteristics"
|
||||
echo " API connectivity"
|
||||
echo " Market data endpoints"
|
||||
echo " Error handling"
|
||||
echo " Rate limiting"
|
||||
echo " API compatibility"
|
||||
echo " Performance characteristics"
|
||||
|
||||
if [ -n "$POLYMARKET_PRIVATE_KEY" ]; then
|
||||
echo " ✅ Authentication"
|
||||
echo " ✅ Advanced client features"
|
||||
echo " ✅ WebSocket connectivity"
|
||||
echo " Authentication"
|
||||
echo " Advanced client features"
|
||||
echo " WebSocket connectivity"
|
||||
|
||||
if [ -n "$POLYMARKET_API_KEY" ]; then
|
||||
echo " ✅ Order management"
|
||||
echo " Order management"
|
||||
else
|
||||
echo " ⚠️ Order management (skipped - no API credentials)"
|
||||
echo " Order management (skipped - no API credentials)"
|
||||
fi
|
||||
else
|
||||
echo " ⚠️ Authentication (skipped - no private key)"
|
||||
echo " ⚠️ Advanced client features (skipped - no private key)"
|
||||
echo " ⚠️ WebSocket connectivity (skipped - no private key)"
|
||||
echo " ⚠️ Order management (skipped - no private key)"
|
||||
echo " Authentication (skipped - no private key)"
|
||||
echo " Advanced client features (skipped - no private key)"
|
||||
echo " WebSocket connectivity (skipped - no private key)"
|
||||
echo " Order management (skipped - no private key)"
|
||||
fi
|
||||
else
|
||||
echo ""
|
||||
echo "❌ Some integration tests failed!"
|
||||
echo "Some integration tests failed!"
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user