- 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>
40 lines
1005 B
TOML
40 lines
1005 B
TOML
[package]
|
|
name = "calendar-backend"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[[bin]]
|
|
name = "backend"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
calendar-models = { workspace = true }
|
|
|
|
# Backend authentication dependencies
|
|
jsonwebtoken = "9.0"
|
|
tokio = { version = "1.0", features = ["full"] }
|
|
axum = { version = "0.7", features = ["json"] }
|
|
tower = "0.4"
|
|
tower-http = { version = "0.5", features = ["cors"] }
|
|
hyper = { version = "1.0", features = ["full"] }
|
|
|
|
# Shared dependencies
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
uuid = { version = "1.0", features = ["v4", "serde"] }
|
|
anyhow = "1.0"
|
|
|
|
# CalDAV dependencies
|
|
reqwest = { version = "0.11", features = ["json"] }
|
|
ical = "0.7"
|
|
regex = "1.0"
|
|
dotenvy = "0.15"
|
|
base64 = "0.21"
|
|
thiserror = "1.0"
|
|
|
|
[dev-dependencies]
|
|
tokio = { version = "1.0", features = ["macros", "rt"] }
|
|
reqwest = { version = "0.11", features = ["json"] }
|
|
tower = { version = "0.4", features = ["util"] }
|
|
hyper = "1.0" |