Skip to content
Snippets Groups Projects
Commit 0245623d authored by John Carlson's avatar John Carlson
Browse files

Merge branch 'master' into develop

parents 2cc0cbef 39498eef
No related branches found
No related tags found
No related merge requests found
# LabCoat for GitLab
 
[![build status](https://gitlab.com/ci/projects/7701/status.png?ref=master)](https://gitlab.com/ci/projects/7701?ref=master)
[![build status](https://gitlab.com/Commit451/LabCoat/badges/master/build.svg)](https://gitlab.com/Commit451/LabCoat/commits/master)
 
![Image](https://gitlab.com/Commit451/LabCoat/raw/master/art/screenshot-1.png)
[![Google Play](https://gitlab.com/Commit451/LabCoat/raw/master/art/google-play-badge.png)](https://play.google.com/store/apps/details?id=com.commit451.gitlab)
 
## Issues
Loading
Loading
package com.commit451.gitlab
 
import android.net.Uri
import com.commit451.gitlab.api.GitLabService
import com.commit451.gitlab.api.GitLabFactory
import com.commit451.gitlab.api.GitLabService
import com.commit451.gitlab.api.OkHttpClientFactory
import com.commit451.gitlab.api.request.SessionRequest
import com.commit451.gitlab.model.Account
import okhttp3.logging.HttpLoggingInterceptor
import org.junit.Assert
Loading
Loading
@@ -27,8 +28,11 @@ object TestUtil {
gitlabClientBuilder.addInterceptor(HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BODY))
}
val gitLab = GitLabFactory.create(account, gitlabClientBuilder.build(), true)
val request = SessionRequest()
.setLogin("TestAllTheThings")
.setPassword("testing123")
val loginResponse = gitLab
.loginWithUsername("TestAllTheThings", "testing123")
.login(request)
.blockingGet()
assertTrue(loginResponse.isSuccessful)
assertNotNull(loginResponse.body().privateToken)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment