Files
ocis/tests
Roman PerekhodandClaude Sonnet 5.5 f2ff4ad237 ci: [OCSRE-1629] run API tests against an external NATS in JWT mode
The embedded nats service cannot run in JWT mode. Thus no job tested
the JWT credentials end to end. A client that connects without
credentials caused only retries in the background, so the tests could
pass.

Add the scripts in tests/nats-jwt:

- natscreds creates new keys and the NATS config at each run. The
  repository never has a seed.
- start-nats.sh starts a stand-alone NATS server in operator mode.
- verify.sh checks the NATS log for authentication errors, the KV
  buckets, the consumers of the events stream, and the isolation of
  the account.
- startup-check.sh starts oCIS with audit, policies, antivirus, and
  notifications, and requests /readyz of 17 services.

Add two jobs to the acceptance test workflow:

- nats-jwt-tests runs apiAsyncUpload, apiActivities, apiSearch1,
  apiSharingNgShares, apiSharingNgItemLinkShare, and apiNotification.
  The creds are a file or the content.
- nats-jwt-startup-check runs startup-check.sh.

Both jobs are in the needs of all-acceptance-tests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 14:12:05 +01:00
..
2026-02-10 13:56:03 +01:00