mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 17:52:24 +00:00
add integration tests
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user