From baf7b522123f0ee5c6fff29355ad5de3636d0323 Mon Sep 17 00:00:00 2001 From: Chris Spiller <86013738+spillerc-hpe@users.noreply.github.com> Date: Wed, 30 Oct 2024 09:53:55 +0000 Subject: [PATCH] CASMNET-2241 - Resolve external DNS test fails with port present in URL (#614) CASMNET-2241 - Resolve external DNS test fails with port present in UR --- goss-testing/scripts/check_goss_k8s_resolve_external_dns.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goss-testing/scripts/check_goss_k8s_resolve_external_dns.sh b/goss-testing/scripts/check_goss_k8s_resolve_external_dns.sh index 686207b6..021c6d36 100755 --- a/goss-testing/scripts/check_goss_k8s_resolve_external_dns.sh +++ b/goss-testing/scripts/check_goss_k8s_resolve_external_dns.sh @@ -103,7 +103,7 @@ echo "CONNECTION_URLS=${CONNECTION_URLS}" [[ -n ${CONNECTION_URLS} ]] || err_exit 90 "LDAP provider is configured, but the connectionURL is missing from LDAP configuration." -FIRST_URL=$(echo "${CONNECTION_URLS}" | grep -Eo '//[^, /]+' | head -1 | tr -d /) || +FIRST_URL=$(echo "${CONNECTION_URLS}" | awk -F[/:] '{print $4}') || err_exit 100 "No recognizable URLs found in LDAP connectionURL list" echo "FIRST_URL=${FIRST_URL}"