Skip to content

Commit 26a46aa

Browse files
Remove httpclient dependency (#476)
Co-authored-by: strangelookingnerd <[email protected]>
1 parent e052710 commit 26a46aa

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,6 @@
6262
<groupId>io.jenkins.plugins</groupId>
6363
<artifactId>gitlab-api</artifactId>
6464
</dependency>
65-
<dependency>
66-
<groupId>org.jenkins-ci.plugins</groupId>
67-
<artifactId>apache-httpcomponents-client-4-api</artifactId>
68-
</dependency>
6965
<dependency>
7066
<groupId>org.jenkins-ci.plugins</groupId>
7167
<artifactId>branch-api</artifactId>

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

Lines changed: 1 addition & 3 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,8 +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,
83-
page.getWebResponse().getStatusCode()); // Should be 405 but Stapler doesn't work that way.
81+
404, page.getWebResponse().getStatusCode()); // Should be 405 but Stapler doesn't work that way.
8482
}
8583
}
8684
}

0 commit comments

Comments
 (0)