Add randomly generated CPER examples for Unit Tests
These examples of CPER blobs and their outputs will be used to validate
CPER binaries against their JSON output.
Unit tests to be overhauled to use valijson in a subsequent patch.
Change-Id: I51cc00df22b043fcd71a8cc3ae79bfebb53e66d9
Signed-off-by: Aushim Nagarkatti <anagarkatti@nvidia.com>
diff --git a/examples/pcie.json b/examples/pcie.json
new file mode 100644
index 0000000..2a1963e
--- /dev/null
+++ b/examples/pcie.json
@@ -0,0 +1,76 @@
+{
+ "header": {
+ "creatorID": "00000000-0000-0000-0000-000000000000",
+ "flags": {
+ "name": "HW_ERROR_FLAGS_SIMULATED",
+ "value": 4
+ },
+ "notificationType": {
+ "guid": "00000000-0000-0000-0000-000000000000",
+ "type": "Unknown"
+ },
+ "persistenceInfo": 0,
+ "platformID": "00000000-0000-0000-0000-000000000000",
+ "recordID": 1531150234,
+ "recordLength": 408,
+ "revision": {
+ "major": 0,
+ "minor": 0
+ },
+ "sectionCount": 1,
+ "severity": {
+ "code": 0,
+ "name": "Recoverable"
+ },
+ "timestamp": "5512-04-26T21:00:13+00:00",
+ "timestampIsPrecise": false
+ },
+ "sectionDescriptors": [
+ {
+ "flags": {
+ "containmentWarning": true,
+ "errorThresholdExceeded": false,
+ "latentError": true,
+ "overflow": true,
+ "primary": true,
+ "propagated": true,
+ "reset": false,
+ "resourceNotAccessible": false
+ },
+ "fruID": "8a936866-6ca3-3f6e-2b9d-cf0ef92fd4d8",
+ "fruText": "HI<CH\n\u0002hn5;o\\\u0002-l'm\u0012",
+ "revision": {
+ "major": 191,
+ "minor": 156
+ },
+ "sectionLength": 208,
+ "sectionOffset": 200,
+ "sectionType": {
+ "data": "d995e954-bbc1-430f-ad91-b44dcb3c6f35",
+ "type": "PCIe"
+ },
+ "severity": {
+ "code": 2,
+ "name": "Corrected"
+ }
+ }
+ ],
+ "sections": [
+ {
+ "Pcie": {
+ "capabilityStructure": {
+ "data": "cLHNpg9PNxgNqpOm7W5xViPd2ZAsKK7MaMjnN8NWmzMIaNoXtxEvxLvCaqgw2/9UuNjk5ACTsGlbl6Af"
+ },
+ "commandStatus": {
+ "commandRegister": 36731,
+ "statusRegister": 21729
+ },
+ "deviceSerialNumber": 1952944444865990253,
+ "portType": {
+ "name": "PCI Express to PCI/PCI-X Bridge",
+ "value": 7
+ }
+ }
+ }
+ ]
+}