Skip to content

Commit

Permalink
Update smoke test to use http out as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffail committed Jan 28, 2018
1 parent 0c11725 commit f97102e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
6 changes: 3 additions & 3 deletions config/test/smoke_out.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
http:
address: 0.0.0.0:4196
input:
type: fan_in
fan_in:
Expand Down Expand Up @@ -49,8 +51,6 @@ input:
client_id: benthos_client_2
subject: benthos_messages
output:
type: file
file:
path: /output/smoke-output.txt
type: http_server
logger:
log_level: INFO
8 changes: 6 additions & 2 deletions resources/docker/run_all_queues/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ a Benthos instance to route messages to all of them through round-robin. In
order to send test messages use curl:

``` sh
curl http://localhost:8080/post -d "hello world"
curl http://localhost:4195/post -d "hello world"
```

And the output messages can be found in `./smoke-output.txt`.
And you can also stream the output messages with curl:

``` sh
curl http://localhost:4196/get/stream
```
3 changes: 2 additions & 1 deletion resources/docker/run_all_queues/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,6 @@ services:
image: jeffail/benthos
volumes:
- $GOPATH/src/github.com/Jeffail/benthos/config/test/smoke_out.yaml:/benthos.yaml
- $GOPATH/src/github.com/Jeffail/benthos/resources/docker/run_all_queues:/output
command: -c /benthos.yaml
ports:
- "4196:4196"

0 comments on commit f97102e

Please sign in to comment.