Commit Graph
61 Commits
Author SHA1 Message Date
Jordan Dominion 8fdcbec275 Fix config listing 500 error 2023-08-13 23:39:48 -04:00
Jordan Dominion 1db6d57de6 Regression test for #1617 2023-08-12 12:54:51 -04:00
Dominion 69af0acf5d Fix secure.byond.com links 2023-06-14 14:53:53 -04:00
Dominion 1e0c4183fe Bunch of async file stream changes
- `DelayedFileDownloader` changed into `RequestFileStreamProvider` which provides a direct network stream.
- `CachedResponseStream` now only caches the `HttpContent` as opposed to the `HttpResponseMessage`.
- `IFileDownloader` now synchronously returns `IFileStreamProvider`s.
- `FileDownloader` now returns `RequestFileStreamProviders`.
- Added `ISeekableFileStreamProvider`.
- BufferedFileStreamProvider now implements `ISeekableFileStreamProvider`.
2023-06-10 12:30:41 -04:00
Dominion c197641267 Make IFileDownloader return the network Stream directly 2023-06-10 11:21:15 -04:00
Dominion 395ee7d316 Add DummyGitHubService for live testing
- Also enable repo additional features for testing if possible
- Change a bunch of `TestInitialize`rs to `ClassInitialize`rs
2023-06-04 13:15:09 -04:00
Dominion 6ac18508da Assert valid connection strings in chat tests 2023-05-23 17:54:06 -04:00
Dominion 76b214d40e Mock IChatProviders when testing without secrets 2023-05-23 02:59:02 -04:00
Dominion c9403b79f3 DiscordProvider Constructor test doesn't need a valid token 2023-05-22 19:53:38 -04:00
Dominion 50873dc616 Connect/Disconnect test for IRC 2023-05-22 19:53:12 -04:00
Dominion d86b4c8e33 Use the GitHubAccessToken when downloading the ServerUpdatePackage
Workaround for https://github.com/actions/runner-images/issues/7007
2023-05-17 20:10:29 -04:00
Dominion 43e1fec1b0 Move a bunch of non-core classes to new Utils namespace
- Clean up VS messages, primarily in SessionController.cs
2023-04-23 13:42:16 -04:00
Dominion a1b5dbe6ac Abstract HttpClient and FileDownloader
- Set all requests to use assemblyInformationProvider UserAgent by default.
- Removed DefaultIOManager's dependency on IAssemblyInformationProvider.
- Fixed bad Dispose scope for requests under construction in SwarmService.
2023-04-21 03:15:39 -04:00
Dominion 824850c351 Add dd.exe support 2023-03-31 11:35:10 -04:00
Jordan Brown 65ec6a0e98 Remove ConfigureAwait(false) in top level projects 2022-09-19 10:19:08 -04:00
Jordan Brown 6960525688 Update to .net-6.0. Fix errors and warnings
- Address various IDE messages
- Additional logging
- Do not access DB in Watchdog's actual Dispose
- Fix issue with legacy behaviour in PGSQL
- Remove obsolete dotnet workaround
- Update to v3 actions checkout/upload-artifact/download-artifact
2022-09-13 18:41:18 -04:00
Jordan Brown f397f65716 Merge branch 'master' into dev 2021-09-11 11:19:42 -04:00
Jordan Brown 5c31b26561 Remove more V4 references 2021-09-08 18:04:40 -04:00
Jordan Brown fec4eeaabb Re-enable disabled test
Fixes #1309
2021-09-08 15:07:11 -04:00
Jordan Brown c8bd92c671 Disable this failing test 2021-08-24 11:29:42 -04:00
Jordan Brown a3a09f1608 Fix issues with rare Remora bug 2021-08-24 10:46:00 -04:00
Jordan Brown 6abcfe18f2 Use IReady event for gateway tests
- Fix manual connect invocations
2021-08-23 19:16:59 -04:00
Jordan Brown 13d98b2339 Stronger guarantee for Discord gateway connection 2021-08-23 13:36:13 -04:00
Jordan Brown 84e003cd7a Merge branch 'master' of https://github.com/tgstation/tgstation-server into 1252-StylecopThePlanet 2021-05-09 19:28:18 -04:00
Jordan Brown b9586c7fee The great stylecop update
Beware those that read into this commit. Here there be style conformance...

Closes #1252
2021-05-09 19:27:09 -04:00
Jordan Brown 42686d6d34 Remove unused usings 2021-05-09 10:10:27 -04:00
Jordan Brown a250efefa6 Regression test for #1255 2021-05-09 10:08:13 -04:00
Jordan Brown 76ef4ff63c Clean up the build 2021-01-02 20:10:46 -05:00
Jordan Brown bc505c2446 Diverse test merging big commit 2020-12-06 19:37:20 -05:00
Jordan Brown 1e52811434 Abstract test merging per git provider 2020-12-04 23:49:20 -05:00
Jordan Brown 7c0030180c Chungus refactors
- Added a new ErrorCode for when chat bots fail to connect
- Made IProvider IAsyncDispsable
- Removed IDatabaseContextFactory dependency from watchdogs
- Jobs will no longer start until instance manager startup is complete
- Chat provider connection is now done as a job, there is no way to retrieve directly this job through the API currently
- Fixed disabled chat bots connecting when their instance onlined
- Fixed issue with chat provider reconnection channel remapping
- IJobManager can now accept a null user in most cases which it will substitute for the TGS user
- Fixed some watchdog issues relating to accessing disposed session controllers
2020-07-19 17:54:27 -04:00
Jordan Brown 0c0e7e2590 Events refactor
- Add Components.Events namespace, move all event stuff there.
- Add README.
- Add EventScriptAttribute, all EventTypes must now have an associated script name.
- Added unit tests.
2020-06-01 12:34:47 -04:00
Jordan Brown 12c92a79f4 Fix tests 2020-05-24 23:57:12 -04:00
Jordan Brown d2ab2a885f Implement PostgresSQL database context
- Add DatabaseType
- Add DatabaseContext
- Add SetupWizardry
- Add DesignTimeDbContextFactory
- Add migration
- Add integration test to travis as separate job (split out others too)
- Other minor code cleanups
2020-05-16 07:41:13 -04:00
Jordan Brown c7ab6d49a7 Add more DMAPI events 2020-05-12 21:44:19 -04:00
Jordan Brown e511ca37e7 Split up the Watchdog namespace into Session 2020-05-12 20:09:34 -04:00
Jordan Brown e9afdfc6be This test is dumb 2020-05-12 19:56:38 -04:00
Jordan Brown e5c927f170 Fix the build 2020-05-05 15:08:30 -04:00
Jordan Brown 177b028719 Remove some white-box testing 2020-05-05 14:44:52 -04:00
Jordan Brown 417f13a777 Fix Windows Watchdog issues 2020-05-04 01:12:13 -04:00
Jordan Brown 23aca07cc9 Code cleanup for libgit2 interop 2020-04-24 18:32:16 -04:00
Jordan Brown e0cb4bc8fe Fix ByondInstaller test 2020-04-23 01:06:52 -04:00
Jordan Brown e711593273 WIP Chungus 2020-04-22 15:18:14 -04:00
Jordan Brown beed88f8d0 Interop rewrite WIP 2020-04-20 22:50:40 -04:00
Jordan BrownandGitHub 5c060c4930 Testing the local repository was a bad idea 2020-04-20 14:56:40 -04:00
Jordan Brown cd5eb25bb7 Remove C#8 features 2020-04-20 13:27:33 -04:00
Jordan Brown daf5d113e3 Add tests for RepositoryFactory 2020-04-20 13:12:49 -04:00
Jordan Brown 26c5632289 Hack automatic reconnection into the chat system 2020-03-24 17:08:44 -04:00
Cyberboss 7ec06871c3 Adds new Jobs namespace 2020-01-18 22:09:46 -05:00
Cyberboss 87ff972ace More namespace cleanups
Components.Compiler -> Components.Deployment
IDmbProvider -> Deployment.DmbProvider
2020-01-18 21:29:42 -05:00