File: test_hosted_agents.py

package info (click to toggle)
python-azure 20251118%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 783,356 kB
  • sloc: python: 6,474,533; ansic: 804; javascript: 287; sh: 205; makefile: 198; xml: 109
file content (44 lines) | stat: -rw-r--r-- 1,909 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# pylint: disable=too-many-lines,line-too-long,useless-suppression
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
# cSpell:disable

from test_base import TestBase  # , servicePreparer

# from devtools_testutils import recorded_by_proxy
# from azure.ai.projects.models import AgentReference, PromptAgentDefinition


class TestHostedAgents(TestBase):

    # @servicePreparer()
    # @recorded_by_proxy
    def test_hosted_agent(self, **kwargs):
        """
        Test Hosted Agents and all container operations.

        Routes used in this test:

        Action REST API Route                                                              Client Method
        ------+---------------------------------------------------------------------------+-----------------------------------

        # Setup:

        # Test focus:
        GET    /agents/{agent_name}/operations                                              list_container_operations
        GET    /agents/{agent_name}/operations/{operation_id}                               retrieve_container_operation
        GET    /agents/{agent_name}/versions/{agent_version}/containers/default             retrieve_container
        GET    /agents/{agent_name}/versions/{agent_version}/containers/default/operations  list_version_container_operations
        POST   /agents/{agent_name}/versions/{agent_version}/containers/default:start       start_container
        POST   /agents/{agent_name}/versions/{agent_version}/containers/default:stop        stop_container
        POST   /agents/{agent_name}/versions/{agent_version}/containers/default:update      update_container
        POST   /agents/{agent_name}/versions/{agent_version}/containers/default:delete      delete_container

        # Teardown:

        """

        # TODO: Add tests!
        pass