Testing integrations¶
SDK unit tests¶
Run:
AllEndpointsSmokeTest exercises every typed endpoint method against an in-process HTTP server. EndpointCoverageTest verifies that the catalog contains the same 30 HTTP method/path pairs as the pinned OpenAPI file.
Integration test plan¶
Before production use, test against a non-production Okatana organization:
- valid scoped read succeeds;
- missing token returns 401;
- missing scope returns 403;
- a resource outside the credential organization is denied;
- invalid relationships return the documented 404/422 behavior;
- revoking the credential causes immediate 401 responses;
- created and updated resources show the integration actor in audit history;
- expected webhooks arrive if webhooks are enabled for the integration.
Use unique project keys and identifiable test markers so failed test runs can be reconciled and cleaned up.