EWC-consortium / ewc-wallet-conformance-backend

This is the EWC Interoperability Test Bed (ITB) and implements the conformance towards EWC RFCs; build towards the Large Scale Pilot (LSP) usecases. The project is co-funded by the European Union.
3 stars 1 forks source link

Test case 18 is broken since`/issueStatus` endpoint is failing; Unable to find the session by id due to `-persona=` suffix in EducationalID #8

Closed georgepadayatti closed 3 months ago

georgepadayatti commented 3 months ago

In the below code, during EducationalID issuance, -persona= suffix is being added for the session key.

https://github.com/EWC-consortium/ewc-wallet-conformance-backend/blob/c0d36d51eee72b67d8a1c45bd46bfd9c5cf0d3a3/routes/educationalRoutes.js#L43-L46

But in the /token and /issueStatus endpoint, when fetching the session, the suffix is not being added to the sessionId and therefore it is not able to update the status for the session.

https://github.com/EWC-consortium/ewc-wallet-conformance-backend/blob/c0d36d51eee72b67d8a1c45bd46bfd9c5cf0d3a3/routes/routes.js#L159-L163

https://github.com/EWC-consortium/ewc-wallet-conformance-backend/blob/c0d36d51eee72b67d8a1c45bd46bfd9c5cf0d3a3/routes/routes.js#L811-L824

endimion commented 3 months ago

thanks george corrected... now test case works correctly..