Jordan Dominion
0539f89b89
Merge branch 'master' into dev
2025-11-15 14:53:31 -05:00
Jordan Dominion
73f7603517
Maybe fix build error
2025-11-15 12:03:39 -05:00
Jordan Dominion
3c46164515
ThrowsExactly conversion except harder
2025-08-01 19:37:43 -04:00
Jordan Dominion
413cfe73de
Fix tests
2025-07-27 18:57:49 -04:00
Jordan Dominion
9e8bdde30c
Remove HttpClient abstractions
...
Now implement mocked `HttpMessageHandler`s as recommended: https://stackoverflow.com/a/36427274/3976486
2025-07-27 15:34:33 -04:00
Jordan Dominion
f0cac0e810
Switch to using IFileSystem on the backend for file operations
2025-07-20 22:29:57 -04:00
Jordan Dominion
20428736ec
Merge branch 'master' into dev
2023-10-22 19:59:03 -04:00
Jordan Dominion
5bb655e3f6
Add test for hard links
2023-10-21 18:55:36 -04:00
Jordan Dominion
fd6de0fee2
Rename *SymlinkFactory to *FilesystemLinkFactory to better reflect new behavior
2023-10-21 18:42:19 -04:00
Jordan Dominion
afceee3a96
I was unsure about DefaultIOManager.DeleteDirectory, so here's another unit test.
2023-10-21 18:26:53 -04:00
Jordan Dominion
8b59884bf9
Final ValueTask conversion
2023-10-07 17:41:19 -04:00
Jordan Dominion
faeb730ebe
Penultimate ValueTask conversion
2023-10-07 17:31:50 -04:00
Jordan Dominion
2e6e2841e5
Add support for changing console title
...
- Move `VersionExtensions` to `Tgstation.Server.Common`.
- Fix Host watchdog API version specifying `Revision`.
2023-07-02 09:13:27 -04:00
Jordan
0dca581ef2
Pass in CancellationToken to (Try)SetCanceled
2023-06-19 05:16:44 -04:00
Jordan
5956a71150
Merge branch 'master' into dev
2023-06-18 11:06:47 -04:00
Jordan
aedd35fce6
Inconclusive rather than success in POSIX test
2023-06-17 12:34:54 -04:00
Dominion
a747a14183
Fix line endings OS mismatch in TestFileDownloader
2023-06-11 02:39:41 -04:00
Dominion
e596110018
Clean up Tgstation.Server.Common
...
- Move classes to `Http` namespace.
- Give it a unique package version.
- Comment to make me not rage update Nuget libs to .NET 6.
2023-06-10 17:04:04 -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
3a6dfa8936
Make IFileStreamProvider more generic
...
- Move SetError up to IFileUploadTicket.
- Move from Transfer to IO namespace.
2023-06-09 13:23:37 -04:00
Dominion
a8ae1e9e32
FileDownloader unit tests
2023-06-09 12:53:50 -04:00
Dominion
927a5f003c
Add DelayedFileDownloader + tests
2023-06-05 22:16:32 -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
d771da71b9
Add General:DeploymentDirectoryCopyTasksPerCore config option
2023-04-23 02:34:11 -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
d85a56e43f
Slight improvement to directory deletion test
2023-04-10 12:44:41 -04:00
Dominion
c9f02a039e
Add TestFileExists IIOManager test
2023-04-02 14:59:44 -04:00
Dominion
775f1c1e8f
Add some IIOManager tests
2023-04-02 12:50:23 -04:00
Dominion
26acc4a035
Additional null check for code coverage
2022-10-09 10:41:21 -04:00
Dominion
f72955cbc6
Fix bad test case
2022-10-09 10:30:55 -04:00
Dominion
d00b62c936
Implements +x bit preservation on repo copy
...
Closes #1167
2022-10-09 10:18:52 -04:00
Jordan Brown
65ec6a0e98
Remove ConfigureAwait(false) in top level projects
2022-09-19 10:19:08 -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
304a33b5f4
Add a lot more logging around the BYOND component
2020-05-04 11:28:40 -04:00
Jordan Brown
a0a09dd1fe
Give up on testing the chmod throw
2018-11-02 15:29:46 -04:00
Jordan Brown
70e6aa0938
Fix postwriteahandler test
2018-11-02 15:23:37 -04:00
Jordan Brown
66a1cbc129
Add TestPostWriteHandler
2018-11-02 15:16:42 -04:00
Jordan Brown
04e8f866d6
Improve usage of Assert.Inconclusive
2018-11-02 12:56:08 -04:00
Cyberboss
821ef25b8d
Prevent symlink tests from failing on windows when not running as an administrator
2018-11-01 12:22:25 -04:00
Cyberboss
ce00995b8b
Increase console sanity
2018-10-05 12:08:58 -04:00
Cyberboss
68ffe4baa6
TestConsole
2018-10-04 16:45:40 -04:00
Cyberboss
c60fa38d02
Remove unused using
2018-10-02 12:30:51 -04:00
Cyberboss
68e7932e68
Improve symlink factory tests
2018-10-02 11:41:25 -04:00
Cyberboss
d69886bbba
Add TestWindowsSymlinkFactory
2018-10-02 11:28:51 -04:00