use rpki::data_model::roa::RoaObject;

#[test]
fn roa_embedded_ee_cert_resources_validate() {
    let der = std::fs::read("tests/fixtures/repository/rpki.cernet.net/repo/cernet/0/AS4538.roa")
        .expect("read ROA fixture");

    let roa = RoaObject::decode_der(&der).expect("decode roa");
    roa.validate_embedded_ee_cert()
        .expect("roa EE cert resources must validate");
}
