Skip to content

Testing integrations

SDK unit tests

Run:

mvn test

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:

  1. valid scoped read succeeds;
  2. missing token returns 401;
  3. missing scope returns 403;
  4. a resource outside the credential organization is denied;
  5. invalid relationships return the documented 404/422 behavior;
  6. revoking the credential causes immediate 401 responses;
  7. created and updated resources show the integration actor in audit history;
  8. 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.