Add comprehensive integration tests for all API endpoints

- Add 9 integration tests covering all HTTP endpoints
- Test authentication flow: login, verify, user info
- Test calendar operations: create, delete, list events
- Test event CRUD: create, update, delete, refresh
- Add TestServer utility for automated server setup
- Test both success and error scenarios (401, 400, 404)
- Integration with real CalDAV server using .env credentials
- Fix test module visibility by making handlers public
- Move misplaced unit tests into proper test module
- All tests passing: 7 unit + 9 integration = 16 total

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Connor Johnstone
2025-08-30 12:17:09 -04:00
parent a6d72ce37f
commit 5cb77235da
4 changed files with 379 additions and 15 deletions

View File

@@ -6,11 +6,11 @@ use axum::{
use tower_http::cors::{CorsLayer, Any};
use std::sync::Arc;
mod auth;
mod models;
mod handlers;
mod calendar;
mod config;
pub mod auth;
pub mod models;
pub mod handlers;
pub mod calendar;
pub mod config;
use auth::AuthService;