Commit Graph
486 Commits
Author SHA1 Message Date
Jordan Brown 09dc016118 Test fix 2020-12-31 00:24:27 -05:00
Jordan Brown 2e8f1e701a Adds more integration tests 2020-12-30 22:41:41 -05:00
Jordan Brown 39ad7ca177 Unfuck User/Usergroup shenannigans
- Make Internal.User abstract
- Move User Id and Name to new UserBase class
- ShallowUsers are now only UserBase
- Moved PermissionSet to Internal.UserGroup
- Old Internal.UserGroup properties moved to new Internal.UserGroupBase
- Fixed WriteUsers being able to read users with POST /User
- Fixed full users returned from POST /User not including group permission sets
2020-12-30 14:11:30 -05:00
Jordan Brown 9cdaef0410 Remove all debug conditionals
- Add a down migrations comment
2020-12-30 11:43:41 -05:00
Jordan Brown 989b39d723 Add user group limit to config 2020-12-29 20:14:18 -05:00
Cyberboss f25fda747d Improved cleanup in swarm test 2020-12-28 13:33:35 -05:00
Cyberboss bc90c13322 Adds swarm integration test 2020-12-28 11:00:10 -05:00
Cyberboss f5fcf331d3 Switch all DateTimeOffset.Now references to UtcNow 2020-12-27 20:21:30 -05:00
Cyberboss 8c8ac15f26 Add Swarm configuration to setup wizard 2020-12-27 11:24:22 -05:00
Cyberboss 08cf743d5a Log HttpApiPort on startup 2020-12-27 11:23:41 -05:00
Cyberboss dd18c5253f Rename Version to ServerInformation in client 2020-12-26 21:45:01 -05:00
Cyberboss 51b6f798bb Increase BYOND download timeout 2020-12-26 11:44:05 -05:00
Jordan Brown 61d504a9e4 Move WindowsHost from Administration to ServerInformation
Lock GET /Administration behind ChangeVersion right
[APIDeploy][DMDeploy][NugetDeploy]
2020-12-19 20:24:37 -05:00
Jordan Brown 6bd8f00f15 Bump test BYOND version to 513.1536 2020-12-18 14:23:37 -05:00
Jordan Brown 7c13785969 Properly page UserGroups 2020-12-18 01:14:54 -05:00
Jordan Brown cba2904292 Merge branch 'dev' into 1078-UserGroups 2020-12-18 00:32:45 -05:00
Jordan Brown eb709d136b Adds pagination
- Add generic Paginated<TModel> for pagination responses.
- Added pagination helper to ApiController.
- Implemented pagination for all previously IEnumerable<T> response endpoints.
- Added IApiTransformable<TApiModel> for host models finally.
- Added PaginationSettings to client List endpoints.
- Use two deprecated ErrorCodes for page parameter validation.
- Re-enabled to OpenAPI root array response lint.
- Add some integration tests with users.
2020-12-17 23:49:06 -05:00
Jordan Brown 43bcd96b33 Increase some test timeouts slightly 2020-12-16 20:52:52 -05:00
Jordan Brown 01d4a05c0d Mass Package Upgrade
- Bump all packages as high as possible
  - ASP .NET Core packages to 3.1.10
- Add a warning about the annoying LoggerFactory issue in host watchdog project
- Add missing exception constructors to client
- Switch to using the correct .NET analyzers
2020-12-16 18:46:40 -05:00
Jordan Brown 47fe8306bf Small amount of test logging 2020-12-16 11:54:38 -05:00
Jordan Brown 19cd1aac19 Stop using a groups user in integration test
We know it works. If we really need to test it we should make a dedicated paralled instance test. Currently it just causes permissions issues.
2020-12-16 11:14:05 -05:00
Jordan Brown 8c3a170220 Up repository clone timeout in integration test 2020-12-16 11:12:49 -05:00
Jordan Brown 23205978f6 Fix integration test permission issues 2020-12-14 22:14:08 -05:00
Jordan Brown 3e62191257 Adds UserGroups
- Added MinimumLength to several existing and new
StringLengthAttributes.
- Refactored permissions off User model to new PermissionSet model.
- Added UserGroups, which contain their own PermissionSet. A user can
have either a UserGroup or dedicated PermissionSet.
- Added UserGroupController and client for handling groups.
- Renamed InstanceUser to InstancePermissionSet and associated it with
PermissionSets instead of Users.
- Inject active permission sets into AuthenticationContext.
- Sanitize away top level child properties of client request bodies
(hopefully).
- Added groups integration tests. Main test now runs in a group context.
- Added migrations with hand-written transition SQL.
- Resetting the admin user disassociates them from any groups.

Fuck this huge commit
2020-12-14 17:07:59 -05:00
Jordan Brown c964ee0984 Merge branch 'master' into dev 2020-12-10 10:45:02 -05:00
Jordan Brown 60ac813925 Fix test for renamed error 2020-12-09 22:27:12 -05:00
Jordan Brown 39d80a5b00 Fix DMAPI version test 2020-12-09 16:18:12 -05:00
Jordan Brown 21c9e5f01a Fix downgrade migrations for the last time 2020-12-09 15:50:29 -05:00
Jordan Brown 1df12a29c1 Add some OAuthConnections API tests
- Fix returning null instead of an empty array
2020-12-09 15:15:48 -05:00
Jordan Brown 8466fe31a3 Oh god oh fuck this commit is too big
- Disable faulty CA1508
- Add CompileJob.RepositoryOrigin
- Rename TestMergeParameters.PulRequestRevision to TargetCommitSha
- Ensure test merges aren't referred to as pull requests anywhere
- Make remote deployment git host agnostic
- Make Repository.Origin a Uri
2020-12-09 15:15:01 -05:00
Jordan Brown b0c52d3931 Merge branch 'dev' into 786-GitHostAgnosia 2020-12-08 17:55:57 -05:00
Jordan Brown d21143da4a Fix test branch parsing 2020-12-07 16:12:14 -05:00
Jordan Brown 3716c84664 Fix a potential test error dropping 2020-12-07 15:46:18 -05:00
Jordan Brown d524d06b5a Add URL OAuth config to integration tests 2020-12-07 12:52:33 -05:00
Jordan Brown bc505c2446 Diverse test merging big commit 2020-12-06 19:37:20 -05:00
Jordan Brown 2838170350 Merge branch 'dev' into 786-GitHostAgnosia 2020-12-05 00:16:16 -05:00
Jordan Brown 1e52811434 Abstract test merging per git provider 2020-12-04 23:49:20 -05:00
Jordan Brown bb0f2bc068 Additional testing 2020-12-03 00:02:33 -05:00
Jordan Brown face7234b0 Merge branch 'dev' into 1064-ActualFileStreams 2020-12-02 22:09:15 -05:00
Jordan Brown 31aa6f5157 Merge branch 'master' into dev 2020-12-02 22:08:53 -05:00
Jordan Brown 7f5de5118b Fixes and tests for new transfer service 2020-12-02 22:07:26 -05:00
Jordan BrownandGitHub 3c3a9bf6e4 Bump the timeout of a test 2020-12-01 21:43:33 -05:00
Jordan Brown a8f910692d Casually replaces base64 file transfers
- Now uses a proper streaming service
2020-11-25 23:25:53 -05:00
Jordan Brown a513c22c23 Fix integration tests 2020-11-24 16:06:15 -05:00
Jordan Brown baec815743 Build fix 2020-11-23 17:04:38 -05:00
Jordan Brown 288d0db2c2 Adds Discord/generic OAuth among other things 2020-11-23 15:12:10 -05:00
Jordan Brown 79700c7d0e Adds Oauth framework 2020-11-22 21:11:31 -05:00
Jordan Brown ad75600890 Custom DreamDaemon Parameters
Closes #949
2020-11-06 13:02:09 -05:00
tgstation-server 5b3d79ddfe Merge branch 'master' into dev 2020-11-05 20:38:13 +00:00
Jordan Brown 9922c8f5a8 Docker cleanup
- Add container script to master version list
- Setup wizard now waits for a guaranteed config reload

Fixes #1138
2020-11-05 14:57:36 -05:00