@arcforges/contract-fixtures 1.0.0-ci.84.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,875 @@
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ // Generated by eng/generate_fixtures.py from fixtures/public. Do not edit.
3
+ export const publicFixtures = {
4
+ "hello.json": {
5
+ "cases": [
6
+ {
7
+ "name": "World",
8
+ "message": "Hello, World!"
9
+ },
10
+ {
11
+ "name": "\u4e16\u754c \ud83c\udf0d",
12
+ "message": "Hello, \u4e16\u754c \ud83c\udf0d!"
13
+ },
14
+ {
15
+ "name": " World ",
16
+ "message": "Hello, World !"
17
+ }
18
+ ],
19
+ "emptyNameStatus": "INVALID_ARGUMENT"
20
+ },
21
+ "wp03-00.json": {
22
+ "schemaVersion": "wp03-00-fixtures.v1",
23
+ "license": "Apache-2.0",
24
+ "cases": [
25
+ {
26
+ "id": "Id-valid",
27
+ "target": "arcforges.foundation.v1.Id",
28
+ "valid": true,
29
+ "value": {
30
+ "value": "ABEiM0RVZneImaq7zN3u_w"
31
+ }
32
+ },
33
+ {
34
+ "id": "Revision-valid",
35
+ "target": "arcforges.foundation.v1.Revision",
36
+ "valid": true,
37
+ "value": {
38
+ "value": "1"
39
+ }
40
+ },
41
+ {
42
+ "id": "LocalNotesVersion-valid",
43
+ "target": "arcforges.foundation.v1.LocalNotesVersion",
44
+ "valid": true,
45
+ "value": {
46
+ "ackedRev": {
47
+ "value": "0"
48
+ },
49
+ "headLocalSeq": "18446744073709551615"
50
+ }
51
+ },
52
+ {
53
+ "id": "NativeContentRev-valid",
54
+ "target": "arcforges.foundation.v1.NativeContentRev",
55
+ "valid": true,
56
+ "value": {
57
+ "value": "0"
58
+ }
59
+ },
60
+ {
61
+ "id": "Instant-valid",
62
+ "target": "arcforges.foundation.v1.Instant",
63
+ "valid": true,
64
+ "value": {
65
+ "unixSeconds": "0",
66
+ "nanos": 0
67
+ }
68
+ },
69
+ {
70
+ "id": "Decimal-valid",
71
+ "target": "arcforges.foundation.v1.Decimal",
72
+ "valid": true,
73
+ "value": {
74
+ "value": "0.000000001"
75
+ }
76
+ },
77
+ {
78
+ "id": "AggregateRef-valid",
79
+ "target": "arcforges.foundation.v1.AggregateRef",
80
+ "valid": true,
81
+ "value": {
82
+ "kind": "notes.document",
83
+ "id": {
84
+ "value": "ABEiM0RVZneImaq7zN3u_w"
85
+ }
86
+ }
87
+ },
88
+ {
89
+ "id": "VersionedRef-valid",
90
+ "target": "arcforges.foundation.v1.VersionedRef",
91
+ "valid": true,
92
+ "value": {
93
+ "root": {
94
+ "kind": "notes.document",
95
+ "id": {
96
+ "value": "ABEiM0RVZneImaq7zN3u_w"
97
+ }
98
+ },
99
+ "revision": {
100
+ "value": "1"
101
+ }
102
+ }
103
+ },
104
+ {
105
+ "id": "Receipt-valid",
106
+ "target": "arcforges.foundation.v1.Receipt",
107
+ "valid": true,
108
+ "value": {
109
+ "commandId": {
110
+ "value": "ABEiM0RVZneImaq7zN3u_w"
111
+ },
112
+ "effect": 2
113
+ }
114
+ },
115
+ {
116
+ "id": "ApplicationScope-valid",
117
+ "target": "arcforges.foundation.v1.ApplicationScope",
118
+ "valid": true,
119
+ "value": {
120
+ "productId": "arcnotes"
121
+ }
122
+ },
123
+ {
124
+ "id": "RequestMeta-valid",
125
+ "target": "arcforges.foundation.v1.RequestMeta",
126
+ "valid": true,
127
+ "value": {
128
+ "correlationId": {
129
+ "value": "ABEiM0RVZneImaq7zN3u_w"
130
+ }
131
+ }
132
+ },
133
+ {
134
+ "id": "ResponseMeta-valid",
135
+ "target": "arcforges.foundation.v1.ResponseMeta",
136
+ "valid": true,
137
+ "value": {
138
+ "correlationId": {
139
+ "value": "ABEiM0RVZneImaq7zN3u_w"
140
+ }
141
+ }
142
+ },
143
+ {
144
+ "id": "ArcError-valid",
145
+ "target": "arcforges.foundation.v1.ArcError",
146
+ "valid": true,
147
+ "value": {
148
+ "code": "future.error",
149
+ "category": 1,
150
+ "messageKey": "validation.invalid",
151
+ "retry": {
152
+ "mode": 1
153
+ },
154
+ "effect": 1,
155
+ "correlationId": {
156
+ "value": "ABEiM0RVZneImaq7zN3u_w"
157
+ }
158
+ }
159
+ },
160
+ {
161
+ "id": "RetryAdvice-valid",
162
+ "target": "arcforges.foundation.v1.RetryAdvice",
163
+ "valid": true,
164
+ "value": {
165
+ "mode": 1
166
+ }
167
+ },
168
+ {
169
+ "id": "ErrorDetails-valid",
170
+ "target": "arcforges.foundation.v1.ErrorDetails",
171
+ "valid": true,
172
+ "value": {
173
+ "state": {
174
+ "state": "unavailable",
175
+ "reason": "future.reason"
176
+ }
177
+ }
178
+ },
179
+ {
180
+ "id": "RevisionConflict-valid",
181
+ "target": "arcforges.foundation.v1.RevisionConflict",
182
+ "valid": true,
183
+ "value": {}
184
+ },
185
+ {
186
+ "id": "LimitFailure-valid",
187
+ "target": "arcforges.foundation.v1.LimitFailure",
188
+ "valid": true,
189
+ "value": {
190
+ "limitName": "storage"
191
+ }
192
+ },
193
+ {
194
+ "id": "VersionFailure-valid",
195
+ "target": "arcforges.foundation.v1.VersionFailure",
196
+ "valid": true,
197
+ "value": {
198
+ "minReadable": "1",
199
+ "minWritable": "1",
200
+ "received": "1"
201
+ }
202
+ },
203
+ {
204
+ "id": "StateFailure-valid",
205
+ "target": "arcforges.foundation.v1.StateFailure",
206
+ "valid": true,
207
+ "value": {
208
+ "state": "unavailable",
209
+ "reason": "future.reason"
210
+ }
211
+ },
212
+ {
213
+ "id": "Id-zero",
214
+ "target": "arcforges.foundation.v1.Id",
215
+ "valid": false,
216
+ "value": {
217
+ "value": "AAAAAAAAAAAAAAAAAAAAAA"
218
+ }
219
+ },
220
+ {
221
+ "id": "Id-missing",
222
+ "target": "arcforges.foundation.v1.Id",
223
+ "valid": false,
224
+ "value": {}
225
+ },
226
+ {
227
+ "id": "Revision-negative",
228
+ "target": "arcforges.foundation.v1.Revision",
229
+ "valid": false,
230
+ "value": {
231
+ "value": "-1"
232
+ }
233
+ },
234
+ {
235
+ "id": "LocalNotesVersion-missing-token",
236
+ "target": "arcforges.foundation.v1.LocalNotesVersion",
237
+ "valid": false,
238
+ "value": {
239
+ "headLocalSeq": "0"
240
+ }
241
+ },
242
+ {
243
+ "id": "NativeContentRev-overflow",
244
+ "target": "arcforges.foundation.v1.NativeContentRev",
245
+ "valid": false,
246
+ "value": {
247
+ "value": "18446744073709551616"
248
+ }
249
+ },
250
+ {
251
+ "id": "Instant-nanos-overflow",
252
+ "target": "arcforges.foundation.v1.Instant",
253
+ "valid": false,
254
+ "value": {
255
+ "unixSeconds": "0",
256
+ "nanos": 1000000000
257
+ }
258
+ },
259
+ {
260
+ "id": "Decimal-exponent",
261
+ "target": "arcforges.foundation.v1.Decimal",
262
+ "valid": false,
263
+ "value": {
264
+ "value": "1e3"
265
+ }
266
+ },
267
+ {
268
+ "id": "Decimal-too-precise",
269
+ "target": "arcforges.foundation.v1.Decimal",
270
+ "valid": false,
271
+ "value": {
272
+ "value": "0.0000000001"
273
+ }
274
+ },
275
+ {
276
+ "id": "AggregateRef-missing-id",
277
+ "target": "arcforges.foundation.v1.AggregateRef",
278
+ "valid": false,
279
+ "value": {
280
+ "kind": "notes.document"
281
+ }
282
+ },
283
+ {
284
+ "id": "VersionedRef-zero-committed",
285
+ "target": "arcforges.foundation.v1.VersionedRef",
286
+ "valid": false,
287
+ "value": {
288
+ "root": {
289
+ "kind": "notes.document",
290
+ "id": {
291
+ "value": "ABEiM0RVZneImaq7zN3u_w"
292
+ }
293
+ },
294
+ "revision": {
295
+ "value": "0"
296
+ }
297
+ }
298
+ },
299
+ {
300
+ "id": "Receipt-unspecified-effect",
301
+ "target": "arcforges.foundation.v1.Receipt",
302
+ "valid": false,
303
+ "value": {
304
+ "commandId": {
305
+ "value": "ABEiM0RVZneImaq7zN3u_w"
306
+ },
307
+ "effect": 0
308
+ }
309
+ },
310
+ {
311
+ "id": "ApplicationScope-retired-product",
312
+ "target": "arcforges.foundation.v1.ApplicationScope",
313
+ "valid": false,
314
+ "value": {
315
+ "productId": "arcchat"
316
+ }
317
+ },
318
+ {
319
+ "id": "RequestMeta-two-revisions",
320
+ "target": "arcforges.foundation.v1.RequestMeta",
321
+ "valid": false,
322
+ "value": {
323
+ "correlationId": {
324
+ "value": "ABEiM0RVZneImaq7zN3u_w"
325
+ },
326
+ "expectedRev": {
327
+ "value": "1"
328
+ },
329
+ "expectedNative": {
330
+ "value": "0"
331
+ }
332
+ }
333
+ },
334
+ {
335
+ "id": "ResponseMeta-missing-correlation",
336
+ "target": "arcforges.foundation.v1.ResponseMeta",
337
+ "valid": false,
338
+ "value": {}
339
+ },
340
+ {
341
+ "id": "ArcError-missing-retry",
342
+ "target": "arcforges.foundation.v1.ArcError",
343
+ "valid": false,
344
+ "value": {
345
+ "code": "future.error",
346
+ "category": 1,
347
+ "messageKey": "validation.invalid",
348
+ "effect": 1,
349
+ "correlationId": {
350
+ "value": "ABEiM0RVZneImaq7zN3u_w"
351
+ }
352
+ }
353
+ },
354
+ {
355
+ "id": "RetryAdvice-unspecified",
356
+ "target": "arcforges.foundation.v1.RetryAdvice",
357
+ "valid": false,
358
+ "value": {
359
+ "mode": 0
360
+ }
361
+ },
362
+ {
363
+ "id": "ErrorDetails-absent",
364
+ "target": "arcforges.foundation.v1.ErrorDetails",
365
+ "valid": false,
366
+ "value": {}
367
+ },
368
+ {
369
+ "id": "LimitFailure-invalid-key",
370
+ "target": "arcforges.foundation.v1.LimitFailure",
371
+ "valid": false,
372
+ "value": {
373
+ "limitName": "bad key"
374
+ }
375
+ },
376
+ {
377
+ "id": "VersionFailure-missing-received",
378
+ "target": "arcforges.foundation.v1.VersionFailure",
379
+ "valid": false,
380
+ "value": {
381
+ "minReadable": "1",
382
+ "minWritable": "1"
383
+ }
384
+ },
385
+ {
386
+ "id": "StateFailure-missing-reason",
387
+ "target": "arcforges.foundation.v1.StateFailure",
388
+ "valid": false,
389
+ "value": {
390
+ "state": "unavailable"
391
+ }
392
+ },
393
+ {
394
+ "id": "event-zero-present",
395
+ "target": "arcforges.events.v1.EntitlementChanged",
396
+ "valid": true,
397
+ "value": {
398
+ "entitlementVersion": "0"
399
+ }
400
+ },
401
+ {
402
+ "id": "event-value-absent",
403
+ "target": "arcforges.events.v1.EntitlementChanged",
404
+ "valid": false,
405
+ "value": {}
406
+ },
407
+ {
408
+ "id": "ExtensionLease-valid",
409
+ "target": "arcforges.extensions.v1.ExtensionLease",
410
+ "valid": true,
411
+ "value": {
412
+ "leaseId": {
413
+ "value": "ABEiM0RVZneImaq7zN3u_w"
414
+ },
415
+ "expiresAt": {
416
+ "unixSeconds": "30",
417
+ "nanos": 0
418
+ },
419
+ "renewAfterSeconds": 10,
420
+ "negotiatedContracts": [
421
+ "extensions.v1"
422
+ ]
423
+ }
424
+ },
425
+ {
426
+ "id": "ExtensionHostServiceRenewLeaseRequest-valid",
427
+ "target": "arcforges.extensions.v1.ExtensionHostServiceRenewLeaseRequest",
428
+ "valid": true,
429
+ "value": {
430
+ "meta": {
431
+ "correlationId": {
432
+ "value": "ABEiM0RVZneImaq7zN3u_w"
433
+ }
434
+ },
435
+ "leaseId": {
436
+ "value": "ABEiM0RVZneImaq7zN3u_w"
437
+ }
438
+ }
439
+ },
440
+ {
441
+ "id": "ExtensionHostServiceRenewLeaseResponse-valid",
442
+ "target": "arcforges.extensions.v1.ExtensionHostServiceRenewLeaseResponse",
443
+ "valid": true,
444
+ "value": {
445
+ "meta": {
446
+ "correlationId": {
447
+ "value": "ABEiM0RVZneImaq7zN3u_w"
448
+ }
449
+ },
450
+ "value": {
451
+ "lease": {
452
+ "leaseId": {
453
+ "value": "ABEiM0RVZneImaq7zN3u_w"
454
+ },
455
+ "expiresAt": {
456
+ "unixSeconds": "30",
457
+ "nanos": 0
458
+ },
459
+ "renewAfterSeconds": 10,
460
+ "negotiatedContracts": [
461
+ "extensions.v1"
462
+ ]
463
+ }
464
+ }
465
+ }
466
+ },
467
+ {
468
+ "id": "ExtensionHostServiceRenewLeaseValue-valid",
469
+ "target": "arcforges.extensions.v1.ExtensionHostServiceRenewLeaseValue",
470
+ "valid": true,
471
+ "value": {
472
+ "lease": {
473
+ "leaseId": {
474
+ "value": "ABEiM0RVZneImaq7zN3u_w"
475
+ },
476
+ "expiresAt": {
477
+ "unixSeconds": "30",
478
+ "nanos": 0
479
+ },
480
+ "renewAfterSeconds": 10,
481
+ "negotiatedContracts": [
482
+ "extensions.v1"
483
+ ]
484
+ }
485
+ }
486
+ },
487
+ {
488
+ "id": "lease-renewal-profile",
489
+ "target": "arcforges.extensions.v1.ExtensionLease",
490
+ "valid": false,
491
+ "value": {
492
+ "leaseId": {
493
+ "value": "ABEiM0RVZneImaq7zN3u_w"
494
+ },
495
+ "expiresAt": {
496
+ "unixSeconds": "30",
497
+ "nanos": 0
498
+ },
499
+ "renewAfterSeconds": 0,
500
+ "negotiatedContracts": [
501
+ "extensions.v1"
502
+ ]
503
+ }
504
+ },
505
+ {
506
+ "id": "renew-missing-meta",
507
+ "target": "arcforges.extensions.v1.ExtensionHostServiceRenewLeaseRequest",
508
+ "valid": false,
509
+ "value": {
510
+ "leaseId": {
511
+ "value": "ABEiM0RVZneImaq7zN3u_w"
512
+ }
513
+ }
514
+ },
515
+ {
516
+ "id": "renew-missing-outcome",
517
+ "target": "arcforges.extensions.v1.ExtensionHostServiceRenewLeaseResponse",
518
+ "valid": false,
519
+ "value": {
520
+ "meta": {
521
+ "correlationId": {
522
+ "value": "ABEiM0RVZneImaq7zN3u_w"
523
+ }
524
+ }
525
+ }
526
+ },
527
+ {
528
+ "id": "renew-value-empty",
529
+ "target": "arcforges.extensions.v1.ExtensionHostServiceRenewLeaseValue",
530
+ "valid": false,
531
+ "value": {}
532
+ },
533
+ {
534
+ "id": "part-exact-uint64",
535
+ "target": "PartReceipt",
536
+ "valid": true,
537
+ "value": {
538
+ "partNumber": 1,
539
+ "size": "18446744073709551615",
540
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
541
+ "etag": "opaque-receipt"
542
+ }
543
+ },
544
+ {
545
+ "id": "part-uint64-overflow",
546
+ "target": "PartReceipt",
547
+ "valid": false,
548
+ "value": {
549
+ "partNumber": 1,
550
+ "size": "18446744073709551616",
551
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
552
+ "etag": "opaque-receipt"
553
+ }
554
+ },
555
+ {
556
+ "id": "part-size-number",
557
+ "target": "PartReceipt",
558
+ "valid": false,
559
+ "value": {
560
+ "partNumber": 1,
561
+ "size": 8,
562
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
563
+ "etag": "opaque-receipt"
564
+ }
565
+ },
566
+ {
567
+ "id": "part-unknown-property",
568
+ "target": "PartReceipt",
569
+ "valid": false,
570
+ "value": {
571
+ "partNumber": 1,
572
+ "size": "18446744073709551615",
573
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
574
+ "etag": "opaque-receipt",
575
+ "storageKey": "private"
576
+ }
577
+ },
578
+ {
579
+ "id": "inventory-valid",
580
+ "target": "PackageInventory",
581
+ "valid": true,
582
+ "value": {
583
+ "schemaVersion": "inventory.v1",
584
+ "files": [
585
+ {
586
+ "path": "manifest.json",
587
+ "size": "123",
588
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
589
+ }
590
+ ]
591
+ }
592
+ },
593
+ {
594
+ "id": "inventory-traversal",
595
+ "target": "PackageInventory",
596
+ "valid": false,
597
+ "value": {
598
+ "schemaVersion": "inventory.v1",
599
+ "files": [
600
+ {
601
+ "path": "../payload",
602
+ "size": "123",
603
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
604
+ }
605
+ ]
606
+ }
607
+ },
608
+ {
609
+ "id": "inventory-absolute",
610
+ "target": "PackageInventory",
611
+ "valid": false,
612
+ "value": {
613
+ "schemaVersion": "inventory.v1",
614
+ "files": [
615
+ {
616
+ "path": "/payload",
617
+ "size": "123",
618
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
619
+ }
620
+ ]
621
+ }
622
+ },
623
+ {
624
+ "id": "inventory-drive",
625
+ "target": "PackageInventory",
626
+ "valid": false,
627
+ "value": {
628
+ "schemaVersion": "inventory.v1",
629
+ "files": [
630
+ {
631
+ "path": "C:/payload",
632
+ "size": "123",
633
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
634
+ }
635
+ ]
636
+ }
637
+ },
638
+ {
639
+ "id": "inventory-device",
640
+ "target": "PackageInventory",
641
+ "valid": false,
642
+ "value": {
643
+ "schemaVersion": "inventory.v1",
644
+ "files": [
645
+ {
646
+ "path": "files/CON.txt",
647
+ "size": "123",
648
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
649
+ }
650
+ ]
651
+ }
652
+ },
653
+ {
654
+ "id": "inventory-trailing-dot",
655
+ "target": "PackageInventory",
656
+ "valid": false,
657
+ "value": {
658
+ "schemaVersion": "inventory.v1",
659
+ "files": [
660
+ {
661
+ "path": "payload.",
662
+ "size": "123",
663
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
664
+ }
665
+ ]
666
+ }
667
+ },
668
+ {
669
+ "id": "inventory-self-reference",
670
+ "target": "PackageInventory",
671
+ "valid": false,
672
+ "value": {
673
+ "schemaVersion": "inventory.v1",
674
+ "files": [
675
+ {
676
+ "path": "inventory.json",
677
+ "size": "123",
678
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
679
+ }
680
+ ]
681
+ }
682
+ },
683
+ {
684
+ "id": "inventory-signature",
685
+ "target": "PackageInventory",
686
+ "valid": false,
687
+ "value": {
688
+ "schemaVersion": "inventory.v1",
689
+ "files": [
690
+ {
691
+ "path": "SIGNATURE.JSON",
692
+ "size": "123",
693
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
694
+ }
695
+ ]
696
+ }
697
+ },
698
+ {
699
+ "id": "inventory-unicode",
700
+ "target": "PackageInventory",
701
+ "valid": false,
702
+ "value": {
703
+ "schemaVersion": "inventory.v1",
704
+ "files": [
705
+ {
706
+ "path": "fich\u00e9.txt",
707
+ "size": "123",
708
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
709
+ }
710
+ ]
711
+ }
712
+ },
713
+ {
714
+ "id": "inventory-duplicate",
715
+ "target": "PackageInventory",
716
+ "valid": false,
717
+ "value": {
718
+ "schemaVersion": "inventory.v1",
719
+ "files": [
720
+ {
721
+ "path": "manifest.json",
722
+ "size": "123",
723
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
724
+ },
725
+ {
726
+ "path": "manifest.json",
727
+ "size": "123",
728
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
729
+ }
730
+ ]
731
+ }
732
+ },
733
+ {
734
+ "id": "inventory-case-collision",
735
+ "target": "PackageInventory",
736
+ "valid": false,
737
+ "value": {
738
+ "schemaVersion": "inventory.v1",
739
+ "files": [
740
+ {
741
+ "path": "Manifest.json",
742
+ "size": "123",
743
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
744
+ },
745
+ {
746
+ "path": "manifest.json",
747
+ "size": "123",
748
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
749
+ }
750
+ ]
751
+ }
752
+ },
753
+ {
754
+ "id": "inventory-order",
755
+ "target": "PackageInventory",
756
+ "valid": false,
757
+ "value": {
758
+ "schemaVersion": "inventory.v1",
759
+ "files": [
760
+ {
761
+ "path": "z",
762
+ "size": "123",
763
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
764
+ },
765
+ {
766
+ "path": "manifest.json",
767
+ "size": "123",
768
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
769
+ }
770
+ ]
771
+ }
772
+ },
773
+ {
774
+ "id": "inventory-file-limit",
775
+ "target": "PackageInventory",
776
+ "valid": false,
777
+ "value": {
778
+ "schemaVersion": "inventory.v1",
779
+ "files": [
780
+ {
781
+ "path": "manifest.json",
782
+ "size": "134217729",
783
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
784
+ }
785
+ ]
786
+ }
787
+ },
788
+ {
789
+ "id": "inventory-total-limit",
790
+ "target": "PackageInventory",
791
+ "valid": false,
792
+ "value": {
793
+ "schemaVersion": "inventory.v1",
794
+ "files": [
795
+ {
796
+ "path": "file0",
797
+ "size": "134217728",
798
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
799
+ },
800
+ {
801
+ "path": "file1",
802
+ "size": "134217728",
803
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
804
+ },
805
+ {
806
+ "path": "file2",
807
+ "size": "134217728",
808
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
809
+ },
810
+ {
811
+ "path": "file3",
812
+ "size": "134217728",
813
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
814
+ },
815
+ {
816
+ "path": "file4",
817
+ "size": "134217728",
818
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
819
+ },
820
+ {
821
+ "path": "file5",
822
+ "size": "134217728",
823
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
824
+ },
825
+ {
826
+ "path": "file6",
827
+ "size": "134217728",
828
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
829
+ },
830
+ {
831
+ "path": "file7",
832
+ "size": "134217728",
833
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
834
+ },
835
+ {
836
+ "path": "manifest.json",
837
+ "size": "134217728",
838
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
839
+ }
840
+ ]
841
+ }
842
+ },
843
+ {
844
+ "id": "inventory-leading-zero",
845
+ "target": "PackageInventory",
846
+ "valid": false,
847
+ "value": {
848
+ "schemaVersion": "inventory.v1",
849
+ "files": [
850
+ {
851
+ "path": "manifest.json",
852
+ "size": "01",
853
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
854
+ }
855
+ ]
856
+ }
857
+ },
858
+ {
859
+ "id": "inventory-missing-manifest",
860
+ "target": "PackageInventory",
861
+ "valid": false,
862
+ "value": {
863
+ "schemaVersion": "inventory.v1",
864
+ "files": [
865
+ {
866
+ "path": "payload.txt",
867
+ "size": "1",
868
+ "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
869
+ }
870
+ ]
871
+ }
872
+ }
873
+ ]
874
+ }
875
+ };