Permalink
Browse files

Forward match keychain password into cert (#10619)

* Forward match keychain password into cert

* Whoops, test stuff
  • Loading branch information...
joshdholtz committed Oct 18, 2017
1 parent 75ad110 commit a1a1ceff15d844f874aab3f540aaf78ec2fbf967
Showing with 6 additions and 3 deletions.
  1. +2 −1 match/lib/match/generator.rb
  2. +4 −2 match/spec/generator_spec.rb
@@ -11,7 +11,8 @@ def self.generate_certificate(params, cert_type)
force: true, # we don't need a certificate without its private key, we only care about a new certificate
username: params[:username],
team_id: params[:team_id],
keychain_path: FastlaneCore::Helper.keychain_path(params[:keychain_name])
keychain_path: FastlaneCore::Helper.keychain_path(params[:keychain_name]),
keychain_password: params[:keychain_password]
})
Cert.config = arguments
@@ -9,7 +9,8 @@
force: true,
username: 'username',
team_id: 'team_id',
keychain_path: FastlaneCore::Helper.keychain_path("login.keychain")
keychain_path: FastlaneCore::Helper.keychain_path("login.keychain"),
keychain_password: 'password'
})
# This is the important part. We need to see the right configuration come through
@@ -27,7 +28,8 @@
workspace: 'workspace',
username: 'username',
team_id: 'team_id',
keychain_name: 'login.keychain'
keychain_name: 'login.keychain',
keychain_password: 'password'
}
Match::Generator.generate_certificate(params, 'development')

0 comments on commit a1a1cef

Please sign in to comment.