Skip to content

Commit

Permalink
chore: fix tests for cert renewal
Browse files Browse the repository at this point in the history
  • Loading branch information
nekrich committed Dec 14, 2023
1 parent a102a77 commit 3b859ad
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion match/spec/runner_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,14 @@
# Spaceship ensure helper
spaceship_ensure = create_fake_spaceship_ensure
begin # Ensure match checks validity of the new certificate.
expect(spaceship_ensure).to receive(:certificates_exists).with(username: match_config[:username], certificate_ids: ['E7P4EE896K']).and_return(true)
certificates_exists_params = {
username: match_config[:username],
certificate_ids: ['E7P4EE896K'],
cached_certificates: fake_cache.certificates,
platform: match_config[:platform],
profile_type: anything
}
expect(spaceship_ensure).to receive(:certificates_exists).with(certificates_exists_params).and_return(true)
end

# Utils
Expand Down

0 comments on commit 3b859ad

Please sign in to comment.