Skip to content

Commit

Permalink
Merge pull request #8 from mojaloop/ft-quotes-and-transfers
Browse files Browse the repository at this point in the history
feat: mapping token for /quoterequests and /transfers
  • Loading branch information
elijah0kello authored Mar 8, 2024
2 parents 2cdd6fd + 2ddd982 commit 1284d1e
Show file tree
Hide file tree
Showing 38 changed files with 12,573 additions and 3,414 deletions.
33 changes: 23 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,20 +169,33 @@ jobs:
name: Execute dependency tests
command: npm run dep:check

test-unit:
executor: default-docker
test-func:
executor: default-machine
steps:
- run:
name: Install general dependencies
command: *defaults_Dependencies
- checkout
- attach_workspace:
at: /tmp
- run:
<<: *defaults_configure_nvm
- restore_cache:
key: dependency-cache-{{ .Environment.CIRCLE_SHA1 }}
name: Start docker-compose TTK backend
command: |
docker-compose -f ./test/func/ttk-docker-compose.yml up -d
- run:
name: Wait for some time
command: |
sleep 10
- run:
name: Install dependencies
command: |
nvm install
nvm use
npm install
- run:
name: Execute Unit Tests
command: npm run test:unit
command: npm run test:functional
- run:
name: Stop docker-compose TTK backend
command: |
docker-compose -f ./test/func/ttk-docker-compose.yml down
test-lint:
executor: default-docker
Expand Down Expand Up @@ -361,7 +374,7 @@ workflows:
- /feature*/
- /bugfix*/

- test-unit:
- test-func:
context: org-global
requires:
- setup
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

npm run lint
npm run dep:check
npm run test:unit
npm run test:functional
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,23 @@ npm run start
```

# Test
Before you run functional tests, make sure to run the ttk backend using this command.

```bash
docker compose -f ./test/func/ttk-docker-compose.yml up -d
```

Then you can execute the functional tests

```bash
npm run test:unit
npm run test:functional
```

Then you can tear the ttk backend down using this command.

```bash
docker compose -f ./test/func/ttk-docker-compose.yml down
```
# Build and Run
```bash
npm run start:build
Expand Down
Loading

0 comments on commit 1284d1e

Please sign in to comment.