mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-22 23:07:56 +01:00
Make compile with tests
This commit is contained in:
parent
2027d9696e
commit
4339537ec9
@ -357,6 +357,7 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn permission_ord_test() {
|
fn permission_ord_test() {
|
||||||
assert!(PermissionBuf::from_string("bffh.perm") > PermissionBuf::from_string("bffh.perm.sub"));
|
assert!(PermissionBuf::from_string("bffh.perm".to_string())
|
||||||
|
> PermissionBuf::from_string("bffh.perm.sub".to_string()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -68,11 +68,11 @@ mod tests {
|
|||||||
let location = "testloc".to_string();
|
let location = "testloc".to_string();
|
||||||
|
|
||||||
assert_eq!("testuser",
|
assert_eq!("testuser",
|
||||||
format!("{}", UserIdentifier::new(uid, None, None)));
|
format!("{}", UserIdentifier::new(uid.clone(), None, None)));
|
||||||
assert_eq!("testuser+testsuid",
|
assert_eq!("testuser+testsuid",
|
||||||
format!("{}", UserIdentifier::new(uid, Some(suid), None)));
|
format!("{}", UserIdentifier::new(uid.clone(), Some(suid.clone()), None)));
|
||||||
assert_eq!("testuser+testsuid",
|
assert_eq!("testuser+testsuid",
|
||||||
format!("{}", UserIdentifier::new(uid, Some(suid), None)));
|
format!("{}", UserIdentifier::new(uid.clone(), Some(suid.clone()), None)));
|
||||||
assert_eq!("testuser+testsuid@testloc",
|
assert_eq!("testuser+testsuid@testloc",
|
||||||
format!("{}", UserIdentifier::new(uid, Some(suid), Some(location))));
|
format!("{}", UserIdentifier::new(uid, Some(suid), Some(location))));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user