forgejo/tests/integration/fixtures
Andreas Ahlenstorf ddd4cf0d28 chore: revise runner REST API endpoints (#10450)
In https://codeberg.org/forgejo/forgejo/pulls/9409, REST API endpoints were added to manage runners. The REST API endpoints were modelled after GitHub's REST API. That comes at the cost of introducing methods and fields that Forgejo does not and is unlikely to support in the future, like label IDs or label types. But Forgejo would have to maintain them for a very long time.

The introduced endpoints have been revised and aligned with existing Forgejo REST API endpoints:

* POST for `/registration-token` has been removed because it was only an alias of GET.
* `/runners` returns a list of `ActionRunner` instead of a wrapper object. `total_count` was replaced with the header `x-total-count` that is used throughout Forgejo.
* `status` in `ActionRunner` was converted to an enum that is documented.
* `busy` in `ActionRunner` was combined with `status`. A single enum is easier to extend and consume.
* `labels` in `ActionRunner` was converted to a list of strings to match existing Forgejo REST API endpoints.
* `ephemeral` has been removed from `ActionRunner` because ephemeral runners have not been merged, yet.
*  `ActionRunner` received a number of new fields: `uuid`, `version`, `description`, `owner_id`, and `repo_id`.

In addition to those structural changes, the test coverage was enhanced and the API documentation polished.

## 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

- 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 added test coverage for JavaScript changes...
  - [ ] in `web_src/js/*.test.js` if it can be unit tested.
  - [ ] 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

- [ ] I do not want this change to show in the release notes.
- [ ] I want the title to show in the release notes with a link to this pull request.
- [ ] I want the content of the `release-notes/<pull request number>.md` to be be used for the release notes instead of the title.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10450
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
Co-authored-by: Andreas Ahlenstorf <andreas@ahlenstorf.ch>
Co-committed-by: Andreas Ahlenstorf <andreas@ahlenstorf.ch>
2025-12-21 17:21:02 +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
TestAPIGlobalActionsRunnerOperations chore: revise runner REST API endpoints (#10450) 2025-12-21 17:21:02 +01:00
TestAPIGlobalActionsRunnerRegistrationTokenOperations chore: revise runner REST API endpoints (#10450) 2025-12-21 17:21:02 +01:00
TestAPIOrgActionsRunnerOperations chore: revise runner REST API endpoints (#10450) 2025-12-21 17:21:02 +01:00
TestAPIOrgActionsRunnerRegistrationTokenOperations chore: revise runner REST API endpoints (#10450) 2025-12-21 17:21:02 +01:00
TestAPIRemoveIssueLabelByName feat: github compatability for removing label from issue API (#8831) 2025-08-30 03:29:23 +02:00
TestAPIRepoActionsRunnerOperations chore: revise runner REST API endpoints (#10450) 2025-12-21 17:21:02 +01:00
TestAPIRepoActionsRunnerRegistrationTokenOperations chore: revise runner REST API endpoints (#10450) 2025-12-21 17:21:02 +01:00
TestAPIUserActionsRunnerOperations chore: revise runner REST API endpoints (#10450) 2025-12-21 17:21:02 +01:00
TestAPIUserActionsRunnerRegistrationTokenOperations chore: revise runner REST API endpoints (#10450) 2025-12-21 17:21:02 +01:00
TestBlockActions
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
TestFeed fix: prevent user-entered text with | characters from being truncated in activity feed (#8844) 2025-08-10 19:48:46 +02: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
TestPullRequestReplyMail fix: no notification for replies to pending comments (#7167) 2025-03-09 15:07:12 +00:00
TestRunnerModification fix(sec): add tests for web route delete runner 2025-02-08 07:21:14 +00: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
TestXSSReviewDismissed [SECURITY] Test XSS in dismissed review 2024-02-22 15:33:20 +01:00