|
|
@ -43,9 +43,11 @@ func TestAPIExposedSettings(t *testing.T) { |
|
|
|
|
|
|
|
|
|
|
|
DecodeJSON(t, resp, &repo) |
|
|
|
DecodeJSON(t, resp, &repo) |
|
|
|
assert.EqualValues(t, &api.GeneralRepoSettings{ |
|
|
|
assert.EqualValues(t, &api.GeneralRepoSettings{ |
|
|
|
MirrorsDisabled: setting.Repository.DisableMirrors, |
|
|
|
MirrorsDisabled: setting.Repository.DisableMirrors, |
|
|
|
HTTPGitDisabled: setting.Repository.DisableHTTPGit, |
|
|
|
HTTPGitDisabled: setting.Repository.DisableHTTPGit, |
|
|
|
MigrationsDisabled: setting.Repository.DisableMigrations, |
|
|
|
MigrationsDisabled: setting.Repository.DisableMigrations, |
|
|
|
|
|
|
|
TimeTrackingDisabled: false, |
|
|
|
|
|
|
|
LFSDisabled: !setting.LFS.StartServer, |
|
|
|
}, repo) |
|
|
|
}, repo) |
|
|
|
|
|
|
|
|
|
|
|
attachment := new(api.GeneralAttachmentSettings) |
|
|
|
attachment := new(api.GeneralAttachmentSettings) |
|
|
|