From 606ec71137e1dfe1045c9d61f2c9fc116a04880c Mon Sep 17 00:00:00 2001 From: Petr Fedchenkov Date: Thu, 5 May 2022 11:38:43 +0300 Subject: [PATCH] Fix acl test to handle multiple IPs from dig 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 --- tests/eden/eclient/testdata/acl.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/eden/eclient/testdata/acl.txt b/tests/eden/eclient/testdata/acl.txt index 88636b6ac4..e238d951a5 100644 --- a/tests/eden/eclient/testdata/acl.txt +++ b/tests/eden/eclient/testdata/acl.txt @@ -116,10 +116,11 @@ done -- dns_lookup.sh -- # Performs DNS lookup for a given hostname and adds host_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 -IP=$(dig +short $1) +IP=$(dig +short $1 | paste -sd "," -) echo host_ip=$IP>>.env -- curl.sh --