|
| 1 | +export default { |
| 2 | + name: 'status-transitions-legal', |
| 3 | + description: |
| 4 | + 'Connector walks a completely legal OCPP 1.6 status path (Available -> Preparing -> Charging -> Finishing -> Available). A legal negative control that must not trigger STATUS_TRANSITION_VIOLATION.', |
| 5 | + trace: { |
| 6 | + traceId: 'scenario-status-transitions-legal', |
| 7 | + metadata: { |
| 8 | + stationId: 'CS-SYNTHETIC-022', |
| 9 | + ocppVersion: '1.6', |
| 10 | + source: 'synthetic-scenario', |
| 11 | + description: |
| 12 | + 'Connector status transitions strictly along the path the OCPP 1.6 section 4.9 table permits, with a trailing heartbeat to keep heartbeat rules quiet.', |
| 13 | + }, |
| 14 | + events: [ |
| 15 | + { |
| 16 | + timestamp: '2026-02-01T10:00:00.000Z', |
| 17 | + direction: 'CS_TO_CSMS', |
| 18 | + message: [ |
| 19 | + 2, |
| 20 | + 'msg-001', |
| 21 | + 'BootNotification', |
| 22 | + { |
| 23 | + chargePointVendor: 'SyntheticVendor', |
| 24 | + chargePointModel: 'SM-100', |
| 25 | + chargePointSerialNumber: 'CS-SYNTHETIC-022', |
| 26 | + firmwareVersion: '1.0.0', |
| 27 | + }, |
| 28 | + ], |
| 29 | + }, |
| 30 | + { |
| 31 | + timestamp: '2026-02-01T10:00:00.500Z', |
| 32 | + direction: 'CSMS_TO_CS', |
| 33 | + message: [ |
| 34 | + 3, |
| 35 | + 'msg-001', |
| 36 | + { |
| 37 | + currentTime: '2026-02-01T10:00:00.500Z', |
| 38 | + interval: 300, |
| 39 | + status: 'Accepted', |
| 40 | + }, |
| 41 | + ], |
| 42 | + }, |
| 43 | + { |
| 44 | + timestamp: '2026-02-01T10:00:30.000Z', |
| 45 | + direction: 'CS_TO_CSMS', |
| 46 | + message: [ |
| 47 | + 2, |
| 48 | + 'msg-002', |
| 49 | + 'StatusNotification', |
| 50 | + { |
| 51 | + connectorId: 1, |
| 52 | + status: 'Available', |
| 53 | + errorCode: 'NoError', |
| 54 | + }, |
| 55 | + ], |
| 56 | + }, |
| 57 | + { |
| 58 | + timestamp: '2026-02-01T10:00:30.500Z', |
| 59 | + direction: 'CSMS_TO_CS', |
| 60 | + message: [3, 'msg-002', {}], |
| 61 | + }, |
| 62 | + { |
| 63 | + timestamp: '2026-02-01T10:01:00.000Z', |
| 64 | + direction: 'CS_TO_CSMS', |
| 65 | + message: [ |
| 66 | + 2, |
| 67 | + 'msg-003', |
| 68 | + 'StatusNotification', |
| 69 | + { |
| 70 | + connectorId: 1, |
| 71 | + status: 'Preparing', |
| 72 | + errorCode: 'NoError', |
| 73 | + }, |
| 74 | + ], |
| 75 | + }, |
| 76 | + { |
| 77 | + timestamp: '2026-02-01T10:01:00.500Z', |
| 78 | + direction: 'CSMS_TO_CS', |
| 79 | + message: [3, 'msg-003', {}], |
| 80 | + }, |
| 81 | + { |
| 82 | + timestamp: '2026-02-01T10:02:00.000Z', |
| 83 | + direction: 'CS_TO_CSMS', |
| 84 | + message: [ |
| 85 | + 2, |
| 86 | + 'msg-004', |
| 87 | + 'StatusNotification', |
| 88 | + { |
| 89 | + connectorId: 1, |
| 90 | + status: 'Charging', |
| 91 | + errorCode: 'NoError', |
| 92 | + }, |
| 93 | + ], |
| 94 | + }, |
| 95 | + { |
| 96 | + timestamp: '2026-02-01T10:02:00.500Z', |
| 97 | + direction: 'CSMS_TO_CS', |
| 98 | + message: [3, 'msg-004', {}], |
| 99 | + }, |
| 100 | + { |
| 101 | + timestamp: '2026-02-01T10:03:00.000Z', |
| 102 | + direction: 'CS_TO_CSMS', |
| 103 | + message: [ |
| 104 | + 2, |
| 105 | + 'msg-005', |
| 106 | + 'StatusNotification', |
| 107 | + { |
| 108 | + connectorId: 1, |
| 109 | + status: 'Finishing', |
| 110 | + errorCode: 'NoError', |
| 111 | + }, |
| 112 | + ], |
| 113 | + }, |
| 114 | + { |
| 115 | + timestamp: '2026-02-01T10:03:00.500Z', |
| 116 | + direction: 'CSMS_TO_CS', |
| 117 | + message: [3, 'msg-005', {}], |
| 118 | + }, |
| 119 | + { |
| 120 | + timestamp: '2026-02-01T10:04:00.000Z', |
| 121 | + direction: 'CS_TO_CSMS', |
| 122 | + message: [ |
| 123 | + 2, |
| 124 | + 'msg-006', |
| 125 | + 'StatusNotification', |
| 126 | + { |
| 127 | + connectorId: 1, |
| 128 | + status: 'Available', |
| 129 | + errorCode: 'NoError', |
| 130 | + }, |
| 131 | + ], |
| 132 | + }, |
| 133 | + { |
| 134 | + timestamp: '2026-02-01T10:04:00.500Z', |
| 135 | + direction: 'CSMS_TO_CS', |
| 136 | + message: [3, 'msg-006', {}], |
| 137 | + }, |
| 138 | + { |
| 139 | + timestamp: '2026-02-01T10:05:00.000Z', |
| 140 | + direction: 'CS_TO_CSMS', |
| 141 | + message: [2, 'msg-007', 'Heartbeat', {}], |
| 142 | + }, |
| 143 | + { |
| 144 | + timestamp: '2026-02-01T10:05:00.500Z', |
| 145 | + direction: 'CSMS_TO_CS', |
| 146 | + message: [3, 'msg-007', { currentTime: '2026-02-01T10:05:00.500Z' }], |
| 147 | + }, |
| 148 | + ], |
| 149 | + }, |
| 150 | + expectedFailures: [], |
| 151 | + assertions: [{ type: 'no_failures', params: {} }], |
| 152 | +}; |
0 commit comments