Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: sync pisp/master to v11.3.0 #87

Merged
merged 31 commits into from
Dec 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
d2027f7
#1325: Bulk transfers and bulk quotes support (#49)
oderayi Jun 10, 2020
ce9227b
Hotfix: Fix python dependencies in CI (#53)
oderayi Jun 10, 2020
8da29c5
Update pipeline (#54)
KamuelaFranco Jun 18, 2020
b708224
Add Init Container To Onboard MSISDN's (#55)
Jul 9, 2020
16ead3f
Fix publish for onboard-msisdn-oracle in pipeline (#58)
KamuelaFranco Jul 9, 2020
52ee407
Add init container to onboard with central-ledger (#48)
KamuelaFranco Jul 9, 2020
7f29b3c
Fix erroneous file name in pipeline (#59)
KamuelaFranco Jul 9, 2020
c64b7f8
Remove dependency on org secret for build pipeline (#61)
KamuelaFranco Jul 13, 2020
32e9e82
Fix bugs with API spec and model for bulk transfers (#62)
oderayi Jul 14, 2020
e465845
Fix erroneous use of environment variables for onboarding (#63)
KamuelaFranco Jul 14, 2020
3823d9a
Fix build artifacts (#65)
KamuelaFranco Jul 23, 2020
fd703c4
Fix build order dependency (#66)
KamuelaFranco Jul 23, 2020
9af96c8
Update finance-portal-lib in init container (#67)
KamuelaFranco Jul 24, 2020
7a17587
Modified to reflect changes in dependency (#68)
partiallyordered Jul 28, 2020
5b785dc
Add hub onboarding image (#69)
partiallyordered Jul 28, 2020
bd8a3a2
Bump versions (#70)
partiallyordered Jul 28, 2020
fd99d16
Fixed onboard-hub-accounts Dockerfile error, bumped versions (#71)
partiallyordered Jul 28, 2020
1a4b02b
Add image scans and vulnerability checks for inits (#74)
KamuelaFranco Aug 14, 2020
a6724d4
The chart in this repo is now redundant. Removing in favour of https:…
partiallyordered Aug 14, 2020
b30746a
Update README with init container docs (#76)
KamuelaFranco Aug 19, 2020
dab8b8e
[WIP] Feature/#1572 payee notification (#75)
vgenev Aug 20, 2020
900e19c
Environment variable configuration of parties (#77)
partiallyordered Sep 3, 2020
f3e9a1f
Improved Model.init doc. Fixed bug with server start. Bumped version.…
partiallyordered Sep 3, 2020
c008db1
Bump node-fetch from 2.6.0 to 2.6.1 in /src (#79)
dependabot[bot] Nov 3, 2020
44e5338
Bump node-fetch from 2.6.0 to 2.6.1 in /init/onboard-hub-accounts (#81)
dependabot[bot] Nov 3, 2020
52acc98
Bump node-fetch from 2.6.0 to 2.6.1 in /init/onboard-central-ledger (…
dependabot[bot] Nov 4, 2020
549554a
chore(package): bump package to `11.2.2` (#83)
lewisdaly Nov 4, 2020
552095f
chore: update license file (#84)
lewisdaly Dec 9, 2020
9525923
Add "subIdValue" parameter for parties in simulator (#85)
shashi165 Dec 10, 2020
7c882b2
Merge tag 'v11.3.0' into chore/sync-v11.3.0
kleyow Dec 28, 2020
927aa20
chore: fix merge issues
kleyow Dec 28, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ version: 2.1
orbs:
anchore: anchore/anchore-engine@1.6.0

# TODO: Further evaluate what changes need to be pulled from master.
# File has not been updated to v11.3.0
##
# defaults
#
Expand Down
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ typings/
# Optional eslint cache
.eslintcache

# ESlint config
.eslintrc.json

# Optional REPL history
.node_repl_history

Expand Down
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,9 @@ simulator.log
# environments
docker-compose.local.yml
goldenpayerfsp
goldenpayeefsp
goldenpayeefsp

#vscode configs
.vscode/
/init/.DS_Store
/.DS_Store
8 changes: 4 additions & 4 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# LICENSE

Copyright © 2017 Bill & Melinda Gates Foundation
Copyright © 2020 Mojaloop Foundation

The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0
(the "License") and you may not use these files except in compliance with the [License](http://www.apache.org/licenses/LICENSE-2.0). You may obtain a copy of the License at
The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0
(the "License") and you may not use these files except in compliance with the [License](http://www.apache.org/licenses/LICENSE-2.0).

[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
You may obtain a copy of the License at [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the [License](http://www.apache.org/licenses/LICENSE-2.0).
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ A diagram showing the logical architecture of the simulator in a test scenario c

# Use

## Deploy with Helm and init containers (optional)
Three init containers,
- [onboard-hub-accounts](https://github.com/mojaloop/mojaloop-simulator/tree/master/init/onboard-hub-accounts)
- [onboard-central-ledger](https://github.com/mojaloop/mojaloop-simulator/tree/master/init/onboard-central-ledger)
- [onboard-msisdn-oracle](https://github.com/mojaloop/mojaloop-simulator/tree/master/init/onboard-msisdn-oracle)

are provided for optional use and may make an automated deployment via Helm chart easier than otherwise. Please see the [example](docs/values-sims.example.yaml) config.

## Pre-requisites
1. docker
2. docker-compose
Expand Down
139 changes: 139 additions & 0 deletions docs/values-sims.example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
prefix: ""

# As per:
# https://github.com/mojaloop/helm/blob/4afd91b4d4c976e1f8d60495c677f1ba48b30192/mojaloop-simulator/values.yaml#L130-L134
ingress:
ingressPathRewriteRegex: /
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /

defaults:
config:
backend:
env:
FEE_MULTIPLIER: "0.00"
schemeAdapter:
image:
tag: v10.6.3
env:
VALIDATE_INBOUND_JWS: "true"
PEER_ENDPOINT: "interop-switch.huboperator.live"
JWS_SIGN: "true"
AUTO_ACCEPT_QUOTES: "true"
AUTO_ACCEPT_PARTY: "true"
EXPIRY_SECONDS: 30
REQUEST_PROCESSING_TIMEOUT_SECONDS: 20
USE_QUOTE_SOURCE_FSP_AS_TRANSFER_PAYEE_FSP: "true"
REJECT_TRANSFERS_ON_EXPIRED_QUOTES: "true"
ILP_SECRET: "Use2DwOwCea6VobuFScu3IcoEviS3Oth"
ingress:
enabled: true
hosts:
- "interop-switch.huboperator.live"

simulators:
payerfsp:
config:
backend: # These are optional keys covering
rules: [] # rules-engine configured rules
schemeAdapter:
initContainers:
- name: onboard-hub-accounts
image: &hub_account_onboard_image mojaloop/onboard-hub-accounts:v11.0.3
env:
- name: AUTH_BEARER_TOKEN
value: "6e35ccb3-ec22-51c9-b768-d12c3d289442"
- name: HOST_CENTRAL_LEDGER
value: "http://centralledger-service.ext-svcs.svc.cluster.local"
- name: HUB_OPERATOR_NAME
value: "hub_operator"
- name: ACCOUNTS
value: '[{ "type": "HUB_MULTILATERAL_SETTLEMENT", "currency": "USD" },{ "type": "HUB_RECONCILIATION", "currency": "USD" }]'
- name: onboard-central-ledger
image: &central_ledger_onboard_image mojaloop/onboard-central-ledger:v11.0.3
env:
- name: AUTH_BEARER_TOKEN
value: "6e35ccb3-ec22-51c9-b768-d12c3d289442"
- name: DFSP_CALLBACK_URL
value: "https://dfsp.huboperator.live:9999/payerfsp"
- name: DFSP_CURRENCY
value: "USD"
- name: DFSP_NAME
value: "payerfsp"
- name: FUNDS_IN_PREPARE_AMOUNT
value: "10000"
- name: HOST_CENTRAL_LEDGER
value: "http://centralledger-service.ext-svcs.svc.cluster.local"
- name: HUB_OPERATOR_NAME
value: "hub_operator"
- name: INITIAL_POSITION
value: "0"
- name: NET_DEBIT_CAP
value: "10000"
- name: NDC_ADJUSTMENT_EMAIL
value: "hub.operator@domain.com"
- name: NDC_THRESHOLD_BREACH_EMAIL
value: "hub.operator@domain.com"
- name: SETTLEMENT_TRANSFER_POSITION_CHANGE_EMAIL
value: "hub.operator@domain.com"
- name: onboard-msisdn-oracle
image: &msisdn_onboard_image mojaloop/onboard-msisdn-oracle:v11.0.3
env:
- name: HOST_PATHFINDER_ORACLE
value: pathfinder-oracle.ext-svcs.svc.cluster.local
- name: MSISDN_LIST
value: '[{"MSISDN":"12345678901","currency":"USD"}]'
- name: DFSP_NAME
value: payerfsp

payeefsp:
config:
schemeAdapter:
initContainers:
- name: onboard-hub-accounts
image: *hub_account_onboard_image
env:
- name: AUTH_BEARER_TOKEN
value: "6e35ccb3-ec22-51c9-b768-d12c3d289442"
- name: HOST_CENTRAL_LEDGER
value: "http://centralledger-service.ext-svcs.svc.cluster.local"
- name: HUB_OPERATOR_NAME
value: "hub_operator"
- name: ACCOUNTS
value: '[{ "type": "HUB_MULTILATERAL_SETTLEMENT", "currency": "XOF" },{ "type": "HUB_RECONCILIATION", "currency": "XOF" }]'
- name: onboard-central-ledger
image: *central_ledger_onboard_image
env:
- name: AUTH_BEARER_TOKEN
value: "6e35ccb3-ec22-51c9-b768-d12c3d289442"
- name: DFSP_CALLBACK_URL
value: "https://dfsp.huboperator.live:9999/payeefsp"
- name: DFSP_CURRENCY
value: "XOF"
- name: DFSP_NAME
value: "payeefsp"
- name: FUNDS_IN_PREPARE_AMOUNT
value: "10000"
- name: HOST_CENTRAL_LEDGER
value: "http://centralledger-service.ext-svcs.svc.cluster.local"
- name: HUB_OPERATOR_NAME
value: "hub_operator"
- name: INITIAL_POSITION
value: "0"
- name: NET_DEBIT_CAP
value: "10000"
- name: NDC_ADJUSTMENT_EMAIL
value: "hub.operator@domain.com"
- name: NDC_THRESHOLD_BREACH_EMAIL
value: "hub.operator@domain.com"
- name: SETTLEMENT_TRANSFER_POSITION_CHANGE_EMAIL
value: "hub.operator@domain.com"
- name: onboard-msisdn-oracle
image: *msisdn_onboard_image
env:
- name: HOST_PATHFINDER_ORACLE
value: pathfinder-oracle.ext-svcs.svc.cluster.local
- name: MSISDN_LIST
value: '[{"MSISDN":"23456789012","currency":"USD"}]'
- name: DFSP_NAME
value: payeefsp
3 changes: 0 additions & 3 deletions helm/.gitignore

This file was deleted.

25 changes: 0 additions & 25 deletions helm/.helmignore

This file was deleted.

5 changes: 0 additions & 5 deletions helm/Chart.yaml

This file was deleted.

32 changes: 0 additions & 32 deletions helm/templates/_helpers.tpl

This file was deleted.

26 changes: 0 additions & 26 deletions helm/templates/config-jws-public-keys.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions helm/templates/config-rules.yaml

This file was deleted.

Loading