diff --git a/test/models/concerns/smart_proxy_extensions_test.rb b/test/models/concerns/smart_proxy_extensions_test.rb index 2000f82371f..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( + 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|