mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-09-10 07:29:25 +00:00
add nats to smoke test config
This commit is contained in:
@@ -38,6 +38,20 @@ modules:
|
|||||||
type: websocket.client
|
type: websocket.client
|
||||||
params:
|
params:
|
||||||
url: "wss://echo.websocket.org"
|
url: "wss://echo.websocket.org"
|
||||||
|
- id: natsserver
|
||||||
|
type: nats.server
|
||||||
|
params:
|
||||||
|
port: 4222
|
||||||
|
- id: natsout
|
||||||
|
type: nats.client
|
||||||
|
params:
|
||||||
|
url: "nats://localhost:4222"
|
||||||
|
subject: "hello"
|
||||||
|
- id: natsin
|
||||||
|
type: nats.client
|
||||||
|
params:
|
||||||
|
url: "nats://localhost:4222"
|
||||||
|
subject: "test"
|
||||||
routes:
|
routes:
|
||||||
- input: ticker
|
- input: ticker
|
||||||
processors:
|
processors:
|
||||||
@@ -82,4 +96,16 @@ routes:
|
|||||||
module: "sqlite"
|
module: "sqlite"
|
||||||
query: "SELECT 1;"
|
query: "SELECT 1;"
|
||||||
- type: debug.log
|
- type: debug.log
|
||||||
|
- input: natsin
|
||||||
|
processors:
|
||||||
|
- type: debug.log
|
||||||
|
- input: ticker
|
||||||
|
processors:
|
||||||
|
- type: nats.message.create
|
||||||
|
params:
|
||||||
|
subject: "test"
|
||||||
|
payload: "hello"
|
||||||
|
- type: router.output
|
||||||
|
params:
|
||||||
|
module: natsout
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user