add integration tests

This commit is contained in:
Lennart
2025-12-12 14:12:09 +01:00
parent d3e7ede93c
commit 38b5a3812e
15 changed files with 405 additions and 9 deletions

View File

@@ -2,7 +2,10 @@ use crate::{
SqliteStore, addressbook_store::SqliteAddressbookStore, calendar_store::SqliteCalendarStore,
principal_store::SqlitePrincipalStore,
};
use rustical_store::auth::{AuthenticationProvider, Principal, PrincipalType};
use rustical_store::{
Secret,
auth::{AuthenticationProvider, Principal, PrincipalType},
};
use sqlx::SqlitePool;
use tokio::sync::OnceCell;
@@ -31,6 +34,10 @@ async fn get_test_db() -> SqlitePool {
)
.await
.unwrap();
principal_store
.add_app_token("user", "test".to_string(), "pass".to_string())
.await
.unwrap();
db
})