From f97102ee5a1ed7a045beff9ab158eb475c05ca55 Mon Sep 17 00:00:00 2001 From: jeffail Date: Sun, 28 Jan 2018 21:15:32 +0000 Subject: [PATCH] Update smoke test to use http out as well --- config/test/smoke_out.yaml | 6 +++--- resources/docker/run_all_queues/README.md | 8 ++++++-- resources/docker/run_all_queues/docker-compose.yaml | 3 ++- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/config/test/smoke_out.yaml b/config/test/smoke_out.yaml index 034b2b4739..78bb79bc54 100644 --- a/config/test/smoke_out.yaml +++ b/config/test/smoke_out.yaml @@ -1,3 +1,5 @@ +http: + address: 0.0.0.0:4196 input: type: fan_in fan_in: @@ -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 diff --git a/resources/docker/run_all_queues/README.md b/resources/docker/run_all_queues/README.md index 808914702c..6e1e56852b 100644 --- a/resources/docker/run_all_queues/README.md +++ b/resources/docker/run_all_queues/README.md @@ -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 +``` diff --git a/resources/docker/run_all_queues/docker-compose.yaml b/resources/docker/run_all_queues/docker-compose.yaml index 61d03719cd..4f8f50c85c 100644 --- a/resources/docker/run_all_queues/docker-compose.yaml +++ b/resources/docker/run_all_queues/docker-compose.yaml @@ -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"