Skip to content

Commit 8d2ab97

Browse files
authored
fix: Update tests to continue passing when verify-after-sign setting is ON (#250)
* fix: Update tests to pass vertify after sign * fix: Update docs
1 parent 75b76cf commit 8d2ab97

4 files changed

Lines changed: 302 additions & 20 deletions

File tree

‎docs/selective-manifests.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,9 @@ auto signing_builder = c2pa::Builder(context, R"({
539539
"label": "c2pa.actions.v2",
540540
"data": {
541541
"actions": [{
542+
"action": "c2pa.created",
543+
"digitalSourceType": "http://c2pa.org/digitalsourcetype/empty"
544+
}, {
542545
"action": "c2pa.placed",
543546
"parameters": {
544547
"ingredientIds": ["catalog:ingredient-A", "catalog:ingredient-B", "catalog:ingredient-C"]

‎docs/working-stores.md‎

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,9 @@ auto signing_manifest = R"({
545545
"label": "c2pa.actions.v2",
546546
"data": {
547547
"actions": [{
548+
"action": "c2pa.created",
549+
"digitalSourceType": "http://c2pa.org/digitalsourcetype/empty"
550+
}, {
548551
"action": "c2pa.placed",
549552
"parameters": {
550553
"ingredientIds": ["my-ingredient"]
@@ -595,6 +598,9 @@ auto manifest_json = R"({
595598
"label": "c2pa.actions.v2",
596599
"data": {
597600
"actions": [{
601+
"action": "c2pa.created",
602+
"digitalSourceType": "http://c2pa.org/digitalsourcetype/empty"
603+
}, {
598604
"action": "c2pa.placed",
599605
"parameters": {
600606
"ingredientIds": ["my-ingredient"]
@@ -674,6 +680,9 @@ auto manifest_json = R"({
674680
"label": "c2pa.actions.v2",
675681
"data": {
676682
"actions": [{
683+
"action": "c2pa.created",
684+
"digitalSourceType": "http://c2pa.org/digitalsourcetype/empty"
685+
}, {
677686
"action": "c2pa.placed",
678687
"parameters": {
679688
"ingredientIds": ["base-layer", "overlay-layer"]
@@ -1057,7 +1066,9 @@ auto signing_manifest = R"({
10571066
"claim_generator_info": [{"name": "app", "version": "1.0"}],
10581067
"assertions": [{
10591068
"label": "c2pa.actions.v2",
1060-
"data": {"actions": [{"action": "c2pa.placed",
1069+
"data": {"actions": [
1070+
{"action": "c2pa.created", "digitalSourceType": "http://c2pa.org/digitalsourcetype/empty"},
1071+
{"action": "c2pa.placed",
10611072
"parameters": {"ingredientIds": ["catalog:photo-A"]}}]}
10621073
}]
10631074
})";
@@ -1094,7 +1105,9 @@ auto signing_manifest = R"({
10941105
"claim_generator_info": [{"name": "app", "version": "1.0"}],
10951106
"assertions": [{
10961107
"label": "c2pa.actions.v2",
1097-
"data": {"actions": [{"action": "c2pa.placed",
1108+
"data": {"actions": [
1109+
{"action": "c2pa.created", "digitalSourceType": "http://c2pa.org/digitalsourcetype/empty"},
1110+
{"action": "c2pa.placed",
10981111
"parameters": {"ingredientIds": ["my-photo"]}}]}
10991112
}]
11001113
})";
@@ -1133,7 +1146,9 @@ auto signing_manifest = R"({
11331146
"claim_generator_info": [{"name": "app", "version": "1.0"}],
11341147
"assertions": [{
11351148
"label": "c2pa.actions.v2",
1136-
"data": {"actions": [{"action": "c2pa.placed",
1149+
"data": {"actions": [
1150+
{"action": "c2pa.created", "digitalSourceType": "http://c2pa.org/digitalsourcetype/empty"},
1151+
{"action": "c2pa.placed",
11371152
"parameters": {"ingredientIds": ["my-photo"]}}]}
11381153
}]
11391154
})";

0 commit comments

Comments
 (0)