Skip to content

Commit b764fd0

Browse files
Remove httpclient dependency
1 parent 40b5f0e commit b764fd0

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@
5858
<groupId>io.jenkins.plugins</groupId>
5959
<artifactId>gitlab-api</artifactId>
6060
</dependency>
61-
<dependency>
62-
<groupId>org.jenkins-ci.plugins</groupId>
63-
<artifactId>apache-httpcomponents-client-4-api</artifactId>
64-
</dependency>
6561
<dependency>
6662
<groupId>org.jenkins-ci.plugins</groupId>
6763
<artifactId>branch-api</artifactId>

src/test/java/io/jenkins/plugins/gitlabserverconfig/servers/GitLabServerTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import static org.junit.Assert.assertEquals;
88

99
import java.io.IOException;
10-
import org.apache.http.HttpStatus;
1110
import org.htmlunit.html.HtmlPage;
1211
import org.junit.ClassRule;
1312
import org.junit.Test;
@@ -79,7 +78,7 @@ public void testGetDoCheckServerUrl() throws IOException, SAXException {
7978
HtmlPage page = wc.goTo(
8079
"descriptorByName/io.jenkins.plugins.gitlabserverconfig.servers.GitLabServer/checkServerUrl?serverUrl=http://attacker.example.com");
8180
assertEquals(
82-
HttpStatus.SC_NOT_FOUND,
81+
404,
8382
page.getWebResponse().getStatusCode()); // Should be 405 but Stapler doesn't work that way.
8483
}
8584
}

0 commit comments

Comments
 (0)