From 2e6991791c8f99910a11539015e1870250b69f5c Mon Sep 17 00:00:00 2001 From: Bhupendrakumar Piprava Date: Mon, 29 Oct 2018 09:46:40 +0530 Subject: [PATCH] Updated dependencies --- build.gradle | 14 +++++++------- ...tAuthorizationServerUrlRequestExecutorTest.java | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/build.gradle b/build.gradle index f28149d..78262ac 100644 --- a/build.gradle +++ b/build.gradle @@ -40,17 +40,17 @@ repositories { dependencies { compileOnly group: 'cd.go.plugin', name: 'go-plugin-api', version: '17.5.0' - compile group: 'com.google.code.gson', name: 'gson', version: '2.8.1' - compile group: 'org.kohsuke', name: 'github-api', version: '1.86' - compile group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.8.1' + compile group: 'com.google.code.gson', name: 'gson', version: '2.8.5' + compile group: 'org.kohsuke', name: 'github-api', version: '1.94' + compile group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.11.0' testCompile group: 'cd.go.plugin', name: 'go-plugin-api', version: '17.4.0' testCompile group: 'junit', name: 'junit', version: '4.12' - testCompile group: 'org.mockito', name: 'mockito-core', version: '2.2.28' + testCompile group: 'org.mockito', name: 'mockito-core', version: '2.23.0' testCompile group: 'org.hamcrest', name: 'hamcrest-library', version: '1.3' - testCompile group: 'org.skyscreamer', name: 'jsonassert', version: '1.4.0' - testCompile group: 'org.jsoup', name: 'jsoup', version: '1.10.2' - testCompile 'com.squareup.okhttp3:mockwebserver:3.8.1' + testCompile group: 'org.skyscreamer', name: 'jsonassert', version: '1.5.0' + testCompile group: 'org.jsoup', name: 'jsoup', version: '1.11.3' + testCompile group: 'com.squareup.okhttp3', name: 'mockwebserver', version: '3.8.1' } processResources { diff --git a/src/test/java/cd/go/authorization/github/executors/GetAuthorizationServerUrlRequestExecutorTest.java b/src/test/java/cd/go/authorization/github/executors/GetAuthorizationServerUrlRequestExecutorTest.java index a01b724..bf6e025 100644 --- a/src/test/java/cd/go/authorization/github/executors/GetAuthorizationServerUrlRequestExecutorTest.java +++ b/src/test/java/cd/go/authorization/github/executors/GetAuthorizationServerUrlRequestExecutorTest.java @@ -75,7 +75,7 @@ public void shouldReturnAuthorizationServerUrlForGitHub() throws Exception { final GoPluginApiResponse response = executor.execute(); assertThat(response.responseCode(), is(200)); - assertThat(response.responseBody(), startsWith("{\"authorization_server_url\":\"https://github.com/login/oauth/authorize?client_id\\u003dclient-id\\u0026redirect_uri\\u003dcall-back-url\\u0026scope\\u003duser:email\"}")); + assertThat(response.responseBody(), startsWith("{\"authorization_server_url\":\"https://github.com/login/oauth/authorize?client_id\\u003dclient-id\\u0026redirect_uri\\u003dcall-back-url\\u0026scope\\u003duser%3Aemail\"}")); } @Test @@ -89,7 +89,7 @@ public void shouldReturnAuthorizationServerUrlWithTrailingSlash() throws Excepti final GoPluginApiResponse response = executor.execute(); assertThat(response.responseCode(), is(200)); - assertThat(response.responseBody(), startsWith("{\"authorization_server_url\":\"http://enterprise.url/login/oauth/authorize?client_id\\u003dclient-id\\u0026redirect_uri\\u003dcall-back-url\\u0026scope\\u003duser:email\"}")); + assertThat(response.responseBody(), startsWith("{\"authorization_server_url\":\"http://enterprise.url/login/oauth/authorize?client_id\\u003dclient-id\\u0026redirect_uri\\u003dcall-back-url\\u0026scope\\u003duser%3Aemail\"}")); } @Test @@ -103,6 +103,6 @@ public void shouldReturnAuthorizationServerUrlForGitHubEnterprise() throws Excep final GoPluginApiResponse response = executor.execute(); assertThat(response.responseCode(), is(200)); - assertThat(response.responseBody(), startsWith("{\"authorization_server_url\":\"http://enterprise.url/login/oauth/authorize?client_id\\u003dclient-id\\u0026redirect_uri\\u003dcall-back-url\\u0026scope\\u003duser:email\"}")); + assertThat(response.responseBody(), startsWith("{\"authorization_server_url\":\"http://enterprise.url/login/oauth/authorize?client_id\\u003dclient-id\\u0026redirect_uri\\u003dcall-back-url\\u0026scope\\u003duser%3Aemail\"}")); } } \ No newline at end of file