-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
26 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
acharb
Author
Contributor
|
||
depends_on: | ||
postgres1: | ||
condition: service_healthy | ||
|
@@ -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 | ||
|
@@ -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: | ||
|
@@ -34,7 +34,7 @@ services: | |
PORT: 8000 | ||
|
||
recovery-signer2: | ||
image: stellar/recoverysigner | ||
image: stellar/recoverysigner:latest | ||
ports: | ||
- "8002:8002" | ||
depends_on: | ||
|
@@ -47,7 +47,7 @@ services: | |
PORT: 8002 | ||
|
||
web-auth1: | ||
image: stellar/webauth | ||
image: stellar/webauth:latest | ||
ports: | ||
- "8001:8001" | ||
environment: | ||
|
@@ -59,7 +59,7 @@ services: | |
PORT: 8001 | ||
|
||
web-auth2: | ||
image: stellar/webauth | ||
image: stellar/webauth:latest | ||
ports: | ||
- "8003:8003" | ||
environment: | ||
|
@@ -71,7 +71,7 @@ services: | |
PORT: 8003 | ||
|
||
postgres1: | ||
image: postgres | ||
image: postgres:14 | ||
environment: | ||
POSTGRES_PASSWORD: pg_password | ||
POSTGRES_DB: pg_database1 | ||
|
@@ -84,7 +84,7 @@ services: | |
retries: 5 | ||
|
||
postgres2: | ||
image: postgres | ||
image: postgres:14 | ||
environment: | ||
POSTGRES_PASSWORD: pg_password | ||
POSTGRES_DB: pg_database2 | ||
|
Can you fixate versions instead of using
latest
tag? (Otherwise they may break in the future)