Skip to content

Commit

Permalink
Fixes #34044 - stop caring about array order in test_sync_container_g…
Browse files Browse the repository at this point in the history
…ateway (Katello#10889)

(cherry picked from commit 1b9a08b)
  • Loading branch information
jeremylenz authored and ianballou committed Feb 20, 2024
1 parent 19b87ef commit 7b5aa5f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/models/concerns/smart_proxy_extensions_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 7b5aa5f

Please sign in to comment.