From c70e6afb049320cd1034dec273b6fab09728080d Mon Sep 17 00:00:00 2001 From: Jeremy Lenz Date: Tue, 13 Feb 2024 16:51:39 -0500 Subject: [PATCH] Fixes #34044 - stop caring about array order in test_sync_container_gateway --- test/models/concerns/smart_proxy_extensions_test.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/models/concerns/smart_proxy_extensions_test.rb b/test/models/concerns/smart_proxy_extensions_test.rb index a356055b1a8..35419440a79 100644 --- a/test/models/concerns/smart_proxy_extensions_test.rb +++ b/test/models/concerns/smart_proxy_extensions_test.rb @@ -248,9 +248,12 @@ def test_sync_container_gateway with_pulp3_features(capsule_content.smart_proxy) capsule_content.smart_proxy.add_lifecycle_environment(environment) - repo_list_update_expectation = ProxyAPI::ContainerGateway.any_instance.expects(:repository_list).with({ - :repositories => [{:repository => "empty_organization-puppet_product-busybox", :auth_required => true}, {:repository => "busybox", :auth_required => true}] - }) + expected_repo_list_args = { + :repositories => [{:repository => "empty_organization-puppet_product-busybox", :auth_required => true}, {:repository => "busybox", :auth_required => true}] + } + repo_list_update_expectation = ProxyAPI::ContainerGateway.any_instance.expects(:repository_list).with do |value| + Set.new(value[:repositories]) == Set.new(expected_repo_list_args[:repositories]) + end repo_list_update_expectation.once.returns(true) repo_mapping_update_expectation = ProxyAPI::ContainerGateway.any_instance.expects(:user_repository_mapping).with do |arg|