Playwright API integration tests for OpenCloud CalDAV (WebDAV extension for calendars) with support for Keycloak authentication and Radicale calendar server.
This test suite provides comprehensive integration testing for calendar event CRUD operations via the WebDAV protocol, supporting multiple authentication backends:
- OpenCloud native authentication
- Keycloak SSO integration
- Radicale CalDAV server
- Node.js and pnpm installed
- OpenCloud instance running
- (Optional) Keycloak and Radicale services
For detailed setup instructions, visit the OpenCloud Compose.
pnpm installConfigure the test suite using environment variables:
| Variable | Description | Default |
|---|---|---|
OC_BASE_URL |
OpenCloud instance URL | https://cloud.opencloud.test |
USE_KEYCLOAK |
Enable Keycloak authentication | false |
KC_BASE_URL |
Keycloak instance URL | https://keycloak.opencloud.test |
USE_KEYCLOAK=true KC_BASE_URL=https://keycloak.opencloud.test pnpm exec playwright test tests/caldav.event.crud.spec.ts --project=apipnpm exec playwright test tests/caldav.event.crud.spec.ts --project=api