mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-17 14:58:36 +00:00
drop bogus tests
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
02acce2dd8
commit
40e232f4d6
@ -112,19 +112,6 @@ pub fn sendmail(
|
||||
mod test {
|
||||
use crate::tools::email::sendmail;
|
||||
|
||||
#[test]
|
||||
fn send_email_to_root_localhost() {
|
||||
let result = sendmail(
|
||||
&["root@localhost"],
|
||||
"Subject1",
|
||||
Some("TEXT"),
|
||||
Some("<b>HTML</b>"),
|
||||
Some("root@localhost"),
|
||||
Some("test1"),
|
||||
);
|
||||
assert!(result.is_ok());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn email_without_recipients() {
|
||||
let result = sendmail(
|
||||
@ -137,17 +124,4 @@ mod test {
|
||||
);
|
||||
assert!(result.is_err());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn email_with_non_existant_recipient() {
|
||||
let result = sendmail(
|
||||
&["some-nonexistant-proxmox-user"],
|
||||
"Subject3",
|
||||
None,
|
||||
Some("<b>HTML</b>"),
|
||||
None,
|
||||
Some("test1"),
|
||||
);
|
||||
assert!(result.is_ok());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user