tests/integration_inbuxa.rs runs against the 27.1-rc.4 server image, pinned by digest. Its rig starts the server in recovery mode to make a domain and an administrator, then normally on the same volume, where the administrator makes an API key. One test runs a migrate plan that sets up two accounts with import-directory and exports each with that one key: each account's mail lands in its own mailbox and nowhere else, a message filed in two folders arrives once in both, and a final --again pass sends nothing. The other checks that a second export carries over a flag changed at the source, and that Sieve scripts get inbuxa's names. That second check found a bug: export renamed vnd.stalwart.* to vnd.inbuxa.* only when the target listed vnd.inbuxa.* among its sieveExtensions. inbuxa runs them without listing them, as Stalwart does its own, so scripts went into inbuxa unchanged. The target now also counts as inbuxa when its session has urn:inbuxa:jmap.
64 lines
1.3 KiB
Rust
64 lines
1.3 KiB
Rust
/*
|
|
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
|
|
* SPDX-FileCopyrightText: 2026 Coffey Labs LLC <[email protected]>
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
*/
|
|
|
|
#![allow(dead_code, unused_imports)]
|
|
|
|
pub mod baikal;
|
|
pub mod cyrus;
|
|
pub mod data;
|
|
pub mod dav_client;
|
|
pub mod dovecot;
|
|
pub mod error;
|
|
pub mod imap_client;
|
|
pub mod inbuxa;
|
|
pub mod layouts;
|
|
pub mod radicale;
|
|
pub mod sieve_client;
|
|
pub mod stalwart;
|
|
pub mod validate;
|
|
pub mod webdav;
|
|
|
|
pub use error::{ContainerError, ContainerResult};
|
|
|
|
pub const OWNER_LABEL: &str = "art.stalw.inbuxa-migrate.itest";
|
|
|
|
use std::sync::Once;
|
|
|
|
static CRYPTO_INIT: Once = Once::new();
|
|
|
|
pub fn install_crypto_provider() {
|
|
CRYPTO_INIT.call_once(|| {
|
|
let _ = rustls::crypto::aws_lc_rs::default_provider().install_default();
|
|
});
|
|
}
|
|
|
|
#[derive(Debug, Clone)]
|
|
pub struct Endpoint {
|
|
pub host: String,
|
|
pub port: u16,
|
|
}
|
|
|
|
impl Endpoint {
|
|
pub fn new(host: impl Into<String>, port: u16) -> Self {
|
|
Self {
|
|
host: host.into(),
|
|
port,
|
|
}
|
|
}
|
|
|
|
pub fn http_base(&self) -> String {
|
|
format!("http://{}:{}", self.host, self.port)
|
|
}
|
|
}
|
|
|
|
#[derive(Debug, Clone)]
|
|
pub struct Account {
|
|
pub username: String,
|
|
pub password: String,
|
|
pub layout: layouts::Layout,
|
|
}
|