Skip to content

Commit

Permalink
Updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bdpiprava committed Oct 29, 2018
1 parent f22d78c commit 2e69917
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions build.gradle
Expand Up @@ -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 {
Expand Down
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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\"}"));
}
}

0 comments on commit 2e69917

Please sign in to comment.