Skip to content

Commit 4b28774

Browse files
jzanecookGitHub Actions
andauthored
Update OpenAPI Schema and Testing Suite (#57)
Co-authored-by: GitHub Actions <no-reply@github.com>
1 parent 68e90f6 commit 4b28774

6 files changed

Lines changed: 6 additions & 19 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,3 +263,5 @@ cython_debug/
263263

264264
.idea/
265265

266+
# Testing Suite HTML Reports
267+
report.html

docs/src/app/endpoints/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ curl --request POST http://localhost:8000/agent/tasks
4444

4545
---
4646

47-
## List Agent Tasks I Ds {{ tag: 'GET', label: '/agent/tasks' }}
47+
## List Agent Tasks {{ tag: 'GET', label: '/agent/tasks' }}
4848
<Row>
4949
<Col>
5050
List all tasks that have been created for the agent.

schemas/openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
]
152152
},
153153
"get": {
154-
"operationId": "listAgentTasksIDs",
154+
"operationId": "listAgentTasks",
155155
"summary": "List all tasks that have been created for the agent.",
156156
"parameters": [
157157
{

schemas/openapi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ paths:
3434
tags:
3535
- agent
3636
get:
37-
operationId: listAgentTasksIDs
37+
operationId: listAgentTasks
3838
summary: List all tasks that have been created for the agent.
3939
parameters:
4040
- name: current_page

testing_suite/contract_tests_env.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
},
8181
{
8282
"key": "env-openapi-json-url",
83-
"value": "https://raw.githubusercontent.com/merwanehamadi/agent-protocol/main/openapi.json",
83+
"value": "https://raw.githubusercontent.com/AI-Engineers-Foundation/agent-protocol/main/schemas/openapi.json",
8484
"type": "default",
8585
"enabled": true
8686
},

testing_suite/test.sh

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,6 @@ Running the tests, this might take a while. Please wait...
4949
5050
EOF
5151

52-
newman run https://raw.githubusercontent.com/e2b-dev/agent-protocol/main/testing_suite/agent_protocol_v0.4.json \
53-
--env-var "url=$URL" \
54-
-r htmlextra \
55-
--reporter-htmlextra-export report.html \
56-
--reporter-htmlextra-title "Agent Protocol Tests"
57-
58-
agent_protocol_tests_results=$?
59-
60-
if [[ "$OSTYPE" == "darwin"* ]]; then
61-
open report.html
62-
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
63-
xdg-open report.html
64-
fi
65-
echo "If the report wasn't generated, please open the report.html file in your browser."
66-
6752
newman run https://raw.githubusercontent.com/e2b-dev/agent-protocol/main/testing_suite/contract_tests.json \
6853
-e https://raw.githubusercontent.com/e2b-dev/agent-protocol/main/testing_suite/contract_tests_env.json \
6954
--env-var "env-openapi-json-url=https://raw.githubusercontent.com/e2b-dev/agent-protocol/main/schemas/openapi.json" \

0 commit comments

Comments
 (0)