Skip to content

feat(files): TestFilesIntegration on the API client - #11

Merged
Domantas merged 2 commits into
mainfrom
feat/files-test-integration
Sep 21, 2026
Merged

Domantas merged 2 commits into
mainfrom
feat/files-test-integration

Conversation

@Domantas

Copy link
Copy Markdown
Contributor

Adds api.files.test_files_integration(files_integration_id, **request) — sync (FilesModule) and async (AsyncFilesModule) — for the public API endpoint POST /{version}/files/{filesIntegrationId}/test. It runs a live probe (upload, read, list, delete) against a files integration and answers items with one result per step. Project scope, like the other API Files methods. The Hub method hub.files.test_files_integration (POST /{version}/files/integrations/test) is unchanged.

  • Method: src/norbix_python/api/files.py (hand-added next to the other API Files methods; no generated file or DTO changed — the Python SDK is untyped, **request in, dict out).
  • Tests (fake httpx transport, no server): tests/test_files_routes.py — 5 new tests: route + verb, project-scope headers, parsed items, error status raises ValidationError with responseStatus in details, async variant.
  • Docs: docs/api/files.md (table row + "Testing an integration" section), docs/api/_index.md (files 9 -> 10).

Evidence: uv run pytest — 600 passed (595 on main); make typecheck (mypy) — no issues in 36 files; uv run ruff check . — clean.

Campaign 10b-files slice API-TEST (#39). Gateway: POST /{version}/files/{filesIntegrationId}/test.

🤖 Generated with Claude Code

Domantas and others added 2 commits September 19, 2026 11:54
Adds api.files.test_files_integration (sync and async) for the public API
endpoint POST /{version}/files/{filesIntegrationId}/test, which runs a live
upload/read/list/delete probe against a files integration (#39).

The hub method hub.files.test_files_integration (POST
/{version}/files/integrations/test) is unchanged.

Tests (fake transport): route + verb, project-scope headers, parsed items,
error status raises ValidationError with responseStatus in details, async.
Docs: docs/api/files.md section + table row, docs/api/_index.md count 9 -> 10.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…and tests

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Domantas
Domantas merged commit a89b059 into main Sep 21, 2026
8 checks passed
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