mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-08-16 11:53:23 +00:00
add nats to smoke test config
This commit is contained in:
@@ -38,6 +38,20 @@ modules:
|
||||
type: websocket.client
|
||||
params:
|
||||
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:
|
||||
- input: ticker
|
||||
processors:
|
||||
@@ -82,4 +96,16 @@ routes:
|
||||
module: "sqlite"
|
||||
query: "SELECT 1;"
|
||||
- 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