Skip to content

Commit a31e7df

Browse files
committed
integration tests: better log messages
1 parent f5f2d5c commit a31e7df

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

integration/config.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,15 @@ scope_end_suite() {
4343
list_containers() {
4444
local host=$1
4545
echo "Listing containers on ${host}:"
46-
curl -s "http://${host}:4040/api/topology/containers?system=show" | jq -r '.nodes[] | select(has("metadata")) | .metadata[] | select(.id == "docker_image_name") | .value'
46+
curl -s "http://${host}:4040/api/topology/containers?system=show" | jq -r '.nodes[] | select(has("metadata")) | { "image": .metadata[] | select(.id == "docker_image_name") | .value, "label": .label, "id": .id} | .id + " (" + .image + ", " + .label + ")"'
47+
echo
4748
}
4849

4950
list_connections() {
5051
local host=$1
5152
echo "Listing connections on ${host}:"
52-
curl -s "http://${host}:4040/api/topology/containers?system=show" | jq -r '.nodes[] | select(has("adjacency")) | { "from": .id, "to": .adjacency[]} | .from + " -> " + .to'
53-
53+
curl -s "http://${host}:4040/api/topology/containers?system=show" | jq -r '.nodes[] | select(has("adjacency")) | { "from_name": .label, "from_id": .id, "to": .adjacency[]} | .from_id + " (" + .from_name+ ") -> " + .to'
54+
echo
5455
}
5556

5657
# this checks we have a named node in the given view

0 commit comments

Comments
 (0)