changed adapter test case

created test folder to add test config and use it in adapter test cases.
This commit is contained in:
MohitKatare-protean
2025-04-09 11:23:38 +05:30
parent 3c688ca458
commit 5b32a51682
4 changed files with 47 additions and 57 deletions

41
cmd/test/validConfig.yaml Normal file
View File

@@ -0,0 +1,41 @@
appName: "testAdapter"
log:
level: debug
destinations:
- type: stdout
context_keys:
- transaction_id
- message_id
http:
port: 8080
timeout:
read: 30
write: 30
idle: 30
plugin:
root: "/mock/plugins"
pluginZipPath: "/mock/plugins/plugins_bundle.zip"
plugins:
- testPlugin1
- testPlugin2
modules:
- name: testModule
type: transaction
path: /testPath
targetType: msgQ
plugin:
schemaValidator:
id: testValidator
publisher:
id: testPublisher
config:
project: test-project
topic: test-topic
router:
id: testRouter
config:
routingConfigPath: "/mock/configs/testRouting-config.yaml"