spaceship/lib/spaceship/test_flight/client.rb in fastlane-2.28.1 vs spaceship/lib/spaceship/test_flight/client.rb in fastlane-2.28.2

- old
+ new

@@ -20,15 +20,10 @@ handle_response(response) end def post_tester(app_id: nil, tester: nil) assert_required_params(__method__, binding) - # First we need to add the tester to the app - # It's ok if the tester already exists, we just have to do this... don't ask - # This will enable testing for the tester for a given app, as just creating the tester on an account-level - # is not enough to add the tester to a group. If this isn't done the next request would fail. - # This is a bug we reported to the iTunes Connect team, as it also happens on the iTunes Connect UI on 18. April 2017 url = "providers/#{team_id}/apps/#{app_id}/testers" response = request(:post) do |req| req.url url req.body = { "email" => tester.email, @@ -38,11 +33,11 @@ req.headers['Content-Type'] = 'application/json' end handle_response(response) end - def put_test_to_group(app_id: nil, tester_id: nil, group_id: nil) + def put_tester_to_group(app_id: nil, tester_id: nil, group_id: nil) assert_required_params(__method__, binding) # Then we can add the tester to the group that allows the app to test # This is easy enough, we already have all this data. We don't need any response from the previous request url = "providers/#{team_id}/apps/#{app_id}/groups/#{group_id}/testers/#{tester_id}" response = request(:put) do |req| @@ -54,10 +49,9 @@ req.headers['Content-Type'] = 'application/json' end handle_response(response) end - # def remove_tester_from_group!(group: nil, tester: nil, app_id: nil) def delete_tester_from_group(group_id: nil, tester_id: nil, app_id: nil) assert_required_params(__method__, binding) url = "providers/#{team_id}/apps/#{app_id}/groups/#{group_id}/testers/#{tester_id}" response = request(:delete) do |req| req.url url