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
..
2024-09-29 10:38:49 +02:00
2024-11-01 22:39:49 +01:00
2023-08-07 15:00:53 -04:00
2024-07-30 19:41:10 +00:00
2024-07-30 19:41:10 +00:00
2024-07-30 19:41:10 +00:00
2024-08-08 06:32:14 +00:00
2024-09-14 17:09:03 +02:00
2024-07-30 19:41:10 +00:00
2024-04-16 11:49:44 +02:00
2024-07-30 19:41:10 +00:00
2023-06-29 16:29:48 +00:00
2024-08-12 19:13:23 +02:00
2024-08-18 15:19:01 +02:00
2024-07-30 19:41:10 +00:00
2024-10-31 15:24:53 +00:00
2024-05-09 13:49:37 +00:00
2024-08-12 19:11:09 +02:00
2024-09-19 20:39:55 +05:00
2023-01-29 09:49:51 -06:00
2024-10-11 15:42:18 +02:00
2024-09-14 17:52:54 +02:00
2023-08-05 04:34:59 +00:00
2024-09-27 08:42:48 +02:00
2024-09-27 08:42:48 +02:00
2024-11-01 22:39:49 +01:00
2024-08-18 16:25:13 +02:00
2023-07-04 18:36:08 +00:00
2024-08-22 17:05:07 +02:00
2023-04-10 16:44:02 +08:00
2024-08-22 17:05:07 +02:00
2024-08-09 17:44:41 +02:00
2024-09-27 08:12:43 +00:00
2022-11-27 18:20:29 +00:00
2024-06-02 09:42:39 +02:00
2024-10-20 09:24:25 +02:00
2024-08-30 04:33:15 +02:00
2024-07-30 19:41:10 +00:00
2023-04-12 18:16:45 +08:00
2024-09-27 08:21:22 +00:00
2023-04-22 17:56:27 -04:00
2022-11-27 18:20:29 +00:00
2024-07-02 21:39:01 +02:00
2024-09-19 20:39:55 +05:00
2023-02-11 08:39:50 +08:00
2022-11-27 18:20:29 +00:00
2023-12-25 20:13:18 +08:00
2024-09-01 05:42:34 +02:00
2022-11-27 18:20:29 +00:00
2024-07-30 19:41:10 +00:00
2024-07-30 19:41:10 +00:00
2024-11-01 22:39:49 +01:00
2024-07-30 19:41:10 +00:00
2024-08-30 04:33:15 +02:00
2024-10-27 11:27:40 +01:00
2024-07-30 19:41:10 +00:00
2023-11-03 15:21:05 +00:00
2024-07-30 19:41:10 +00:00
2024-10-22 17:37:03 +00:00
2023-08-05 04:34:59 +00:00
2022-11-27 18:20:29 +00:00
2024-07-30 19:41:10 +00:00
2024-11-01 22:39:49 +01:00
2024-06-02 15:24:06 +02:00
2024-10-24 18:44:58 +02:00
2024-03-20 08:46:30 +01:00
2024-07-30 19:41:10 +00:00
2023-02-05 15:29:03 +08:00
2024-07-30 19:41:10 +00:00
2024-07-30 19:41:10 +00:00
2024-07-30 19:41:10 +00:00
2024-07-17 23:07:41 +02:00
2024-10-04 14:03:07 +00:00
2024-08-28 22:25:17 -06:00
2024-08-28 22:25:17 -06:00
2024-06-28 05:17:11 +00:00
2024-08-26 23:43:09 +02:00