From 5dab3e854621af77e8dd231e0053cc8e4ab6162a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Cami?= <fcami@redhat.com>
Date: Wed, 3 Jul 2019 23:29:24 +0200
Subject: [PATCH] ipatests/azure: display actual dnf repo URLs
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Display which dnf repositories were available at the
prepare-build step via metalink.
Also display the fastestmirror cache.

Signed-off-by: François Cami <fcami@redhat.com>
---
 ipatests/azure/templates/prepare-build.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ipatests/azure/templates/prepare-build.yml b/ipatests/azure/templates/prepare-build.yml
index 479d3bebb1..93fc8a2738 100644
--- a/ipatests/azure/templates/prepare-build.yml
+++ b/ipatests/azure/templates/prepare-build.yml
@@ -11,6 +11,10 @@ steps:
     EOF
     echo 'Disable modular repositories'
     sudo dnf config-manager '*modular*' --set-disabled
+    echo "Fedora mirror metalink content:"
+    for metalink in $(sudo dnf repolist -v |grep Repo-metalink | awk '{print $2}' ) ; do echo '###############' ; echo '####' ; echo $metalink ; echo '####' ; curl $metalink ; done
+    echo "Fastestmirror results:"
+    sudo cat /var/cache/dnf/fastestmirror.cache
     sudo dnf makecache || :
     echo "Installing base development environment"
     sudo dnf install -y gdb make autoconf rpm-build gettext-devel automake libtool 'nodejs(abi) < 11' docker python3-paramiko || :
