#![cfg(all(feature = "server-aws", target_os = "linux"))]
use taskchampion::{server::AwsCredentials, ServerConfig};
mod tls_utils;
#[tokio::test]
async fn aws_tls() -> anyhow::Result<()> {
tls_utils::reset_seen_ssl_file();
let _ = ServerConfig::Aws {
region: Some("us-east-2".into()),
bucket: "gotheneburgbitfactory".into(),
credentials: AwsCredentials::AccessKey {
access_key_id: "not".into(),
secret_access_key: "valid".into(),
},
endpoint_url: None,
force_path_style: false,
encryption_secret: b"abc".into(),
}
.into_server()
.await;
tls_utils::assert_expected_seen_ssl_file();
Ok(())
}