privacy-scaling-explorations / p0tion

The MPC suite of tools for conducting zkSNARK Phase 2 Trusted Setup ceremonies
https://ceremony.pse.dev
MIT License
90 stars 69 forks source link

Create e2e tests for `/packages/api` #327

Open NicoSerranoP opened 2 months ago

NicoSerranoP commented 2 months ago

Motivation

We are moving all the p0tion coordinator infrastructure to a single server application (API). This new API was built using NestJS and we are missing e2e tests (end-to-end tests).

Details

Write e2e tests for each route (endpoint) in the different modules (auth, ceremonies, circuits, participants, storage and users). Remember to check the following:

  1. There is some data (circuits, zkeys, etc) that could be used from @actions or duplicate it into /api
  2. We should be able to run the whole pipeline in normal scenarios (create, contribute, finalize)

Tutorial to setup the API Coordinator application

yuliaSharabi commented 2 months ago

I'd like to take this issue @NicoSerranoP

NicoSerranoP commented 2 months ago

I'd like to take this issue @NicoSerranoP

@yuliaSharabi Thank you very much! Please let me know if you need any help. You could follow some of the p0tion's documentation to generate the AWS .env variables you need: https://www.notion.so/pse-team/P0tion-c3e1b94be4214cb8998104c9bf30d7a8

NicoSerranoP commented 1 month ago

@yuliaSharabi I just updated the issue description with a tutorial to deploy the API Coordinator application in case you need it