Skip to content

Commit fab8a27

Browse files
committed
test: add uipath init for other tests
1 parent 340690e commit fab8a27

File tree

17 files changed

+16
-482
lines changed

17 files changed

+16
-482
lines changed

testcases/README.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

testcases/company-research-agent/.env.example

Lines changed: 0 additions & 5 deletions
This file was deleted.

testcases/company-research-agent/agent.mermaid

Lines changed: 0 additions & 23 deletions
This file was deleted.

testcases/company-research-agent/run.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
11
#!/bin/bash
22
cd /app/testcases/company-research-agent
33

4-
# Sync dependencies for this specific testcase
54
echo "Syncing dependencies..."
65
uv sync
76

8-
# Authenticate with UiPath
97
echo "Authenticating with UiPath..."
108
uv run uipath auth --client-id="$CLIENT_ID" --client-secret="$CLIENT_SECRET" --base-url="$BASE_URL"
119

12-
# Pack the agent
10+
echo "Running uipath init..."
11+
uv run uipath init
12+
1313
echo "Packing agent..."
1414
uv run uipath pack
1515

16-
# Run the agent
1716
echo "Input from input.json file"
1817
uv run uipath run agent --file input.json
1918

20-
# Print the output file
2119
source /app/testcases/common/print_output.sh
2220
print_uipath_output
2321

24-
# Validate output
2522
echo "Validating output..."
2623
python src/assert.py || { echo "Validation failed!"; exit 1; }
2724

testcases/company-research-agent/uipath.json

Lines changed: 0 additions & 37 deletions
This file was deleted.

testcases/init-flow/run.sh

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/bash
22
cd /app/testcases/init-flow
33

4-
# Sync dependencies for this specific testcase
54
echo "Syncing dependencies..."
65
uv sync
76

@@ -16,26 +15,21 @@ echo "Restoring pyproject.toml..."
1615
cp pyproject-overwrite.toml pyproject.toml
1716
uv sync
1817

19-
echo "Initializing UiPath..."
20-
uv run uipath init
21-
22-
# Authenticate with UiPath
2318
echo "Authenticating with UiPath..."
2419
uv run uipath auth --client-id="$CLIENT_ID" --client-secret="$CLIENT_SECRET" --base-url="$BASE_URL"
2520

26-
# Pack the agent
21+
echo "Initializing UiPath..."
22+
uv run uipath init
23+
2724
echo "Packing agent..."
2825
uv run uipath pack
2926

30-
# Run the agent
3127
echo "Input from input.json file"
3228
uv run uipath run agent --file input.json
3329

34-
# Print the output file
3530
source /app/testcases/common/print_output.sh
3631
print_uipath_output
3732

38-
# Validate output
3933
echo "Validating output..."
4034
python src/assert.py || { echo "Validation failed!"; exit 1; }
4135

testcases/init-flow/src/assert.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
assert "output" in output_data, "Missing 'output' field in agent response"
3333

3434
output_content = output_data["output"]
35-
assert "messages" in output_content, "Missing 'messages' field in output"
35+
assert "report" in output_content, "Missing 'report' field in output"
3636

37-
messages = output_content["messages"]
38-
assert messages and isinstance(messages, list), "Messages field is empty or not a list"
37+
report = output_content["report"]
38+
assert report and isinstance(report, str), "Report field is empty or not a string"
3939

4040
print("Required fields validation passed")

testcases/simple-local-mcp/.env.example

Lines changed: 0 additions & 5 deletions
This file was deleted.

testcases/simple-local-mcp/README.md

Lines changed: 0 additions & 95 deletions
This file was deleted.

testcases/simple-local-mcp/agent.mermaid

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)