forgejo/services/actions
Gusted 4c67023c7e
tests: improve actvititypub integration test code
- Make use of `test.MockVariableValue` to override variables for the
duration of the test.
- Don't needlessly call `onGiteaRun`, its only needed when a HTTP server
needs to be called by the code.
- When `onGiteaRun` is used, make use of the passed parameters, such as
the passed `*testing.T` variable and `*url.URL` (this also avoids
needing to serve the routers in the test code again).
- Use `(*url.URL).JoinPath` to craft new URLs.
- Don't override `setting.AppURL` & `setting.Database.LogSQL` when its
does not affect the test.
- Add empty fixture files for `FederatedUser` & `FederationHost` so they
are truncated and do not persist between tests.
2024-11-01 22:39:49 +01:00
..
auth.go
auth_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
cleanup.go Clear up old Actions logs (#31735) 2024-08-04 18:24:10 +02:00
clear_tasks.go
commit_status.go Support pull_request_target event for commit status (#31703) 2024-07-28 09:00:29 +02:00
init.go
interface.go feat(api): enhance Actions Secrets Management API for repository (#30656) 2024-04-28 15:39:01 +02:00
job_emitter.go Improve the handling of jobs.<job_id>.if (#31070) 2024-06-02 09:08:07 +02:00
job_emitter_test.go Improve the handling of jobs.<job_id>.if (#31070) 2024-06-02 09:08:07 +02:00
main_test.go tests: improve actvititypub integration test code 2024-11-01 22:39:49 +01:00
notifier.go Fix actions notify bug (#31866) 2024-08-25 10:41:24 +02:00
notifier_helper.go Update scheduled tasks even if changes are pushed by "ActionsUser" (#32246) 2024-10-20 09:24:58 +02:00
notifier_helper_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
rerun.go
rerun_test.go
schedule_tasks.go Interpolate runs-on with variables when scheduling tasks (#30640) 2024-04-28 15:39:00 +02:00
variables.go
workflows.go style: reenable switch check 2024-08-18 15:19:01 +02:00