Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env_integration_tests.example
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ CLOUD_SDK_CFG_ADMS_DEFAULT_URL=https://your-tenant.accounts.ondemand.com
CLOUD_SDK_CFG_ADMS_DEFAULT_URI=https://your-adm-host.cfapps.eu20.hana.ondemand.com
CLOUD_SDK_CFG_ADMS_DEFAULT_RESOURCE=urn:sap:identity:application:provider:name:your-adm-app-name

APPFND_CONHOS_LANDSCAPE=your-landscape-here
TENANT_SUBDOMAIN=your-tenant-subdomain-here
CLOUD_SDK_CFG_AGW_DEFAULT_TENANT_SUBDOMAIN=your-tenant-subdomain-here
CLOUD_SDK_CFG_AGW_DEFAULT_LANDSCAPE=your-landscape-here
AGW_USER_TOKEN=your-user-jwt-here

# AI Core — required for Traceloop/LangGraph integration tests
Expand Down
8 changes: 6 additions & 2 deletions tests/agentgateway/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@ def agw_client() -> AgentGatewayClient:
"""Create an AgentGatewayClient from environment variables."""
_setup_cloud_mode()

tenant_subdomain = os.environ.get("TENANT_SUBDOMAIN")
tenant_subdomain = os.environ.get("CLOUD_SDK_CFG_AGW_DEFAULT_TENANT_SUBDOMAIN")
if not tenant_subdomain:
pytest.fail("TENANT_SUBDOMAIN environment variable is not set")
pytest.fail("CLOUD_SDK_CFG_AGW_DEFAULT_TENANT_SUBDOMAIN environment variable is not set")

landscape = os.environ.get("CLOUD_SDK_CFG_AGW_DEFAULT_LANDSCAPE")
if landscape:
os.environ.setdefault("APPFND_CONHOS_LANDSCAPE", landscape)

try:
return create_client(tenant_subdomain=tenant_subdomain)
Expand Down
4 changes: 2 additions & 2 deletions tests/agentgateway/integration/test_agw_bdd.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

Run against a live BTP tenant:

APPFND_CONHOS_LANDSCAPE=<landscape> \\
TENANT_SUBDOMAIN=<tenant-subdomain> \\
CLOUD_SDK_CFG_AGW_DEFAULT_TENANT_SUBDOMAIN=<tenant-subdomain> \\
CLOUD_SDK_CFG_AGW_DEFAULT_LANDSCAPE=<landscape> \\
CLOUD_SDK_CFG_DESTINATION_DEFAULT_CLIENTID=... \\
CLOUD_SDK_CFG_DESTINATION_DEFAULT_CLIENTSECRET=... \\
CLOUD_SDK_CFG_DESTINATION_DEFAULT_URL=... \\
Expand Down
Loading