Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Commit

Permalink
Merge pull request #52 from fullsailor/patch-1
Browse files Browse the repository at this point in the history
Include teamId param in Client#download_certificate
  • Loading branch information
KrauseFx committed Jun 16, 2015
2 parents 24da73f + 509779b commit 3bb16fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/spaceship/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ def download_certificate(certificate_id, type)
{type: type, certificate_id: certificate_id}.each { |k, v| raise "#{k} must not be nil" if v.nil? }

r = request(:post, 'https://developer.apple.com/account/ios/certificate/certificateContentDownload.action', {
teamId: team_id,
displayId: certificate_id,
type: type
})
Expand Down
4 changes: 2 additions & 2 deletions spec/spaceship_stubbing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def stub_certificates
to_return(status: 200, body: read_fixture_file( "list_certificates_filtered.json"), headers: {'Content-Type' => 'application/json'})

stub_request(:post, "https://developer.apple.com/account/ios/certificate/certificateContentDownload.action").
with(body: {"displayId"=>"XC5PH8DAAA", "type"=>"R58UK2EAAA"},
with(body: {"displayId"=>"XC5PH8DAAA", "type"=>"R58UK2EAAA", "teamId" => "XXXXXXXXXX"},
headers: {'Cookie'=>'myacinfo=abcdef;'}).
to_return(status: 200, body: read_fixture_file('aps_development.cer'))
stub_request(:post, "https://developer.apple.com/services-account/QH65B2/account/ios/certificate/submitCertificateRequest.action").
Expand Down Expand Up @@ -162,7 +162,7 @@ def stub_apps
config.before(:each) do

stub_request(:get, "https://developer.apple.com/membercenter/index.action").
to_return(status: 200, body: nil,
to_return(status: 200, body: nil,
headers: {'Location' => "https://idmsa.apple.com/IDMSWebAuth/login?&appIdKey=0123abcdef123123&path=%2F%2Fmembercenter%2Findex.action"}
)

Expand Down

0 comments on commit 3bb16fe

Please sign in to comment.