Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api: agents and agent tasks test cases #68

Merged

Conversation

ashwiniag
Copy link
Member

@ashwiniag ashwiniag commented Dec 26, 2024

closes #67

Introduces

  • test cases for agents
  • test cases for agent tasks

As follows

Agents

POST

Test Case Description Error Handling
CreateAgent_Valid Create a new agent successfully. Verify agent is created with correct details.
CreateAgent_MissingFields Verify error when required fields are missing. not added 🔺 400 Bad Request: Missing fields. Not added 🔺

GET

Test Case Description Error Handling
GetAgent_Valid Fetch details of an existing agent successfully. Verify agent is fetched correctly.
GetAgent_NotFound Fetch details of a non-existent agent. 404 Not Found: Agent not found.
ListAgents_Valid List all existing agents. Verify agents are listed correctly.

PUT

Test Case Description Error Handling
UpdateAgent_Valid Update status of an existing agent. Verify agent status is updated.
UpdateAgent_NotFound Try to update a non-existent agent. 404 Not Found: Agent not found.

DELETE

Test Case Description Error Handling
DeleteAgent_Valid Delete an existing agent. Verify agent is deleted successfully.
DeleteAgent_NotFound Try to delete a non-existent agent. 404 Not Found: Agent not found.

Agents Tasks

POST

Test Case Description Error Handling
CreateAgentTask_Valid Create a new agent task successfully. Verify task is created with correct details.
CreateAgentTask_MissingFields Verify error when required fields are missing. 400 Bad Request: Missing fields.

GET

Test Case Description Error Handling
GetAgentTask_Valid Fetch details of an existing agent task successfully. Verify task is fetched correctly.
GetAgentTask_NotFound Fetch details of a non-existent agent task. 404 Not Found: Task not found.
ListAgentTasks_Valid List all existing agent tasks. Verify tasks are listed correctly.

PUT

Test Case Description Error Handling
UpdateAgentTask_Valid Update status of an existing agent task. Verify task status is updated.
UpdateAgentTask_NotFound Try to update a non-existent agent task. 404 Not Found: Task not found.

DELETE

Test Case Description Error Handling
DeleteAgentTask_Valid Delete an existing agent task. Verify task is deleted successfully.
DeleteAgentTask_NotFound Try to delete a non-existent agent task. 404 Not Found: Task not found.

@ashwiniag ashwiniag changed the base branch from main to api-agents-and-agent-tasks December 26, 2024 15:44
@ashwiniag ashwiniag merged commit 567a0f9 into api-agents-and-agent-tasks Dec 26, 2024
2 checks passed
ashwiniag added a commit that referenced this pull request Dec 26, 2024
* adds agents and agenttasks schema

* adds CRUD operations for agents

* adds CRUD operations for agenttasks

* adds routes

* adds test cases for agents and agent tasks (#68)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant