()
| 319 | |
| 320 | #[test] |
| 321 | fn device_trust() { |
| 322 | let mut auth = test_auth(); |
| 323 | auth.metadata.insert("device_trusted".into(), "true".into()); |
| 324 | assert!( |
| 325 | evaluate_conditions(&[GrantCondition::RequireDeviceTrust], &auth, "10.0.0.1").is_ok() |
| 326 | ); |
| 327 | } |
| 328 | |
| 329 | #[test] |
| 330 | fn parse_mfa_condition() { |