diff --git a/remote-scripts/BVT-VERIFY-VHD-PREREQUISITES.ps1 b/remote-scripts/BVT-VERIFY-VHD-PREREQUISITES.ps1 index 8183cb4..34e961d 100644 --- a/remote-scripts/BVT-VERIFY-VHD-PREREQUISITES.ps1 +++ b/remote-scripts/BVT-VERIFY-VHD-PREREQUISITES.ps1 @@ -37,7 +37,7 @@ if ($isDeployed) } elseif ($detectedDistro -imatch "REDHAT") { - $matchstrings = @("_TEST_SUDOERS_VERIFICATION_SUCCESS","_TEST_NETWORK_MANAGER_NOT_INSTALLED","_TEST_NETWORK_FILE_SUCCESS", "_TEST_IFCFG_ETH0_FILE_SUCCESS", "_TEST_UDEV_RULES_SUCCESS", "_TEST_GRUB_VERIFICATION_SUCCESS") + $matchstrings = @("_TEST_SUDOERS_VERIFICATION_SUCCESS","_TEST_NETWORK_MANAGER_NOT_INSTALLED","_TEST_NETWORK_FILE_SUCCESS", "_TEST_IFCFG_ETH0_FILE_SUCCESS", "_TEST_UDEV_RULES_SUCCESS", "_TEST_GRUB_VERIFICATION_SUCCESS","_TEST_RHUIREPOSITORIES_AVAILABLE") } elseif ($detectedDistro -imatch "FEDORA") { diff --git a/remote-scripts/BVT-VERIFY-VHD-PREREQUISITES.py b/remote-scripts/BVT-VERIFY-VHD-PREREQUISITES.py index 9c90ccc..9b1be7a 100644 --- a/remote-scripts/BVT-VERIFY-VHD-PREREQUISITES.py +++ b/remote-scripts/BVT-VERIFY-VHD-PREREQUISITES.py @@ -305,6 +305,17 @@ if distro == "REDHAT" or distro == "FEDORA": if "updates" not in r_out: RunLog.error("Updates repository not present") print(distro+"_TEST_REPOSITORIES_ERROR") + + if distro == "REDHAT": + ra_out = Run("yum repolist all | grep 'rhui-rhel-' | wc -l") + if(ra_out > 5): + RunLog.info("yum repolist all status: Success, repo count = %s", ra_out) + print(distro+"_TEST_RHUIREPOSITORIES_AVAILABLE") + else: + RunLog.error("yum repolist all status: Fail, repo count = %s", ra_out) + print(distro+"_TEST_RHUIREPOSITORIES_ERROR") + + #Verify etc/yum.conf y_out = Run("cat /etc/yum.conf") if "http_caching=packages" in y_out: