Commit Graph
500 Commits
Author SHA1 Message Date
Jordan Brown 741e752450 Add missing [TestMethod] 2021-01-22 13:29:02 -05:00
Jordan Brown 99f8129db7 Remove unneeded DMAPI version test 2021-01-22 10:45:08 -05:00
Jordan Brown badd6dca8d Fix DMAPI test version comparison 2021-01-22 10:23:04 -05:00
Jordan BrownandGitHub 2a50f0faee Merge branch 'dev' into 1169-DMAPISeparation 2021-01-21 20:27:58 -05:00
Jordan Brown 9dfe6e0fef Fix compile errors 2021-01-21 15:09:53 -05:00
Jordan Brown eed120ed09 Remove stray #include 2021-01-21 15:01:00 -05:00
Jordan Brown caec6e9547 YAML unit tests for VersionConverter 2021-01-21 12:43:09 -05:00
Jordan Brown 59750f632d Suppress a bad IDE warning 2021-01-21 12:26:42 -05:00
Jordan Brown ed0a04c4a0 Serparate the DMAPI version from Interop Version 2021-01-21 11:52:22 -05:00
AffectedArc07 62d1d3806c Lets give this a shot 2021-01-18 18:22:23 +00:00
Jordan Brown c3f6639463 Adds Timestamp to RevisionInformation 2021-01-12 13:04:45 -05:00
Jordan Brown 1988b916ec Adds a 410 response to PATCH /Instance 2021-01-05 13:44:18 -05:00
Jordan Brown 5f5e2741ce Add a null check for the OAuth config section 2021-01-03 21:22:41 -05:00
Jordan Brown 76ef4ff63c Clean up the build 2021-01-02 20:10:46 -05:00
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