@@ -207,7 +207,7 @@ void validate_fails_with_IAE_if_timeout() {
207207
208208 @ Test
209209 void validate_success () throws Exception {
210- String tokenResponse = "{\" scopes \" : \" webhook pullrequest:write\" , \" access_token\" : \" token\" , \" expires_in\" : 7200, "
210+ String tokenResponse = "{\" scope \" : \" webhook pullrequest:write\" , \" access_token\" : \" token\" , \" expires_in\" : 7200, "
211211 + "\" token_type\" : \" bearer\" , \" state\" : \" client_credentials\" , \" refresh_token\" : \" abc\" }" ;
212212
213213 server .enqueue (new MockResponse ().setBody (tokenResponse ));
@@ -223,7 +223,7 @@ void validate_success() throws Exception {
223223
224224 @ Test
225225 void validate_fails_if_unsufficient_pull_request_privileges () {
226- String tokenResponse = "{\" scopes \" : \" \" , \" access_token\" : \" token\" , \" expires_in\" : 7200, "
226+ String tokenResponse = "{\" scope \" : \" \" , \" access_token\" : \" token\" , \" expires_in\" : 7200, "
227227 + "\" token_type\" : \" bearer\" , \" state\" : \" client_credentials\" , \" refresh_token\" : \" abc\" }" ;
228228 server .enqueue (new MockResponse ().setBody (tokenResponse ));
229229
@@ -235,7 +235,7 @@ void validate_fails_if_unsufficient_pull_request_privileges() {
235235
236236 @ Test
237237 void validate_with_invalid_workspace () {
238- String tokenResponse = "{\" scopes \" : \" webhook pullrequest:write\" , \" access_token\" : \" token\" , \" expires_in\" : 7200, "
238+ String tokenResponse = "{\" scope \" : \" webhook pullrequest:write\" , \" access_token\" : \" token\" , \" expires_in\" : 7200, "
239239 + "\" token_type\" : \" bearer\" , \" state\" : \" client_credentials\" , \" refresh_token\" : \" abc\" }" ;
240240 server .enqueue (new MockResponse ().setBody (tokenResponse ).setResponseCode (200 ).setHeader ("Content-Type" , JSON_MEDIA_TYPE ));
241241
@@ -275,7 +275,7 @@ void validate_with_invalid_credentials() {
275275
276276 @ Test
277277 void validate_with_insufficient_privileges () {
278- String tokenResponse = "{\" scopes \" : \" webhook pullrequest:write\" , \" access_token\" : \" token\" , \" expires_in\" : 7200, "
278+ String tokenResponse = "{\" scope \" : \" webhook pullrequest:write\" , \" access_token\" : \" token\" , \" expires_in\" : 7200, "
279279 + "\" token_type\" : \" bearer\" , \" state\" : \" client_credentials\" , \" refresh_token\" : \" abc\" }" ;
280280 server .enqueue (new MockResponse ().setBody (tokenResponse ).setResponseCode (200 ).setHeader ("Content-Type" , JSON_MEDIA_TYPE ));
281281
0 commit comments