tweaks for automated testing

This commit is contained in:
Jérôme Petazzoni
2017-10-31 09:37:49 -07:00
parent c67675f900
commit 9e5bab1a76

View File

@@ -152,15 +152,13 @@ class: elk-manual
.exercise[
- Get the ID of the Logstash container:
- View the logs of the logstash service:
```bash
CID=$(docker ps -q --filter label=com.docker.swarm.service.name=logstash)
docker service logs logstash --follow
```
- View the logs:
```bash
docker logs --follow $CID
```
<!-- ```wait "message" => "ok"``` -->
<!-- ```keys ^C``` -->
]
@@ -267,6 +265,9 @@ The test message should show up in the logstash container logs.
alpine echo hello
```
<!-- ```wait Detected task failure``` -->
<!-- ```keys ^C``` -->
]
The test message should show up as well in the logstash container logs.
@@ -345,18 +346,6 @@ You can also set `--restart-delay`, `--restart-max-attempts`, and `--restart-win
.exercise[
<!--
- Enable GELF logging for all our *stateless* services:
```bash
for SERVICE in hasher rng webui worker; do
docker service update dockercoins_$SERVICE \
--log-driver gelf --log-opt gelf-address=udp://127.0.0.1:12201
done
```
-->
- Enable GELF logging for the `rng` service:
```bash
docker service update dockercoins_rng \