From a1c8ad98f49b3c9aab707d408fe061b48b967662 Mon Sep 17 00:00:00 2001 From: Ian Ballou Date: Tue, 26 Nov 2024 18:00:34 +0000 Subject: [PATCH] Refs #38003 - Fix broken ACS test --- test/actions/katello/repository_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/actions/katello/repository_test.rb b/test/actions/katello/repository_test.rb index 112112217fa..5de71b4ae8e 100644 --- a/test/actions/katello/repository_test.rb +++ b/test/actions/katello/repository_test.rb @@ -385,7 +385,7 @@ def setup action.stubs(:action_subject).with(published_rhel7_repository) # manually remove the URLs from all repos in product except repository - testing_repo = repository.product.repositories[4] + testing_repo = ::Katello::Repository.joins(:root).find_by(katello_root_repositories: { label: 'rhel_7_no_arch_label' }) testing_repo.product.repositories.each do |repo| repo.root.url = nil unless repo.id == testing_repo.id || repo.root.id == testing_repo.root.id repo.root.save!(validate: false)