spaceship/lib/spaceship/test_flight/client.rb in fastlane-2.28.7 vs spaceship/lib/spaceship/test_flight/client.rb in fastlane-2.28.8

- old
+ new

@@ -32,24 +32,10 @@ response = request(:get, "providers/#{team_id}/apps/#{app_id}/platforms/#{platform}/trains/#{train_version}/builds") handle_response(response) end - def testers_for_app(app_id: nil) - assert_required_params(__method__, binding) - url = "providers/#{team_id}/apps/#{app_id}/testers" - response = request(:get, url) - handle_response(response) - end - - def delete_tester_from_app(app_id: nil, tester_id: nil) - assert_required_params(__method__, binding) - url = "providers/#{team_id}/apps/#{app_id}/testers/#{tester_id}" - response = request(:delete, url) - handle_response(response) - end - ## # @!group Builds API ## def get_build(app_id: nil, build_id: nil) @@ -109,10 +95,24 @@ ## # @!group Testers API ## + def testers_for_app(app_id: nil) + assert_required_params(__method__, binding) + url = "providers/#{team_id}/apps/#{app_id}/testers?limit=10000" + response = request(:get, url) + handle_response(response) + end + + def delete_tester_from_app(app_id: nil, tester_id: nil) + assert_required_params(__method__, binding) + url = "providers/#{team_id}/apps/#{app_id}/testers/#{tester_id}" + response = request(:delete, url) + handle_response(response) + end + def post_tester(app_id: nil, tester: nil) assert_required_params(__method__, binding) url = "providers/#{team_id}/apps/#{app_id}/testers" response = request(:post) do |req| @@ -154,18 +154,25 @@ end handle_response(response) end ## - # @!group TestInfo + # @!group AppTestInfo ## - def put_testinfo(app_id: nil, testinfo: nil) + def get_app_test_info(app_id: nil) assert_required_params(__method__, binding) + response = request(:get, "providers/#{team_id}/apps/#{app_id}/testInfo") + handle_response(response) + end + + def put_app_test_info(app_id: nil, app_test_info: nil) + assert_required_params(__method__, binding) + response = request(:put) do |req| req.url "providers/#{team_id}/apps/#{app_id}/testInfo" - req.body = testinfo.to_json + req.body = app_test_info.to_json req.headers['Content-Type'] = 'application/json' end handle_response(response) end