Skip to content

Commit

Permalink
Placeholder for test case for referenced_assertion not found in C2PA …
Browse files Browse the repository at this point in the history
…claim V2's assertions list
  • Loading branch information
scouten-adobe committed Feb 28, 2025
1 parent 1378f7b commit 63cacdb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cawg_identity/src/tests/identity_assertion/validation_method.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,3 +216,20 @@ async fn assertion_not_in_claim_v1() {
"C2PA Test Signing Cert"
);
}

/// For each entry in `signer_payload.referenced_assertions`, the validator MUST
/// verify that the same entry exists in either the `created_assertions` or
/// `gathered_assertions` entry of the C2PA claim. (For version 1 claims, the
/// entry must appear in the `assertions` entry.) The
/// `cawg.identity.assertion.mismatch` error code SHALL be used to report
/// violations of this rule.
#[cfg_attr(not(target_arch = "wasm32"), tokio::test)]
#[cfg_attr(
all(target_arch = "wasm32", not(target_os = "wasi")),
wasm_bindgen_test
)]
#[cfg_attr(target_os = "wasi", wstd::test)]
#[ignore]
async fn assertion_not_in_claim_v2() {
todo!("Generate a suitable V2 asset with an extra assertion");
}

0 comments on commit 63cacdb

Please sign in to comment.