Skip to content

Commit 64cad49

Browse files
committed
test: add debug info in run.sh script
1 parent bdc218f commit 64cad49

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

  • testcases/quickstart-agent

testcases/quickstart-agent/run.sh

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
set -e
23

34
cd /app/testcases/quickstart-agent
45

@@ -8,7 +9,23 @@ uv sync
89

910
# Authenticate with UiPath
1011
echo "Authenticating with UiPath..."
11-
uv run uipath auth --client-id="$CLIENT_ID" --client-secret="$CLIENT_SECRET" --base-url="$BASE_URL" --force
12+
uv run uipath auth --client-id="$CLIENT_ID" --client-secret="$CLIENT_SECRET" --base-url="$BASE_URL"
13+
14+
# Load the auth configuration into environment
15+
# Check what uipath auth created
16+
echo "=== Checking auth artifacts ==="
17+
if [ -f ~/.config/uipath/auth.json ]; then
18+
echo "Auth config exists:"
19+
cat ~/.config/uipath/auth.json
20+
21+
# Extract and export the required environment variables
22+
export UIPATH_URL=$(jq -r '.base_url // .url // empty' ~/.config/uipath/auth.json)
23+
export UIPATH_ACCESS_TOKEN=$(jq -r '.access_token // .token // empty' ~/.config/uipath/auth.json)
24+
25+
echo "UIPATH_URL: $UIPATH_URL"
26+
echo "UIPATH_ACCESS_TOKEN: ${UIPATH_ACCESS_TOKEN:0:20}..."
27+
fi
28+
echo "==============================="
1229

1330
# Pack the agent
1431
echo "Packing agent..."

0 commit comments

Comments
 (0)