mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-31 06:21:11 +00:00 
			
		
		
		
	Fix gitlab migration unit test Closes #1837. The differences in dates can be explained by commite19b9653ea, which changed the order in which "created_date" and "updated_date" are considered. (cherry picked from commitb0bba20aa4) Mock HTTP requests in GitLab migration test This introduces a new utility which can be added to other tests making HTTP calls to a live service, to cache the responses of this service in the repository. (cherry picked from commit52053b1389) Enable mocked HTTP responses for GitLab migration test (cherry picked from commit19cefc4de2) Simplify HTTP mocking utility in unit tests Follow-up to https://codeberg.org/forgejo/forgejo/pulls/1841 (cherry picked from commitca517c8bb4) (cherry picked from commitb227e0dd6b) (cherry picked from commit6cc9d06556) (cherry picked from commitf0746e648d) (cherry picked from commit414193341b) (cherry picked from commit6e93df3bbb)
		
			
				
	
	
		
			338 lines
		
	
	
	
		
			8.1 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			338 lines
		
	
	
	
		
			8.1 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| package "code.gitea.io/gitea/cmd"
 | |
| 	func NoMainListener
 | |
| 
 | |
| package "code.gitea.io/gitea/cmd/forgejo"
 | |
| 	func ContextSetNoInit
 | |
| 	func ContextSetNoExit
 | |
| 	func ContextSetStderr
 | |
| 	func ContextGetStderr
 | |
| 	func ContextSetStdout
 | |
| 	func ContextSetStdin
 | |
| 
 | |
| package "code.gitea.io/gitea/models"
 | |
| 	func IsErrUpdateTaskNotExist
 | |
| 	func (ErrUpdateTaskNotExist).Error
 | |
| 	func (ErrUpdateTaskNotExist).Unwrap
 | |
| 	func IsErrSHANotFound
 | |
| 	func GetYamlFixturesAccess
 | |
| 
 | |
| package "code.gitea.io/gitea/models/actions"
 | |
| 	func (ScheduleList).GetUserIDs
 | |
| 	func (ScheduleList).GetRepoIDs
 | |
| 	func (ScheduleList).LoadTriggerUser
 | |
| 	func (ScheduleList).LoadRepos
 | |
| 	func GetVariableByID
 | |
| 
 | |
| package "code.gitea.io/gitea/models/asymkey"
 | |
| 	func (ErrGPGKeyAccessDenied).Error
 | |
| 	func (ErrGPGKeyAccessDenied).Unwrap
 | |
| 	func HasDeployKey
 | |
| 
 | |
| package "code.gitea.io/gitea/models/auth"
 | |
| 	func GetSourceByName
 | |
| 	func GetWebAuthnCredentialByID
 | |
| 	func WebAuthnCredentials
 | |
| 
 | |
| package "code.gitea.io/gitea/models/db"
 | |
| 	func TruncateBeans
 | |
| 	func InTransaction
 | |
| 	func DumpTables
 | |
| 
 | |
| package "code.gitea.io/gitea/models/dbfs"
 | |
| 	func (*file).renameTo
 | |
| 	func Create
 | |
| 	func Rename
 | |
| 
 | |
| package "code.gitea.io/gitea/models/forgejo/semver"
 | |
| 	func GetVersion
 | |
| 	func SetVersionString
 | |
| 	func SetVersion
 | |
| 
 | |
| package "code.gitea.io/gitea/models/git"
 | |
| 	func RemoveDeletedBranchByID
 | |
| 
 | |
| package "code.gitea.io/gitea/models/issues"
 | |
| 	func IsErrUnknownDependencyType
 | |
| 	func (ErrNewIssueInsert).Error
 | |
| 	func IsErrIssueWasClosed
 | |
| 	func ChangeMilestoneStatus
 | |
| 
 | |
| package "code.gitea.io/gitea/models/migrations/base"
 | |
| 	func removeAllWithRetry
 | |
| 	func newXORMEngine
 | |
| 	func deleteDB
 | |
| 	func PrepareTestEnv
 | |
| 	func MainTest
 | |
| 
 | |
| package "code.gitea.io/gitea/models/organization"
 | |
| 	func UpdateTeamUnits
 | |
| 	func (SearchMembersOptions).ToConds
 | |
| 	func UsersInTeamsCount
 | |
| 
 | |
| package "code.gitea.io/gitea/models/perm/access"
 | |
| 	func GetRepoWriters
 | |
| 
 | |
| package "code.gitea.io/gitea/models/project"
 | |
| 	func UpdateBoardSorting
 | |
| 	func ChangeProjectStatus
 | |
| 
 | |
| package "code.gitea.io/gitea/models/repo"
 | |
| 	func DeleteAttachmentsByIssue
 | |
| 	func (*releaseSorter).Len
 | |
| 	func (*releaseSorter).Less
 | |
| 	func (*releaseSorter).Swap
 | |
| 	func SortReleases
 | |
| 	func FindReposMapByIDs
 | |
| 	func RepositoryListOfMap
 | |
| 	func (SearchOrderBy).String
 | |
| 	func IsErrTopicNotExist
 | |
| 	func (ErrTopicNotExist).Error
 | |
| 	func (ErrTopicNotExist).Unwrap
 | |
| 	func GetTopicByName
 | |
| 	func WatchRepoMode
 | |
| 
 | |
| package "code.gitea.io/gitea/models/unittest"
 | |
| 	func CheckConsistencyFor
 | |
| 	func checkForConsistency
 | |
| 	func GetXORMEngine
 | |
| 	func OverrideFixtures
 | |
| 	func InitFixtures
 | |
| 	func LoadFixtures
 | |
| 	func Copy
 | |
| 	func CopyDir
 | |
| 	func NewMockWebServer
 | |
| 	func NormalizedFullPath
 | |
| 	func FixturesDir
 | |
| 	func fatalTestError
 | |
| 	func InitSettings
 | |
| 	func MainTest
 | |
| 	func CreateTestEngine
 | |
| 	func PrepareTestDatabase
 | |
| 	func PrepareTestEnv
 | |
| 	func Cond
 | |
| 	func OrderBy
 | |
| 	func LoadBeanIfExists
 | |
| 	func BeanExists
 | |
| 	func AssertExistsAndLoadBean
 | |
| 	func GetCount
 | |
| 	func AssertNotExistsBean
 | |
| 	func AssertExistsIf
 | |
| 	func AssertSuccessfulInsert
 | |
| 	func AssertCount
 | |
| 	func AssertInt64InRange
 | |
| 
 | |
| package "code.gitea.io/gitea/models/user"
 | |
| 	func IsErrPrimaryEmailCannotDelete
 | |
| 	func (ErrUserInactive).Error
 | |
| 	func (ErrUserInactive).Unwrap
 | |
| 	func IsErrExternalLoginUserAlreadyExist
 | |
| 	func IsErrExternalLoginUserNotExist
 | |
| 	func IsErrUserSettingIsNotExist
 | |
| 	func GetUserAllSettings
 | |
| 	func DeleteUserSetting
 | |
| 	func GetUserEmailsByNames
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/activitypub"
 | |
| 	func CurrentTime
 | |
| 	func containsRequiredHTTPHeaders
 | |
| 	func NewClient
 | |
| 	func (*Client).NewRequest
 | |
| 	func (*Client).Post
 | |
| 	func GetPrivateKey
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/assetfs"
 | |
| 	func Bindata
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/auth/password/hash"
 | |
| 	func (*DummyHasher).HashWithSaltBytes
 | |
| 	func NewDummyHasher
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/auth/password/pwn"
 | |
| 	func WithHTTP
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/base"
 | |
| 	func SetupGiteaRoot
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/cache"
 | |
| 	func GetInt
 | |
| 	func WithNoCacheContext
 | |
| 	func RemoveContextData
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/charset"
 | |
| 	func (*BreakWriter).Write
 | |
| 	func ToUTF8
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/context"
 | |
| 	func GetPrivateContext
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/emoji"
 | |
| 	func ReplaceCodes
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/eventsource"
 | |
| 	func (*Event).String
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/git"
 | |
| 	func AllowLFSFiltersArgs
 | |
| 	func AddChanges
 | |
| 	func AddChangesWithArgs
 | |
| 	func CommitChanges
 | |
| 	func CommitChangesWithArgs
 | |
| 	func IsErrExecTimeout
 | |
| 	func (ErrExecTimeout).Error
 | |
| 	func (ErrUnsupportedVersion).Error
 | |
| 	func SetUpdateHook
 | |
| 	func openRepositoryWithDefaultContext
 | |
| 	func GetBranchCommitID
 | |
| 	func IsTagExist
 | |
| 	func ToEntryMode
 | |
| 	func (*LimitedReaderCloser).Read
 | |
| 	func (*LimitedReaderCloser).Close
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/gitgraph"
 | |
| 	func (*Parser).Reset
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/graceful"
 | |
| 	func (*Manager).TerminateContext
 | |
| 	func (*Manager).Err
 | |
| 	func (*Manager).Value
 | |
| 	func (*Manager).Deadline
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/hcaptcha"
 | |
| 	func WithHTTP
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/json"
 | |
| 	func (StdJSON).Marshal
 | |
| 	func (StdJSON).Unmarshal
 | |
| 	func (StdJSON).NewEncoder
 | |
| 	func (StdJSON).NewDecoder
 | |
| 	func (StdJSON).Indent
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/markup"
 | |
| 	func GetRendererByType
 | |
| 	func RenderString
 | |
| 	func IsMarkupFile
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/markup/console"
 | |
| 	func Render
 | |
| 	func RenderString
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/markup/markdown"
 | |
| 	func IsDetails
 | |
| 	func IsSummary
 | |
| 	func IsTaskCheckBoxListItem
 | |
| 	func IsIcon
 | |
| 	func IsColorPreview
 | |
| 	func RenderRawString
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/markup/markdown/math"
 | |
| 	func WithInlineDollarParser
 | |
| 	func WithBlockDollarParser
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/markup/mdstripper"
 | |
| 	func StripMarkdown
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/markup/orgmode"
 | |
| 	func RenderString
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/private"
 | |
| 	func ActionsRunnerRegister
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/process"
 | |
| 	func (*Manager).ExecTimeout
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/queue"
 | |
| 	func newBaseChannelSimple
 | |
| 	func newBaseChannelUnique
 | |
| 	func newBaseRedisSimple
 | |
| 	func newBaseRedisUnique
 | |
| 	func newWorkerPoolQueueForTest
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/queue/lqinternal"
 | |
| 	func QueueItemIDBytes
 | |
| 	func QueueItemKeyBytes
 | |
| 	func ListLevelQueueKeys
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/setting"
 | |
| 	func NewConfigProviderFromData
 | |
| 	func (*GitConfigType).GetOption
 | |
| 	func InitLoggersForTest
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/storage"
 | |
| 	func (ErrInvalidConfiguration).Error
 | |
| 	func IsErrInvalidConfiguration
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/structs"
 | |
| 	func ParseCreateHook
 | |
| 	func ParsePushHook
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/sync"
 | |
| 	func (*StatusTable).Start
 | |
| 	func (*StatusTable).IsRunning
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/testlogger"
 | |
| 	func (*testLoggerWriterCloser).pushT
 | |
| 	func (*testLoggerWriterCloser).Write
 | |
| 	func (*testLoggerWriterCloser).popT
 | |
| 	func (*testLoggerWriterCloser).Close
 | |
| 	func (*testLoggerWriterCloser).Reset
 | |
| 	func PrintCurrentTest
 | |
| 	func Printf
 | |
| 	func NewTestLoggerWriter
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/timeutil"
 | |
| 	func GetExecutableModTime
 | |
| 	func MockSet
 | |
| 	func MockUnset
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/translation"
 | |
| 	func (MockLocale).Language
 | |
| 	func (MockLocale).Tr
 | |
| 	func (MockLocale).TrN
 | |
| 	func (MockLocale).PrettyNumber
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/util"
 | |
| 	func UnsafeStringToBytes
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/util/filebuffer"
 | |
| 	func CreateFromReader
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/web"
 | |
| 	func RouteMock
 | |
| 	func RouteMockReset
 | |
| 
 | |
| package "code.gitea.io/gitea/modules/web/middleware"
 | |
| 	func DeleteLocaleCookie
 | |
| 
 | |
| package "code.gitea.io/gitea/routers/web"
 | |
| 	func NotFound
 | |
| 
 | |
| package "code.gitea.io/gitea/routers/web/org"
 | |
| 	func MustEnableProjects
 | |
| 	func getActionIssues
 | |
| 	func UpdateIssueProject
 | |
| 
 | |
| package "code.gitea.io/gitea/services/convert"
 | |
| 	func ToSecret
 | |
| 
 | |
| package "code.gitea.io/gitea/services/forms"
 | |
| 	func (*DeadlineForm).Validate
 | |
| 
 | |
| package "code.gitea.io/gitea/services/pull"
 | |
| 	func IsCommitStatusContextSuccess
 | |
| 
 | |
| package "code.gitea.io/gitea/services/repository"
 | |
| 	func GetBranchCommitID
 | |
| 	func IsErrForkAlreadyExist
 | |
| 
 | |
| package "code.gitea.io/gitea/services/repository/archiver"
 | |
| 	func ArchiveRepository
 | |
| 
 | |
| package "code.gitea.io/gitea/services/repository/files"
 | |
| 	func (*ContentType).String
 | |
| 	func GetFileResponseFromCommit
 | |
| 	func (*TemporaryUploadRepository).GetLastCommit
 | |
| 	func (*TemporaryUploadRepository).GetLastCommitByRef
 | |
| 
 | |
| package "code.gitea.io/gitea/services/webhook"
 | |
| 	func NewNotifier
 | |
| 
 |