aboutsummaryrefslogtreecommitdiff
path: root/src/test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test.rs')
-rw-r--r--src/test.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test.rs b/src/test.rs
index e6e1bbc..a1d961b 100644
--- a/src/test.rs
+++ b/src/test.rs
@@ -29,8 +29,6 @@ mod core {
password_hash::{PasswordHash, PasswordHasher, PasswordVerifier, SaltString},
};
use redis::AsyncCommands;
- #[cfg(feature = "pam")]
- use std::borrow::BorrowMut;
use std::io::{Read, Write};
use std::path::Path;
use std::path::PathBuf;
@@ -366,19 +364,4 @@ mod core {
.block_on(clear_redis_setting())
.unwrap();
}
-
- #[cfg(feature = "pam")]
- #[ignore]
- #[test]
- fn test_pam() {
- let service = option_env!("pam_service").unwrap_or("system-auth");
- let user = option_env!("pam_user").unwrap_or("user");
- let password = option_env!("pam_password").unwrap_or("password");
-
- let mut auth = pam::Client::with_password(service).unwrap();
- auth.conversation_mut()
- .borrow_mut()
- .set_credentials(user, password);
- assert!(auth.authenticate().is_ok() && auth.open_session().is_ok())
- }
}