use rpki::data_model::aspa::AspaObject;

#[test]
fn aspa_embedded_ee_cert_resources_validate() {
    let der = std::fs::read(
        "tests/fixtures/repository/chloe.sobornost.net/rpki/RIPE-nljobsnijders/5m80fwYws_3FiFD7JiQjAqZ1RYQ.asa",
    )
    .expect("read ASPA fixture");

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