v0.16.0
This commit is contained in:
@@ -6,7 +6,7 @@ edition = "2024"
|
||||
[features]
|
||||
#default = ["sqlite", "postgres", "mysql", "rocks", "s3", "redis", "nats", "azure", "foundationdb"]
|
||||
#default = ["sqlite", "postgres", "mysql", "rocks", "s3", "redis", "foundationdb"]
|
||||
default = ["rocks", "sqlite", "redis"]
|
||||
default = ["rocks", "foundationdb"]
|
||||
sqlite = ["store/sqlite", "directory/sqlite"]
|
||||
foundationdb = ["store/foundation", "common/foundation"]
|
||||
postgres = ["store/postgres", "directory/postgres"]
|
||||
|
||||
@@ -50,8 +50,7 @@ services:
|
||||
# FoundationDB
|
||||
# ---------------------------------------------------------------------------
|
||||
foundationdb:
|
||||
image: foundationdb/foundationdb:7.3.43
|
||||
platform: linux/amd64
|
||||
image: foundationdb/foundationdb:7.4.6
|
||||
ports:
|
||||
- "127.0.0.1:4500:4500"
|
||||
environment:
|
||||
@@ -63,8 +62,7 @@ services:
|
||||
- /var/fdb/logs
|
||||
|
||||
fdb-init:
|
||||
image: foundationdb/foundationdb:7.3.43
|
||||
platform: linux/amd64
|
||||
image: foundationdb/foundationdb:7.4.6
|
||||
depends_on:
|
||||
- foundationdb
|
||||
volumes:
|
||||
|
||||
@@ -58,7 +58,7 @@ _995._tcp.pop3.example.org. IN TLSA 2 1 1
|
||||
_dmarc.example.org. IN TXT "v=DMARC1; p=reject; rua=mailto:postmaster@example.org"
|
||||
_mta-sts.example.org. IN TXT "v=STSv1; id=12942536112359691423"
|
||||
_smtp._tls.example.org. IN TXT "v=TLSRPTv1; rua=mailto:postmaster@example.org"
|
||||
_ua-auto-config.example.org. IN TXT "v=UAAC1; a=sha256; d=9ZXAG5NGLnhdx4IQKuA2lLGrVXD3N/UKlo059TEi9zY="
|
||||
_ua-auto-config.example.org. IN TXT "v=UAAC1; a=sha256; d=JJ/h5yIbCwPiASVbENZzCyyzeV/AiFCoBbiH2iTISWs="
|
||||
_validation-persist.example.org. IN TXT "pebble.letsencrypt.org; accounturi=REDACTED"
|
||||
dummy-v1-ed25519._domainkey.example.org. IN TXT "v=DKIM1; k=ed25519; h=sha256; p=REDACTED"
|
||||
dummy-v1-rsa._domainkey.example.org. IN TXT "v=DKIM1; k=rsa; h=sha256; p=REDACTED"
|
||||
|
||||
@@ -14,6 +14,7 @@ use registry::schema::structs::{Account, AccountSettings, Directory};
|
||||
use types::id::Id;
|
||||
|
||||
pub async fn test() {
|
||||
println!("Running directory integration tests...");
|
||||
let test = TestServerBuilder::new("directory_integration_test")
|
||||
.await
|
||||
.with_default_listeners()
|
||||
|
||||
@@ -11,6 +11,7 @@ use registry::{
|
||||
};
|
||||
|
||||
pub async fn test() {
|
||||
println!("Running LDAP directory tests...");
|
||||
let mut config = ldap_test_directory();
|
||||
|
||||
// Test bind authentication
|
||||
@@ -156,6 +157,7 @@ pub fn ldap_test_directory() -> structs::LdapDirectory {
|
||||
.into(),
|
||||
group_class: "groupOfNames".into(),
|
||||
bind_authentication: true,
|
||||
description: "Test LDAP directory".into(),
|
||||
..Default::default()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ use directory::{Account, Credentials, Directory, backend::oidc::OpenIdDirectory}
|
||||
use registry::{schema::structs, types::map::Map};
|
||||
|
||||
pub async fn test() {
|
||||
println!("Running OIDC directory tests...");
|
||||
let config = structs::OidcDirectory {
|
||||
description: "Test OIDC directory".to_string(),
|
||||
issuer_url: "http://localhost:9080/realms/stalwart".to_string(),
|
||||
|
||||
@@ -9,6 +9,7 @@ use registry::schema::structs::{self, SqlAuthStore};
|
||||
use store::{Store, backend::sqlite::SqliteStore};
|
||||
|
||||
pub async fn test() {
|
||||
println!("Running SQL directory tests...");
|
||||
let sql_store = Store::SQLite(SqliteStore::open_memory().unwrap().into());
|
||||
|
||||
// Create test directory
|
||||
|
||||
@@ -12,6 +12,7 @@ use registry::schema::{
|
||||
use types::id::Id;
|
||||
|
||||
pub async fn test() {
|
||||
println!("Running directory synchronization tests...");
|
||||
let test = TestServerBuilder::new("directory_synchronization_test")
|
||||
.await
|
||||
.with_default_listeners()
|
||||
|
||||
Reference in New Issue
Block a user