Skip to content

Commit

Permalink
feat: implement register consent flow (#79)
Browse files Browse the repository at this point in the history
* feat: implement register consent flow

* chore: change fspId and add model unit tests

* chore: lint god

* chore: add integration tests

* chore: fix lint

* chore: fix unit tests

* chore: increase wait time

* chore: add debug logging

* chore: improve coverage

* chore: import tests

* chore: tests failing for unknown reason on ci

* chore: improve coverage

* chore: more changes

* chore: improve coverage

* chore: more coverage

* chore: more changes

* chore: fix integration tests

* chore: more tests

* chore: fix imports
  • Loading branch information
kleyow committed Jul 13, 2021
1 parent ee7915b commit 0c99035
Show file tree
Hide file tree
Showing 25 changed files with 2,583 additions and 927 deletions.
2 changes: 1 addition & 1 deletion config/development.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"PORT": 4004,
"HOST": "0.0.0.0",
"PARTICIPANT_ID": "auth_service",
"PARTICIPANT_ID": "centralAuth",
"REDIS": {
"PORT": 6379,
"HOST": "redis",
Expand Down
6 changes: 3 additions & 3 deletions config/integration.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"PORT": 4004,
"HOST": "0.0.0.0",
"PARTICIPANT_ID": "auth_service",
"PARTICIPANT_ID": "centralAuth",
"REDIS": {
"PORT": 6379,
"HOST": "redis",
Expand All @@ -13,8 +13,8 @@
"COLOR": true
},
"SHARED": {
"PEER_ENDPOINT": "0.0.0.0:4003",
"ALS_ENDPOINT": "0.0.0.0:4002",
"PEER_ENDPOINT": "ml-testing-toolkit:5000",
"ALS_ENDPOINT": "ml-testing-toolkit:5000",
"QUOTES_ENDPOINT": "0.0.0.0:3002",
"TRANSFERS_ENDPOINT": "0.0.0.0:3000",
"BULK_TRANSFERS_ENDPOINT": "",
Expand Down
2 changes: 1 addition & 1 deletion config/production.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"PORT": 4004,
"HOST": "0.0.0.0",
"PARTICIPANT_ID": "auth_service",
"PARTICIPANT_ID": "centralAuth",
"REDIS": {
"PORT": 6379,
"HOST": "redis",
Expand Down
2 changes: 1 addition & 1 deletion config/test.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"PORT": 4004,
"HOST": "0.0.0.0",
"PARTICIPANT_ID": "auth_service",
"PARTICIPANT_ID": "centralAuth",
"REDIS": {
"PORT": 6379,
"HOST": "localhost",
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ services:
volumes:
- ./scripts/wait4.js:/opt/auth-service/scripts/wait4.js
- ./scripts/wait4.config.js:/opt/auth-service/scripts/wait4.config.js
environment:
- NODE_ENV=integration
healthcheck:
test: wget -q http://localhost:4004/health -O /dev/null || exit 1
timeout: 20s
Expand Down Expand Up @@ -65,7 +67,7 @@ services:
- "./docker/ml-testing-toolkit/spec_files:/opt/mojaloop-testing-toolkit/spec_files"
- "./docker/ml-testing-toolkit/secrets:/opt/mojaloop-testing-toolkit/secrets"
ports:
- "15000:5000"
- "5000:5000"
- "5050:5050"
command: npm start
networks:
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
{}
{
}
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
[]
[
]
Loading

0 comments on commit 0c99035

Please sign in to comment.