Skip to content

Commit

Permalink
Fix acl test to handle multiple IPs from dig
Browse files Browse the repository at this point in the history
Dig command may return several IPs to properly handle them during
creation of network we should join lines from output into one with comma
 separator.

Signed-off-by: Petr Fedchenkov <giggsoff@gmail.com>
  • Loading branch information
giggsoff authored and eriknordmark committed May 13, 2022
1 parent 32fa17f commit 606ec71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/eden/eclient/testdata/acl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,11 @@ done
-- dns_lookup.sh --

# Performs DNS lookup for a given hostname and adds host_ip=<ip> into the .env file
# If query returns several IPs they will be joined into one line with comma separator
# Uses dig command which is already included by most modern Linux systems and also macOS.
# Usage: dns_lookup.sh <hostname>

IP=$(dig +short $1)
IP=$(dig +short $1 | paste -sd "," -)
echo host_ip=$IP>>.env

-- curl.sh --
Expand Down

0 comments on commit 606ec71

Please sign in to comment.