Skip to content

Commit

Permalink
image versions and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
acharb committed Nov 22, 2023
1 parent 93bdf01 commit 706c890
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
18 changes: 18 additions & 0 deletions test/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Recovery Integration Tests

## How it works

The recovery integration tests run different recovery scenarios against recovery
signer and webauth servers. 2 recovery signer and 2 webauth servers are started
in a docker-compose file (see test/docker/docker-compose.yml), to simulate a
wallet interacting with 2 separate recovery servers.

## To run tests locally:

```
// start servers using docker
$ docker-compose -f test/docker/docker-compose.yml up
// run tests
$ yarn test:integration:ci
```
16 changes: 8 additions & 8 deletions test/docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3"
services:
recovery-signer-migrate1:
image: stellar/recoverysigner
image: stellar/recoverysigner:latest

This comment has been minimized.

Copy link
@Ifropc

Ifropc Nov 22, 2023

Contributor

Can you fixate versions instead of using latest tag? (Otherwise they may break in the future)

This comment has been minimized.

Copy link
@acharb

acharb Nov 27, 2023

Author Contributor

I was thinking we would actually like to know if the recovery signer / webauth code changes and it breaks these tests 🤔.

I'm gonna merge this in with latest but if you disagree lmk I can change in next PR

depends_on:
postgres1:
condition: service_healthy
Expand All @@ -11,7 +11,7 @@ services:
DB_URL: "postgresql://postgres:pg_password@postgres1:5432/pg_database1?sslmode=disable"

recovery-signer-migrate2:
image: stellar/recoverysigner
image: stellar/recoverysigner:latest
depends_on:
postgres2:
condition: service_healthy
Expand All @@ -21,7 +21,7 @@ services:
DB_URL: "postgresql://postgres:pg_password@postgres2:5432/pg_database2?sslmode=disable"

recovery-signer1:
image: stellar/recoverysigner
image: stellar/recoverysigner:latest
ports:
- "8000:8000"
depends_on:
Expand All @@ -34,7 +34,7 @@ services:
PORT: 8000

recovery-signer2:
image: stellar/recoverysigner
image: stellar/recoverysigner:latest
ports:
- "8002:8002"
depends_on:
Expand All @@ -47,7 +47,7 @@ services:
PORT: 8002

web-auth1:
image: stellar/webauth
image: stellar/webauth:latest
ports:
- "8001:8001"
environment:
Expand All @@ -59,7 +59,7 @@ services:
PORT: 8001

web-auth2:
image: stellar/webauth
image: stellar/webauth:latest
ports:
- "8003:8003"
environment:
Expand All @@ -71,7 +71,7 @@ services:
PORT: 8003

postgres1:
image: postgres
image: postgres:14
environment:
POSTGRES_PASSWORD: pg_password
POSTGRES_DB: pg_database1
Expand All @@ -84,7 +84,7 @@ services:
retries: 5

postgres2:
image: postgres
image: postgres:14
environment:
POSTGRES_PASSWORD: pg_password
POSTGRES_DB: pg_database2
Expand Down

0 comments on commit 706c890

Please sign in to comment.