Method: Spaceship::TestFlight::Group#add_tester!
- Defined in:
- spaceship/lib/spaceship/test_flight/group.rb
#add_tester!(tester) ⇒ Object
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 App Store Connect team, as it also happens on the App Store Connect UI on 18. April 2017
69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'spaceship/lib/spaceship/test_flight/group.rb', line 69 def add_tester!(tester) # This post request creates an account-level tester and then makes it available to the app, or just makes # it available to the app if it already exists client.create_app_level_tester(app_id: self.app_id, first_name: tester.first_name, last_name: tester.last_name, email: tester.email) # This put request adds the tester to the group client.post_tester_to_group(group_id: self.id, email: tester.email, first_name: tester.first_name, last_name: tester.last_name, app_id: self.app_id) end |