Skip to content

Added sync and async api tests for Agent feature#26

Open
BhavaniKondra wants to merge 2 commits intooracle:mainfrom
BhavaniKondra:Agent-Tests
Open

Added sync and async api tests for Agent feature#26
BhavaniKondra wants to merge 2 commits intooracle:mainfrom
BhavaniKondra:Agent-Tests

Conversation

@BhavaniKondra
Copy link
Member

Description

This PR adds test coverage for the Agent feature by implementing both synchronous and asynchronous API tests.

The following areas are covered:

  • Agent APIs
  • Tools APIs
  • Tasks APIs
  • Teams APIs
  • End-to-end agent execution scenarios

These tests validate that both sync and async execution paths behave consistently and correctly.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

The following test suites were executed locally to verify the functionality:

  • tests/agents/test_3001_tools.py
  • tests/agents/test_3101_tasks.py
  • tests/agents/test_3201_agents.py
  • tests/agents/test_3301_teams.py
  • tests/agents/test_3800_agente2e.py

Both synchronous and asynchronous execution flows were validated.
Logs were verified to ensure successful execution and correct responses from APIs.

Test Configuration:

  • Firmware version:
  • Hardware:
  • Toolchain:
  • SDK:

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Mar 9, 2026
@BhavaniKondra
Copy link
Member Author

Coverage Added:
Included tests for asynchronous and synchronous execution of Tools, Tasks, Agents and Teams APIs.
Added an end-to-end testcase for Agent feature.

# MAIN TEST
# ----------------------------------------------------------------------

def test_agent_end_to_end(profile_attributes):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit Pick: Test case missing number ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

Copy link
Member

@AKSHAY-058 AKSHAY-058 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks okay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants