Testing integrations¶
Tests cover URL normalization, endpoint mappings, response parsing, paginators, request validation, model hydration, exception mapping, and retries.
Run the package suite¶
Static analysis:
OpenAPI coverage test¶
OpenApiCoverageTest parses resources/openapi.yaml and checks every HTTP operation against EndpointCatalog. Modifying the OpenAPI specification causes test failures until the SDK mapping updates.
Application integration tests¶
Prior to deploying a credential, test:
- a valid scoped read;
- invalid or missing credentials;
- missing-scope responses;
- organization boundary checks;
- relationship validation errors;
- credential revocation;
- a write and its audit actor;
- pagination behavior.
Mocking the SDK¶
Mock a repository or gateway interface around the SDK rather than mocking SDK service methods:
The production implementation uses OkatanaClient. Domain tests use an in-memory fake.