Commit 7d0612e9 authored by Greg Messner's avatar Greg Messner
Browse files

Added test to fetch public projects without authentication (#384).

parent e8f8a3a0
......@@ -39,6 +39,7 @@ import java.util.stream.Stream;
import javax.ws.rs.core.Response;
import org.gitlab4j.api.GitLabApi.ApiVersion;
import org.gitlab4j.api.models.AccessLevel;
import org.gitlab4j.api.models.AccessRequest;
import org.gitlab4j.api.models.Group;
......@@ -187,6 +188,13 @@ public class TestProjectApi extends AbstractIntegrationTest {
assumeNotNull(gitLabApi);
}
@Test
public void testProjectsNoAuth() throws GitLabApiException {
GitLabApi gitLabApi = new GitLabApi(TEST_HOST_URL, "");
List<Project> projects = gitLabApi.getProjectApi().getProjects(1, 1);
assertTrue(projects != null);
}
@Test
public void testCreate() throws GitLabApiException {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment