Skip to content

Add listing of sanatized integrations. - #261

Open
intomg1990 wants to merge 1 commit into
SAP:mainfrom
intomg1990:feat/AFSDK-4288
Open

Add listing of sanatized integrations.#261
intomg1990 wants to merge 1 commit into
SAP:mainfrom
intomg1990:feat/AFSDK-4288

Conversation

@intomg1990

Copy link
Copy Markdown

Description

Adds a list_active_integrations(tenant_subdomain) method to AgentGatewayClient that returns all currently connected backend systems for a given tenant. Each entry contains the partner's Global Tenant ID, application namespace (system type), and the ORD ID of the integration dependency it fulfils.

The method reads Destination Service instance fragments written during Formation assignment, filtering by sap-managed-runtime-type label values agw.mcp.server and agw.a2a.server. Integration metadata (GTID, ORD ID, system type) is extracted from the fragment URL.

Related Issue

Closes #

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Code refactoring
  • Dependency update

How to Test

  1. Instantiate an AgentGatewayClient with a tenant_subdomain that has active Formation assignments
  2. Call client.list_active_integrations()
  3. Expected result: a list of dicts, each with global_tenant_id, system_type, and integration_dependency; empty list if no active integrations exist

Unit tests can be run locally with:

uv run pytest tests/agentgateway/unit/test_fragments.py -v

Checklist

  • I have read the Contributing Guidelines
  • I have verified that my changes solve the issue
  • I have added/updated automated tests to cover my changes
  • All tests pass locally
  • I have verified that my code follows the Code Guidelines
  • I have updated documentation (if applicable)
  • I have added type hints for all public APIs
  • My code does not contain sensitive information (credentials, tokens, etc.)
  • I have followed Conventional Commits for commit messages

Breaking Changes

None.

Additional Notes

None.

@intomg1990
intomg1990 requested a review from a team as a code owner August 7, 2026 19:28
@cla-assistant

cla-assistant Bot commented Aug 7, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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