Skip to content

Commit

Permalink
Merge pull request #297 from arangodb/feature/add-hostname-to-loadbal…
Browse files Browse the repository at this point in the history
…ancer-tester

fixed getLoadBalancerIP to also handle hostnames
  • Loading branch information
neunhoef authored Nov 7, 2018
2 parents 73eefa3 + 0b0589d commit ee976b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/acceptance/semiautomation/helper.fish
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ function waitForUser
end

function getLoadBalancerIP
string trim -c '"' (kubectl get service $argv[1] -o=json | \
jq .status.loadBalancer.ingress[0].ip)
set var (kubectl get service $argv[1] -o=json | jq .status.loadBalancer.ingress[0])
set key (echo $var | jq -r keys[0])
echo $var | jq -r .$key
end

function testArangoDB
Expand Down

0 comments on commit ee976b4

Please sign in to comment.