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 (#10889)
  • Loading branch information
jeremylenz committed Feb 14, 2024
1 parent 192800a commit 1b9a08b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 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({
: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|
Expand Down

0 comments on commit 1b9a08b

Please sign in to comment.