Skip to content

Commit c4c4e9a

Browse files
authored
Merge pull request #304 from olivergondza/okhttp-ssl
Fix #303: okhttp: Make insecure SSL work in recent JDKs
2 parents 1e1da92 + 8320c65 commit c4c4e9a

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

plugin/pom.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424

2525
<guava.version>20.0</guava.version> <!-- version compatible with openstack4j -->
2626
<jsr305.version>1.3.9</jsr305.version>
27-
<openstack4j.version>3.6</openstack4j.version>
27+
<openstack4j.version>3.8</openstack4j.version>
28+
<okhttp.version>3.9.1</okhttp.version>
2829
</properties>
2930

3031
<developers>
@@ -49,7 +50,12 @@
4950
<dependency>
5051
<groupId>com.squareup.okhttp3</groupId>
5152
<artifactId>okhttp</artifactId>
52-
<version>3.9.1</version>
53+
<version>${okhttp.version}</version>
54+
</dependency>
55+
<dependency>
56+
<groupId>com.squareup.okhttp3</groupId>
57+
<artifactId>logging-interceptor</artifactId>
58+
<version>${okhttp.version}</version>
5359
</dependency>
5460

5561
<dependency>

plugin/src/test/java/jenkins/plugins/openstack/compute/JCloudsCloudTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,8 @@ public void security808() throws Exception {
536536
}
537537

538538
try (ACLContext ignored = ACL.as(User.getOrCreateByIdOrFullName("admin"))) {
539-
desc.doTestConnection(true, c.getId(), destination, "");
540-
assertEquals(1, credentialsCollectingPortal.reqs.size());
539+
FormValidation formValidation = desc.doTestConnection(true, c.getId(), destination, "");
540+
assertEquals(formValidation.getMessage(), 1, credentialsCollectingPortal.reqs.size());
541541
}
542542
}
543543

0 commit comments

Comments
 (0)