Gitlab Context
object GitlabContext
Gitlab context
Author
sunlulu.tomato
Samples
import com.mato.gitlab.GitlabContext
import okhttp3.logging.HttpLoggingInterceptor
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.BeforeAll
fun main() {
//sampleStart
GitlabContext.config(
baseUrl = TestingEnv.GITLAB_BASE_URL.get(),
token = TestingEnv.GITLAB_TOKEN.get()
) {
loggingInterceptor = HttpLoggingInterceptor(HttpLoggingInterceptor.Logger(::println)).also {
it.level = HttpLoggingInterceptor.Level.BODY
}
}
//sampleEnd
}