Class GitLabContainer
- java.lang.Object
-
- org.jenkinsci.test.acceptance.docker.DockerContainer
-
- org.jenkinsci.test.acceptance.docker.fixtures.GitLabContainer
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class GitLabContainer extends org.jenkinsci.test.acceptance.docker.DockerContainer
-
-
Constructor Summary
Constructors Constructor Description GitLabContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpResponse<String>
createRepo(String repoName, String token)
String
createUserToken(String userName, String password, String email, String isAdmin)
void
deleteRepo(String token, String repoName)
URL
getHttpUrl()
String
getRepoUrl()
URL visible from the host.URL
getURL()
String
host()
String
httpHost()
int
httpPort()
int
sshPort()
void
waitForReady(CapybaraPortingLayer p)
-
-
-
Field Detail
-
REPO_DIR
protected static final String REPO_DIR
- See Also:
- Constant Field Values
-
-
Method Detail
-
host
public String host()
-
sshPort
public int sshPort()
-
httpPort
public int httpPort()
-
httpHost
public String httpHost()
-
getURL
public URL getURL() throws IOException
- Throws:
IOException
-
getHttpUrl
public URL getHttpUrl() throws IOException
- Throws:
IOException
-
getRepoUrl
public String getRepoUrl()
URL visible from the host.
-
waitForReady
public void waitForReady(CapybaraPortingLayer p)
-
createRepo
public HttpResponse<String> createRepo(String repoName, String token) throws RuntimeException
- Throws:
RuntimeException
-
deleteRepo
public void deleteRepo(String token, String repoName) throws IOException, org.gitlab4j.api.GitLabApiException
- Throws:
IOException
org.gitlab4j.api.GitLabApiException
-
createUserToken
public String createUserToken(String userName, String password, String email, String isAdmin) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
-