30 lines
1.0 KiB
Bash
Executable File
30 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
# start the queryAPI service and the
|
|
|
|
|
|
# Auto Refresh Token Test Script
|
|
# This script sets up the environment and runs the auto refresh token test
|
|
|
|
export USER=betot75403@isorax.com
|
|
export PASSWORD=qqQQ11!!
|
|
export COGNITO_DOMAIN=https://us-east-21y6po8rr8.auth.us-east-2.amazoncognito.com
|
|
export AWS_REGION=us-east-2
|
|
export COGNITO_CLIENT_SECRET=<get from jay>
|
|
export COGNITO_USER_POOL_ID=us-east-2_1y6po8rR8
|
|
export COGNITO_CLIENT_ID=552cqkf3640t39ncehkmgpce31
|
|
export DEBUG=true
|
|
export HEADLESS=false
|
|
export ENABLE_REFRESH_TESTS=true
|
|
export PERMIT_IO_API_KEY=permit_key_<get from jay>
|
|
|
|
echo "🚀 Starting Auto Refresh Token Test"
|
|
echo "⚠️ This test will wait for token expiration (up to 5+ minutes)"
|
|
echo "🔧 Make sure Cognito tokens are configured with 5 minute expiration"
|
|
echo "🌐 Browser will open in non-headless mode for debugging"
|
|
echo ""
|
|
|
|
# Run the auto refresh test with extended timeout for token expiration
|
|
go test -run TestAutoRefreshFlow -timeout 15m -v
|
|
|
|
echo ""
|
|
echo "✅ Auto refresh test completed" |