You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How I can test below pipeline using some sample payload. Want to test/ensure connector routes the request to corresponding pipeline based on the field 'name'.
receivers:
webhookevent:
endpoint: 0.0.0.0:1111
path: /get/info
processors:
transform/tr:
error_mode: ignore
log_statements:
- context: log
statements:
- set(body, ParseJSON(body)) where body != nil
- set(resource.attributes["name"], body["name"])
Want to build something as shown below. Any existing test frameworks available?
type: Test
spec:
id: 19L__G7IR
name: Call API
trigger:
type: http
httpRequest:
url: http://host.docker.internal:1111/get/info
method: POST
headers:
- key: Content-Type
value: application/json
specs:
assertions:
- attr:http.status_code = 200
The text was updated successfully, but these errors were encountered:
Hi,
How I can test below pipeline using some sample payload. Want to test/ensure connector routes the request to corresponding pipeline based on the field 'name'.
receivers:
webhookevent:
processors:
transform/tr:
connectors:
routing :
table:
- statement: route() where attributes["name"] == "abc"
pipelines:
- logs/abc
- statement: route() where attributes["name"] == "xyz"
pipelines:
- logs/xyz
exporters:
logging:
loglevel: debug
service:
pipelines:
logs/receivers:
receivers: [webhookevent]
processors: [transform/tr]
exporters: [routing,logging]
logs/abc:
receivers: [routing]
processors: []
exporters: [logging]
logs/xyz:
receivers: [routing]
processors: []
exporters: [logging]
Want to build something as shown below. Any existing test frameworks available?
type: Test
spec:
id: 19L__G7IR
name: Call API
trigger:
type: http
httpRequest:
url: http://host.docker.internal:1111/get/info
method: POST
headers:
- key: Content-Type
value: application/json
specs:
The text was updated successfully, but these errors were encountered: