mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
Add support for not filters
This commit is contained in:
parent
cc14125640
commit
a1ac6d1cae
|
@ -312,7 +312,17 @@ mod tests {
|
||||||
"uidNumber": ["1000"]
|
"uidNumber": ["1000"]
|
||||||
}
|
}
|
||||||
}"#).unwrap();
|
}"#).unwrap();
|
||||||
assert!(false);
|
|
||||||
|
let f_t1a = Filter::Not(Box::new(
|
||||||
|
Filter::Eq(String::from("userid"), String::from("alice")),
|
||||||
|
));
|
||||||
|
assert!(f_t1a.entry_match_no_index(&e1));
|
||||||
|
|
||||||
|
let f_t2a = Filter::Not(Box::new(
|
||||||
|
Filter::Eq(String::from("userid"), String::from("william")),
|
||||||
|
));
|
||||||
|
assert!(!f_t2a.entry_match_no_index(&e1));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Reference in a new issue