Restructure settings UI (#2413)

This commit is contained in:
Naoki Takezoe
2020-01-13 02:28:30 +09:00
committed by GitHub
parent 6225fd79fc
commit 917b204e5b
14 changed files with 308 additions and 227 deletions

View File

@@ -55,6 +55,12 @@ trait ServiceSpecBase extends MockitoSugar {
webHook = SystemSettingsService.WebHook(
blockPrivateAddress = false,
whitelist = Nil
),
upload = SystemSettingsService.Upload(
maxFileSize = 3 * 1024 * 1024,
timeout = 30 * 10000,
largeMaxFileSize = 3 * 1024 * 1024,
largeTimeout = 30 * 10000
)
)

View File

@@ -7,7 +7,7 @@ import javax.servlet.http.{HttpServletRequest, HttpSession}
import gitbucket.core.controller.Context
import gitbucket.core.model.Account
import gitbucket.core.service.RequestCache
import gitbucket.core.service.SystemSettingsService.{Ssh, SystemSettings, WebHook}
import gitbucket.core.service.SystemSettingsService.{Ssh, SystemSettings, WebHook, Upload}
import org.mockito.Mockito._
import org.scalatest.FunSpec
import org.scalatestplus.mockito.MockitoSugar
@@ -141,6 +141,12 @@ class AvatarImageProviderSpec extends FunSpec with MockitoSugar {
webHook = WebHook(
blockPrivateAddress = false,
whitelist = Nil
),
upload = Upload(
maxFileSize = 3 * 1024 * 1024,
timeout = 30 * 10000,
largeMaxFileSize = 3 * 1024 * 1024,
largeTimeout = 30 * 10000
)
)