Use testcontainers for integration tests
This commit is contained in:
@@ -15,6 +15,7 @@ use types::id::Id;
|
||||
|
||||
pub async fn test() {
|
||||
println!("Running directory integration tests...");
|
||||
crate::utils::containers::ensure_openldap().await;
|
||||
let test = TestServerBuilder::new("directory_integration_test")
|
||||
.await
|
||||
.with_default_listeners()
|
||||
|
||||
@@ -12,6 +12,7 @@ use registry::{
|
||||
|
||||
pub async fn test() {
|
||||
println!("Running LDAP directory tests...");
|
||||
crate::utils::containers::ensure_openldap().await;
|
||||
let mut config = ldap_test_directory();
|
||||
|
||||
// Test bind authentication
|
||||
|
||||
@@ -13,6 +13,7 @@ use registry::{schema::structs, types::map::Map};
|
||||
|
||||
pub async fn test() {
|
||||
println!("Running OIDC directory tests...");
|
||||
crate::utils::containers::ensure_keycloak().await;
|
||||
let config = structs::OidcDirectory {
|
||||
description: "Test OIDC directory".to_string(),
|
||||
issuer_url: "http://localhost:9080/realms/stalwart".to_string(),
|
||||
|
||||
Reference in New Issue
Block a user