forgejo/tests/integration/fixtures
Andreas Ahlenstorf 2963572845 feat: add form-based runner management (#11516)
Forgejo Runner is deprecating the runner registration token. It is too powerful, requires tooling, and is unnecessary. As a consequence, users need new mechanisms for managing runners in Forgejo. https://codeberg.org/forgejo/forgejo/pulls/10677 added an HTTP API for runner registration. This PR adds the ability to manage runners using Forgejo's web interface.

Runners can be added, modified, and deleted. It is also possible to regenerate a runner's token. When a runner is added or a runner's token is regenerated, setup instructions are displayed. They explain how to alter Forgejo Runner's configuration file or how to launch `forgejo-runner daemon` (yet to be implemented). The existing details page has been overhauled and is now accessible to all users that are allowed to use a particular runner. The details page displays additional information that had to be removed from the list of runners due to space constraints. The task list is filtered. That means it only lists jobs of the respective repository, user, or organization.

The runner registration token has been marked as deprecated.

See https://code.forgejo.org/forgejo/forgejo-actions-feature-requests/issues/88 for context and design considerations.

## Checklist

The [contributor guide](https://forgejo.org/docs/next/contributor/) contains information that will be helpful to first time contributors. There also are a few [conditions for merging Pull Requests in Forgejo repositories](https://codeberg.org/forgejo/governance/src/branch/main/PullRequestsAgreement.md). You are also welcome to join the [Forgejo development chatroom](https://matrix.to/#/#forgejo-development:matrix.org).

### Tests for Go changes

(can be removed for JavaScript changes)

- I added test coverage for Go changes...
  - [x] in their respective `*_test.go` for unit tests.
  - [x] in the `tests/integration` directory if it involves interactions with a live Forgejo server.
- I ran...
  - [x] `make pr-go` before pushing

### Tests for JavaScript changes

(can be removed for Go changes)

- I added test coverage for JavaScript changes...
  - [ ] in `web_src/js/*.test.js` if it can be unit tested.
  - [x] in `tests/e2e/*.test.e2e.js` if it requires interactions with a live Forgejo server (see also the [developer guide for JavaScript testing](https://codeberg.org/forgejo/forgejo/src/branch/forgejo/tests/e2e/README.md#end-to-end-tests)).

### Documentation

- [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs) to explain to Forgejo users how to use this change.
- [x] I did not document these changes and I do not expect someone else to do it.

### Release notes

- [x] This change will be noticed by a Forgejo user or admin (feature, bug fix, performance, etc.). I suggest to include a release note for this change.
- [ ] This change is not visible to a Forgejo user or admin (refactor, dependency upgrade, etc.). I think there is no need to add a release note for this change.

*The decision if the pull request will be shown in the release notes is up to the mergers / release team.*

The content of the `release-notes/<pull request number>.md` file will serve as the basis for the release notes. If the file does not exist, the title of the pull request will be used instead.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11516
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
Co-authored-by: Andreas Ahlenstorf <andreas@ahlenstorf.ch>
Co-committed-by: Andreas Ahlenstorf <andreas@ahlenstorf.ch>
2026-03-12 02:14:45 +01:00
..
TestActionConcurrencyGroupQueue refactor: migrate from lib/pq to jackc/pgx (#10219) 2025-11-30 17:47:45 +01:00
TestActionConcurrencyRunnerFiltering refactor: migrate from lib/pq to jackc/pgx (#10219) 2025-11-30 17:47:45 +01:00
TestActionVariablesModification fix(sec): web route test edit and delete variable 2025-02-08 07:21:14 +00:00
TestAdminDeleteUser fix: reduce deadlocks merging PRs by using caching for repo issue count stats (#9922) 2025-10-31 23:50:05 +01:00
TestAdminModerationViewReports feat: render a link to poster profile next to the ID within shadow copy details (#10194) 2025-12-09 15:19:10 +01:00
TestAPIGetTeamRepoAccessTokenResources feat: implement fine-grained access tokens in /teams/{id}/repos/{org}/{repo} 2026-03-01 17:05:53 +01:00
TestAPIGetTeamReposAccessTokenResources feat: implement fine-grained access tokens in /teams/{id}/repos 2026-03-01 10:54:43 -07:00
TestAPIGlobalActionsRunnerOperations feat: implement ephemeral runners (#9962) 2026-02-16 18:56:56 +01:00
TestAPIGlobalActionsRunnerRegistrationTokenOperations feat: add foreign keys to the action_runner_token table (#10756) 2026-01-12 21:59:40 +01:00
TestAPIOrgActionsRunnerOperations feat: implement ephemeral runners (#9962) 2026-02-16 18:56:56 +01:00
TestAPIOrgActionsRunnerRegistrationTokenOperations feat: add foreign keys to the action_runner_token table (#10756) 2026-01-12 21:59:40 +01:00
TestAPIRemoveIssueLabelByName feat: github compatability for removing label from issue API (#8831) 2025-08-30 03:29:23 +02:00
TestAPIRepoActionsRunnerOperations feat: implement ephemeral runners (#9962) 2026-02-16 18:56:56 +01:00
TestAPIRepoActionsRunnerRegistrationTokenOperations feat: add foreign keys to the action_runner_token table (#10756) 2026-01-12 21:59:40 +01:00
TestAPIUserActionsRunnerOperations feat: implement ephemeral runners (#9962) 2026-02-16 18:56:56 +01:00
TestAPIUserActionsRunnerRegistrationTokenOperations feat: add foreign keys to the action_runner_token table (#10756) 2026-01-12 21:59:40 +01:00
TestBlockActions [MODERATION] User blocking 2024-02-05 15:56:45 +01:00
TestBlockedNotifications [MODERATION] Refactor excluding watchers mechanism (squash) 2024-02-05 15:56:58 +01:00
TestCommitRefComment [GITEA] Use correct translations for pull request 2024-02-05 16:54:44 +01:00
TestEphemeralRunner feat: implement ephemeral runners (#9962) 2026-02-16 18:56:56 +01:00
TestFeed ensure consistent sort order in TestFeed fixture (#11176) 2026-02-06 20:19:00 +01:00
TestForcePushCommitStatus fix: ignore existence of commits for force pushes (#9262) 2025-09-12 07:27:15 +02:00
TestGetContentHistory [GITEA] Fix panic in canSoftDeleteContentHistory 2024-02-05 16:09:42 +01:00
TestIssueCommentChangeProject fix: construct project links in timeline better (#9872) 2025-10-29 17:46:13 +01:00
TestPackageContainerCleanup fix: reduce runtime of container cleanup by relying on mass digest cleanup (#10297) 2025-12-05 15:45:47 +01:00
TestPullCombinedReviewRequest feat: combine review requests comments 2024-10-25 22:57:32 +02:00
TestPullEditable feat: display the PR editable status in the right-hand side menu (#9392) 2025-09-27 13:08:38 +02:00
TestPullMirrorRedactCredentials fix: reduce deadlocks merging PRs by using caching for repo issue count stats (#9922) 2025-10-31 23:50:05 +01:00
TestPullRequestParticipants fix: don't display pending reviews as participants (#10528) 2026-01-06 10:47:21 +01:00
TestPullRequestReplyMail fix: no notification for replies to pending comments (#7167) 2025-03-09 15:07:12 +00:00
TestRunnerModification feat: add form-based runner management (#11516) 2026-03-12 02:14:45 +01:00
TestRunnerVisibility chore: increase test coverage of runner management (#10490) 2025-12-20 15:29:40 +01:00
TestSystemCommentRoles fix(commenter roles): don't give system users roles (#6766) 2025-02-05 17:34:45 +00:00
TestUserPasswordResetOAuth2 Reject password reset attempts for OAuth2 users without a current password (#9060) 2025-09-12 00:08:29 +02:00
TestUserRename fix: reflect allowed username change in profile setting (#11171) 2026-02-06 17:47:30 +01:00
TestXSSReviewDismissed [SECURITY] Test XSS in dismissed review 2024-02-22 15:33:20 +01:00