Add comprehensive ticket validation with controlTicket function #92
Annotations
20 errors
|
tests/control.test.ts > controlTicket — expiry > ticket is expired when now is far in the future:
src/control.ts#L49
TypeError: Cannot read properties of undefined (reading 'securityProviderNum')
❯ checkSecurityInfo src/control.ts:49:9
❯ controlTicket src/control.ts:517:25
❯ tests/control.test.ts:173:26
|
|
tests/control.test.ts > controlTicket — expiry > ticket is not expired when now is in the past:
src/control.ts#L49
TypeError: Cannot read properties of undefined (reading 'securityProviderNum')
❯ checkSecurityInfo src/control.ts:49:9
❯ controlTicket src/control.ts:517:25
❯ tests/control.test.ts:166:26
|
|
tests/control.test.ts > controlTicket — GRAND_EST_U1_FCB3_HEX > validates Grand Est ticket with FCB3:
src/control.ts#L49
TypeError: Cannot read properties of undefined (reading 'securityProviderNum')
❯ checkSecurityInfo src/control.ts:49:9
❯ controlTicket src/control.ts:517:25
❯ tests/control.test.ts:145:26
|
|
tests/control.test.ts > controlTicket — SNCF_TER_TICKET_HEX > level1Signature fails when key provider returns a key (v1 header, no OID):
src/control.ts#L49
TypeError: Cannot read properties of undefined (reading 'securityProviderNum')
❯ checkSecurityInfo src/control.ts:49:9
❯ controlTicket src/control.ts:517:25
❯ tests/control.test.ts:131:26
|
|
tests/control.test.ts > controlTicket — SNCF_TER_TICKET_HEX > level2Signature is info (level2SigningAlg not set):
src/control.ts#L49
TypeError: Cannot read properties of undefined (reading 'securityProviderNum')
❯ checkSecurityInfo src/control.ts:49:9
❯ controlTicket src/control.ts:517:25
❯ tests/control.test.ts:118:26
|
|
tests/control.test.ts > controlTicket — CTS_TICKET_HEX > validates CTS ticket structure:
src/control.ts#L49
TypeError: Cannot read properties of undefined (reading 'securityProviderNum')
❯ checkSecurityInfo src/control.ts:49:9
❯ controlTicket src/control.ts:517:25
❯ tests/control.test.ts:103:26
|
|
tests/control.test.ts > controlTicket — SOLEA_TICKET_HEX > level2Signature passes (ECDSA P-256):
src/control.ts#L49
TypeError: Cannot read properties of undefined (reading 'securityProviderNum')
❯ checkSecurityInfo src/control.ts:49:9
❯ controlTicket src/control.ts:517:25
❯ tests/control.test.ts:86:26
|
|
tests/control.test.ts > controlTicket — SAMPLE_TICKET_HEX > level2Signature fails for sample ticket (synthetic signatures):
src/control.ts#L49
TypeError: Cannot read properties of undefined (reading 'securityProviderNum')
❯ checkSecurityInfo src/control.ts:49:9
❯ controlTicket src/control.ts:517:25
❯ tests/control.test.ts:74:26
|
|
tests/control.test.ts > controlTicket — SAMPLE_TICKET_HEX > level1Signature fails without key provider:
src/control.ts#L49
TypeError: Cannot read properties of undefined (reading 'securityProviderNum')
❯ checkSecurityInfo src/control.ts:49:9
❯ controlTicket src/control.ts:517:25
❯ tests/control.test.ts:65:26
|
|
tests/control.test.ts > controlTicket — SAMPLE_TICKET_HEX > decodes and validates structural checks:
src/control.ts#L49
TypeError: Cannot read properties of undefined (reading 'securityProviderNum')
❯ checkSecurityInfo src/control.ts:49:9
❯ controlTicket src/control.ts:517:25
❯ tests/control.test.ts:49:26
|
|
tests/control.test.ts > controlTicket — expiry > ticket is expired when now is far in the future:
src/control.ts#L49
TypeError: Cannot read properties of undefined (reading 'securityProviderNum')
❯ checkSecurityInfo src/control.ts:49:9
❯ controlTicket src/control.ts:517:25
❯ tests/control.test.ts:173:26
|
|
tests/control.test.ts > controlTicket — expiry > ticket is not expired when now is in the past:
src/control.ts#L49
TypeError: Cannot read properties of undefined (reading 'securityProviderNum')
❯ checkSecurityInfo src/control.ts:49:9
❯ controlTicket src/control.ts:517:25
❯ tests/control.test.ts:166:26
|
|
tests/control.test.ts > controlTicket — GRAND_EST_U1_FCB3_HEX > validates Grand Est ticket with FCB3:
src/control.ts#L49
TypeError: Cannot read properties of undefined (reading 'securityProviderNum')
❯ checkSecurityInfo src/control.ts:49:9
❯ controlTicket src/control.ts:517:25
❯ tests/control.test.ts:145:26
|
|
tests/control.test.ts > controlTicket — SNCF_TER_TICKET_HEX > level1Signature fails when key provider returns a key (v1 header, no OID):
src/control.ts#L49
TypeError: Cannot read properties of undefined (reading 'securityProviderNum')
❯ checkSecurityInfo src/control.ts:49:9
❯ controlTicket src/control.ts:517:25
❯ tests/control.test.ts:131:26
|
|
tests/control.test.ts > controlTicket — SNCF_TER_TICKET_HEX > level2Signature is info (level2SigningAlg not set):
src/control.ts#L49
TypeError: Cannot read properties of undefined (reading 'securityProviderNum')
❯ checkSecurityInfo src/control.ts:49:9
❯ controlTicket src/control.ts:517:25
❯ tests/control.test.ts:118:26
|
|
tests/control.test.ts > controlTicket — CTS_TICKET_HEX > validates CTS ticket structure:
src/control.ts#L49
TypeError: Cannot read properties of undefined (reading 'securityProviderNum')
❯ checkSecurityInfo src/control.ts:49:9
❯ controlTicket src/control.ts:517:25
❯ tests/control.test.ts:103:26
|
|
tests/control.test.ts > controlTicket — SOLEA_TICKET_HEX > level2Signature passes (ECDSA P-256):
src/control.ts#L49
TypeError: Cannot read properties of undefined (reading 'securityProviderNum')
❯ checkSecurityInfo src/control.ts:49:9
❯ controlTicket src/control.ts:517:25
❯ tests/control.test.ts:86:26
|
|
tests/control.test.ts > controlTicket — SAMPLE_TICKET_HEX > level2Signature fails for sample ticket (synthetic signatures):
src/control.ts#L49
TypeError: Cannot read properties of undefined (reading 'securityProviderNum')
❯ checkSecurityInfo src/control.ts:49:9
❯ controlTicket src/control.ts:517:25
❯ tests/control.test.ts:74:26
|
|
tests/control.test.ts > controlTicket — SAMPLE_TICKET_HEX > level1Signature fails without key provider:
src/control.ts#L49
TypeError: Cannot read properties of undefined (reading 'securityProviderNum')
❯ checkSecurityInfo src/control.ts:49:9
❯ controlTicket src/control.ts:517:25
❯ tests/control.test.ts:65:26
|
|
tests/control.test.ts > controlTicket — SAMPLE_TICKET_HEX > decodes and validates structural checks:
src/control.ts#L49
TypeError: Cannot read properties of undefined (reading 'securityProviderNum')
❯ checkSecurityInfo src/control.ts:49:9
❯ controlTicket src/control.ts:517:25
❯ tests/control.test.ts:49:26
|