/// Test that if no roles are set and no default policy is set,
/// permit all is used.
Test that if no roles are set and no default policy is set,
permit all is used.
Test that if no roles are set and no default policy is set permit all is used .
fn allow_all_with_no_permissions() {
        let batch = create_batches(1, 1, &*new_signer())
            .into_iter()
            .nth(0)
            .unwrap();
        let permission_verifier = PermissionVerifier::new(Box::new(Arc::new(Mutex::new(
            TestIdentitySource::default(),
        ))));
        assert!(permission_verifier
            .is_batch_signer_authorized(&batch)
            .unwrap());
    }
fn allow_all_with_no_permissions ( ) { let batch = create_batches ( 1 , 1 , & * new_signer ( ) ) . into_iter ( ) . nth ( 0 ) . unwrap ( ) ; let permission_verifier = PermissionVerifier :: new ( Box :: new ( Arc :: new ( Mutex :: new ( TestIdentitySource :: default ( ) , ) ) ) ) ; assert ! ( permission_verifier is_batch_signer_authorized ( batch ) unwrap ( ) ) ; }
Test that if no roles are set and no default policy is set,
permit all is used.
Test that if no roles are set and no default policy is set permit all is used .