Update on the Review Comments
1. Resolved review comments. 2. Resolved Go linting issues. 3. Increase coverage from 93 to 96 percentage for module.
This commit is contained in:
69
config/bap.yaml
Normal file
69
config/bap.yaml
Normal file
@@ -0,0 +1,69 @@
|
||||
appName: "bapAdapter"
|
||||
log:
|
||||
level: debug
|
||||
destinations:
|
||||
- type: stdout
|
||||
context_keys:
|
||||
- transaction_id
|
||||
- message_id
|
||||
http:
|
||||
port: 8080
|
||||
timeout:
|
||||
read: 30
|
||||
write: 30
|
||||
idle: 30
|
||||
plugin:
|
||||
root: /app/plugins
|
||||
pluginZipPath: /mnt/gcs/plugins/plugins_bundle.zip
|
||||
plugins:
|
||||
- publisher Src version raw comp zip
|
||||
- nopschemavalidator
|
||||
- router
|
||||
- nopsigner
|
||||
- nopsignvalidator
|
||||
- reqpreprocessor
|
||||
- gcpAuthMdw
|
||||
modules:
|
||||
- name: reciever
|
||||
type: transaction
|
||||
path: /reciever
|
||||
targetType: msgQ
|
||||
plugin:
|
||||
schemaValidator:
|
||||
id: nopschemavalidator
|
||||
signValidator:
|
||||
id: nopsignvalidator
|
||||
publisher:
|
||||
id: publisher
|
||||
config:
|
||||
project: ondc-seller-dev
|
||||
topic: bapNetworkReciever
|
||||
router:
|
||||
id: router
|
||||
config:
|
||||
routingConfigPath: /mnt/gcs/configs/bapRecieverRouting-config.yaml
|
||||
preProcessors:
|
||||
- id: reqpreprocessor
|
||||
steps:
|
||||
steps:
|
||||
- addRoute
|
||||
signValidate
|
||||
-addRout
|
||||
customValidate
|
||||
- name: transactionCaller
|
||||
path: /caller
|
||||
targetType: "http"
|
||||
plugin:
|
||||
signer:
|
||||
id: nopsigner
|
||||
router:
|
||||
id: router
|
||||
config:
|
||||
routingConfigPath: /mnt/gcs/configs/bapCallerRouting-config.yaml
|
||||
preProcessors:
|
||||
- id: reqpreprocessor
|
||||
# postProcessors:
|
||||
# - id: gcpAuthMdw
|
||||
# config:
|
||||
# audience: https://bpp-adapter-903496459467.asia-southeast1.run.app
|
||||
# serviceAccount: 903496459467-compute@developer.gserviceaccount.com
|
||||
Reference in New Issue
Block a user