Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

Commit

Permalink
Merge pull request weaveworks#2136 from weaveworks/bump-tools
Browse files Browse the repository at this point in the history
Bump tools subtree and fix integration tests
  • Loading branch information
Alfonso Acosta authored Jan 19, 2017
2 parents 87f1c0f + 3ed02d9 commit 589171b
Show file tree
Hide file tree
Showing 11 changed files with 67 additions and 505 deletions.
2 changes: 1 addition & 1 deletion integration/100_launch_test.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /bin/bash

# shellcheck disable=SC1091
./config.sh
. ./config.sh

start_suite "Launch scope and check it boots"

Expand Down
6 changes: 3 additions & 3 deletions integration/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ has_connection_by_id() {
for i in $(seq "$timeout"); do
local nodes
local edge
edge=$(echo "$nodes" | jq -r ".nodes[\"$from_id\"].adjacency | contains([\"$to_id\"])" 2>/dev/null)
nodes="$(curl -s "http://$host:4040/api/topology/${view}?system=show")"
edge=$(echo "$nodes" | (jq -r ".nodes[\"$from_id\"].adjacency | contains([\"$to_id\"])" || true) 2>/dev/null)
nodes=$(curl -s "http://$host:4040/api/topology/${view}?system=show" || true)
if [ "$edge" = "true" ]; then
echo "Found edge $from -> $to after $i secs"
assert "curl -s http://$host:4040/api/topology/${view}?system=show | jq -r '.nodes[\"$from_id\"].adjacency | contains([\"$to_id\"])'" true
Expand Down Expand Up @@ -109,7 +109,7 @@ wait_for() {
for i in $(seq "${timeout}"); do
local nodes
local found=0
nodes="$(curl -s "http://$host:4040/api/topology/${view}?system=show")"
nodes=$(curl -s "http://$host:4040/api/topology/${view}?system=show" || true)
for name in "$@"; do
local count
count=$(echo "${nodes}" | jq -r "[.nodes[] | select(.label == \"${name}\")] | length")
Expand Down
1 change: 0 additions & 1 deletion tools/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ cover/cover
socks/proxy
socks/image.tar
runner/runner
cmd/wcloud/wcloud
*.pyc
*~
1 change: 0 additions & 1 deletion tools/circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@ test:
- cd $SRCDIR/cover; make
- cd $SRCDIR/socks; make
- cd $SRCDIR/runner; make
- cd $SRCDIR/cmd/wcloud; make

11 changes: 0 additions & 11 deletions tools/cmd/wcloud/Makefile

This file was deleted.

238 changes: 0 additions & 238 deletions tools/cmd/wcloud/cli.go

This file was deleted.

Loading

0 comments on commit 589171b

Please sign in to comment.