Skip to content

Commit

Permalink
setup and tests for proxy related testing (#67)
Browse files Browse the repository at this point in the history
* setup and tests for proxy related testing

Signed-off-by: 2byrds <[email protected]>

* test.sh all includes proxy

Signed-off-by: 2byrds <[email protected]>

* cleaner docker environment

Signed-off-by: 2byrds <[email protected]>

* more efficient to use env for proxy and fixed drop calls

Signed-off-by: 2byrds <[email protected]>

* change github action to use test script

Signed-off-by: 2byrds <[email protected]>

---------

Signed-off-by: 2byrds <[email protected]>
  • Loading branch information
2byrds authored Sep 2, 2024
1 parent 5417419 commit 9abb75c
Show file tree
Hide file tree
Showing 17 changed files with 2,416 additions and 36 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,5 @@ jobs:
npm ci
- name: Check formatting
run: npm run pretty:check
- name: Build
run: npm run build
- name: Print docker compose config
run: docker compose config
- name: Start dependencies
run: docker compose up verify -d --pull always
- name: Run the vlei issuance test
run: SIGNIFY_SECRETS="D_PbQb01zuzQgK-kDWjqy,BTaqgh1eeOjXO5iQJp6mb,Akv4TFoiYeHNqzj3N8gEg,CbII3tno87wn3uGBP12qm" TEST_ENVIRONMENT="docker" npx jest ./singlesig-vlei-issuance.test.ts
- name: Run the generate reports test
run: SIGNIFY_SECRETS="CbII3tno87wn3uGBP12qm" TEST_ENVIRONMENT="docker" npx jest ./report.test.ts
- name: Run the vlei verification test
run: SIGNIFY_SECRETS="CbII3tno87wn3uGBP12qm" TEST_ENVIRONMENT="docker" npx jest ./vlei-verification.test.ts

# - name: Print logs
# run: docker compose logs
# if: always()
- name: Build, Run docker, run tests
run: ./test.sh --all
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# reg-pilot
Reg-pilot related information, issues, discussions, and more.

# Project sub-modules
* signify-ts-test: integration scripts and tests to simulate use cases for the whole reg-pilot.
* proxy-server: simulates a scenario when a proxy service sits between the client and reg-pilot-api.

## Development repos and docker images
* [reg-webapp github](https://github.com/GLEIF-IT/reg-pilot-webapp) and [reg-webapp docker](https://hub.docker.com/r/2byrds/reg-webapp/tags) development images
* [reg-pilot-api github](https://github.com/GLEIF-IT/reg-pilot-api) and development [reg-pilot-api docker](https://hub.docker.com/r/gleif/reg-pilot-api/tags) development images
Expand All @@ -20,5 +24,5 @@ Reg-pilot related information, issues, discussions, and more.
At a high-level idea, each file has a digest computed on it and the file and signature are added to the zip file. The vlei-verifier will validate each signatures vs. the digest of each file.

### Test reports
You can find a variety of test report files here. We need to add signed reports for the latest test data.
* [Demo reports - We still need properly signed files by the test data AIDs](https://github.com/GLEIF-IT/vlei-verifier/tree/main/tests/data/report)
You can find a variety of test report files here.
* [Demo reports](https://github.com/GLEIF-IT/vlei-verifier/tree/main/tests/data/report)
20 changes: 20 additions & 0 deletions proxy-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM node:14

# Create app directory
WORKDIR /usr/src/app

# Install app dependencies
COPY package*.json ./
RUN npm install

# Bundle app source
COPY . .

# Build the TypeScript code
RUN npm run build

# Expose the port
EXPOSE 3434

# Run the app
CMD ["npm", "run", "serve"]
Loading

0 comments on commit 9abb75c

Please sign in to comment.